static KmsClientBuilderbuilder()Create a builder that can be used to configure and create a KmsClient.default CancelKeyDeletionResponsecancelKeyDeletion(CancelKeyDeletionRequest cancelKeyDeletionRequest)Cancels the deletion of a customer master key (CMK).
default CancelKeyDeletionResponsecancelKeyDeletion(Consumer<CancelKeyDeletionRequest.Builder> cancelKeyDeletionRequest)Cancels the deletion of a customer master key (CMK).
static KmsClientcreate()Create a KmsClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.default CreateAliasResponsecreateAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest)Creates a display name for a customer master key (CMK).
default CreateAliasResponsecreateAlias(CreateAliasRequest createAliasRequest)Creates a display name for a customer master key (CMK).
default CreateGrantResponsecreateGrant(Consumer<CreateGrantRequest.Builder> createGrantRequest)Adds a grant to a customer master key (CMK).
default CreateGrantResponsecreateGrant(CreateGrantRequest createGrantRequest)Adds a grant to a customer master key (CMK).
default CreateKeyResponsecreateKey()Creates a customer master key (CMK) in the caller's AWS account.
default CreateKeyResponsecreateKey(Consumer<CreateKeyRequest.Builder> createKeyRequest)Creates a customer master key (CMK) in the caller's AWS account.
default CreateKeyResponsecreateKey(CreateKeyRequest createKeyRequest)Creates a customer master key (CMK) in the caller's AWS account.
default DecryptResponsedecrypt(Consumer<DecryptRequest.Builder> decryptRequest)Decrypts ciphertext.
default DecryptResponsedecrypt(DecryptRequest decryptRequest)Decrypts ciphertext.
default DeleteAliasResponsedeleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest)Deletes the specified alias.
default DeleteAliasResponsedeleteAlias(DeleteAliasRequest deleteAliasRequest)Deletes the specified alias.
default DeleteImportedKeyMaterialResponsedeleteImportedKeyMaterial(Consumer<DeleteImportedKeyMaterialRequest.Builder> deleteImportedKeyMaterialRequest)Deletes key material that you previously imported.
default DeleteImportedKeyMaterialResponsedeleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest deleteImportedKeyMaterialRequest)Deletes key material that you previously imported.
default DescribeKeyResponsedescribeKey(Consumer<DescribeKeyRequest.Builder> describeKeyRequest)Provides detailed information about the specified customer master key (CMK).
default DescribeKeyResponsedescribeKey(DescribeKeyRequest describeKeyRequest)Provides detailed information about the specified customer master key (CMK).
default DisableKeyResponsedisableKey(Consumer<DisableKeyRequest.Builder> disableKeyRequest)Sets the state of a customer master key (CMK) to disabled, thereby preventing its use for cryptographic operations.
default DisableKeyResponsedisableKey(DisableKeyRequest disableKeyRequest)Sets the state of a customer master key (CMK) to disabled, thereby preventing its use for cryptographic operations.
default DisableKeyRotationResponsedisableKeyRotation(Consumer<DisableKeyRotationRequest.Builder> disableKeyRotationRequest)Disables automatic rotation of the key material for the specified customer master key (CMK).
default DisableKeyRotationResponsedisableKeyRotation(DisableKeyRotationRequest disableKeyRotationRequest)Disables automatic rotation of the key material for the specified customer master key (CMK).
default EnableKeyResponseenableKey(Consumer<EnableKeyRequest.Builder> enableKeyRequest)Sets the state of a customer master key (CMK) to enabled, thereby permitting its use for cryptographic operations.
default EnableKeyResponseenableKey(EnableKeyRequest enableKeyRequest)Sets the state of a customer master key (CMK) to enabled, thereby permitting its use for cryptographic operations.
default EnableKeyRotationResponseenableKeyRotation(Consumer<EnableKeyRotationRequest.Builder> enableKeyRotationRequest)Enables automatic rotation of the key material for the specified customer master key (CMK).
default EnableKeyRotationResponseenableKeyRotation(EnableKeyRotationRequest enableKeyRotationRequest)Enables automatic rotation of the key material for the specified customer master key (CMK).
default EncryptResponseencrypt(Consumer<EncryptRequest.Builder> encryptRequest)Encrypts plaintext into ciphertext by using a customer master key (CMK).
default EncryptResponseencrypt(EncryptRequest encryptRequest)Encrypts plaintext into ciphertext by using a customer master key (CMK).
default GenerateDataKeyResponsegenerateDataKey(Consumer<GenerateDataKeyRequest.Builder> generateDataKeyRequest)Returns a data encryption key that you can use in your application to encrypt data locally.
default GenerateDataKeyResponsegenerateDataKey(GenerateDataKeyRequest generateDataKeyRequest)Returns a data encryption key that you can use in your application to encrypt data locally.
default GenerateDataKeyWithoutPlaintextResponsegenerateDataKeyWithoutPlaintext(Consumer<GenerateDataKeyWithoutPlaintextRequest.Builder> generateDataKeyWithoutPlaintextRequest)Returns a data encryption key encrypted under a customer master key (CMK).
default GenerateDataKeyWithoutPlaintextResponsegenerateDataKeyWithoutPlaintext(GenerateDataKeyWithoutPlaintextRequest generateDataKeyWithoutPlaintextRequest)Returns a data encryption key encrypted under a customer master key (CMK).
default GenerateRandomResponsegenerateRandom()Returns a random byte string that is cryptographically secure.
default GenerateRandomResponsegenerateRandom(Consumer<GenerateRandomRequest.Builder> generateRandomRequest)Returns a random byte string that is cryptographically secure.
default GenerateRandomResponsegenerateRandom(GenerateRandomRequest generateRandomRequest)Returns a random byte string that is cryptographically secure.
default GetKeyPolicyResponsegetKeyPolicy(Consumer<GetKeyPolicyRequest.Builder> getKeyPolicyRequest)Gets a key policy attached to the specified customer master key (CMK).
default GetKeyPolicyResponsegetKeyPolicy(GetKeyPolicyRequest getKeyPolicyRequest)Gets a key policy attached to the specified customer master key (CMK).
default GetKeyRotationStatusResponsegetKeyRotationStatus(Consumer<GetKeyRotationStatusRequest.Builder> getKeyRotationStatusRequest)Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified customer master key (CMK).
default GetKeyRotationStatusResponsegetKeyRotationStatus(GetKeyRotationStatusRequest getKeyRotationStatusRequest)Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified customer master key (CMK).
default GetParametersForImportResponsegetParametersForImport(Consumer<GetParametersForImportRequest.Builder> getParametersForImportRequest)Returns the items you need in order to import key material into AWS KMS from your existing key management infrastructure.
default GetParametersForImportResponsegetParametersForImport(GetParametersForImportRequest getParametersForImportRequest)Returns the items you need in order to import key material into AWS KMS from your existing key management infrastructure.
default ImportKeyMaterialResponseimportKeyMaterial(Consumer<ImportKeyMaterialRequest.Builder> importKeyMaterialRequest)Imports key material into an existing AWS KMS customer master key (CMK) that was created without key material.
default ImportKeyMaterialResponseimportKeyMaterial(ImportKeyMaterialRequest importKeyMaterialRequest)Imports key material into an existing AWS KMS customer master key (CMK) that was created without key material.
default ListAliasesResponselistAliases()Gets a list of all aliases in the caller's AWS account and region.
default ListAliasesResponselistAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest)Gets a list of all aliases in the caller's AWS account and region.
default ListAliasesResponselistAliases(ListAliasesRequest listAliasesRequest)Gets a list of all aliases in the caller's AWS account and region.
default ListAliasesIterablelistAliasesPaginator()Gets a list of all aliases in the caller's AWS account and region.
default ListAliasesIterablelistAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest)Gets a list of all aliases in the caller's AWS account and region.
default ListAliasesIterablelistAliasesPaginator(ListAliasesRequest listAliasesRequest)Gets a list of all aliases in the caller's AWS account and region.
default ListGrantsResponselistGrants(Consumer<ListGrantsRequest.Builder> listGrantsRequest)Gets a list of all grants for the specified customer master key (CMK).
default ListGrantsResponselistGrants(ListGrantsRequest listGrantsRequest)Gets a list of all grants for the specified customer master key (CMK).
default ListGrantsIterablelistGrantsPaginator(Consumer<ListGrantsRequest.Builder> listGrantsRequest)Gets a list of all grants for the specified customer master key (CMK).
default ListGrantsIterablelistGrantsPaginator(ListGrantsRequest listGrantsRequest)Gets a list of all grants for the specified customer master key (CMK).
default ListKeyPoliciesResponselistKeyPolicies(Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest)Gets the names of the key policies that are attached to a customer master key (CMK).
default ListKeyPoliciesResponselistKeyPolicies(ListKeyPoliciesRequest listKeyPoliciesRequest)Gets the names of the key policies that are attached to a customer master key (CMK).
default ListKeyPoliciesIterablelistKeyPoliciesPaginator(Consumer<ListKeyPoliciesRequest.Builder> listKeyPoliciesRequest)Gets the names of the key policies that are attached to a customer master key (CMK).
default ListKeyPoliciesIterablelistKeyPoliciesPaginator(ListKeyPoliciesRequest listKeyPoliciesRequest)Gets the names of the key policies that are attached to a customer master key (CMK).
default ListKeysResponselistKeys()Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListKeysResponselistKeys(Consumer<ListKeysRequest.Builder> listKeysRequest)Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListKeysResponselistKeys(ListKeysRequest listKeysRequest)Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListKeysIterablelistKeysPaginator()Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListKeysIterablelistKeysPaginator(Consumer<ListKeysRequest.Builder> listKeysRequest)Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListKeysIterablelistKeysPaginator(ListKeysRequest listKeysRequest)Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.
default ListResourceTagsResponselistResourceTags(Consumer<ListResourceTagsRequest.Builder> listResourceTagsRequest)Returns a list of all tags for the specified customer master key (CMK).
default ListResourceTagsResponselistResourceTags(ListResourceTagsRequest listResourceTagsRequest)Returns a list of all tags for the specified customer master key (CMK).
default ListRetirableGrantsResponselistRetirableGrants(Consumer<ListRetirableGrantsRequest.Builder> listRetirableGrantsRequest) Returns a list of all grants for which the grant's RetiringPrincipal matches the one specified.
default ListRetirableGrantsResponselistRetirableGrants(ListRetirableGrantsRequest listRetirableGrantsRequest) Returns a list of all grants for which the grant's RetiringPrincipal matches the one specified.
default PutKeyPolicyResponseputKeyPolicy(Consumer<PutKeyPolicyRequest.Builder> putKeyPolicyRequest)Attaches a key policy to the specified customer master key (CMK).
default PutKeyPolicyResponseputKeyPolicy(PutKeyPolicyRequest putKeyPolicyRequest)Attaches a key policy to the specified customer master key (CMK).
default ReEncryptResponsereEncrypt(Consumer<ReEncryptRequest.Builder> reEncryptRequest)Encrypts data on the server side with a new customer master key (CMK) without exposing the plaintext of the data on the client side.
default ReEncryptResponsereEncrypt(ReEncryptRequest reEncryptRequest)Encrypts data on the server side with a new customer master key (CMK) without exposing the plaintext of the data on the client side.
default RetireGrantResponseretireGrant()Retires a grant.
default RetireGrantResponseretireGrant(Consumer<RetireGrantRequest.Builder> retireGrantRequest)Retires a grant.
default RetireGrantResponseretireGrant(RetireGrantRequest retireGrantRequest)Retires a grant.
default RevokeGrantResponserevokeGrant(Consumer<RevokeGrantRequest.Builder> revokeGrantRequest)Revokes the specified grant for the specified customer master key (CMK).
default RevokeGrantResponserevokeGrant(RevokeGrantRequest revokeGrantRequest)Revokes the specified grant for the specified customer master key (CMK).
default ScheduleKeyDeletionResponsescheduleKeyDeletion(Consumer<ScheduleKeyDeletionRequest.Builder> scheduleKeyDeletionRequest)Schedules the deletion of a customer master key (CMK).
default ScheduleKeyDeletionResponsescheduleKeyDeletion(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest)Schedules the deletion of a customer master key (CMK).
static ServiceMetadataserviceMetadata() default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Adds or overwrites one or more tags for the specified customer master key (CMK).
default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Adds or overwrites one or more tags for the specified customer master key (CMK).
default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes the specified tag or tags from the specified customer master key (CMK).
default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes the specified tag or tags from the specified customer master key (CMK).
default UpdateAliasResponseupdateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest)Associates an existing alias with a different customer master key (CMK).
default UpdateAliasResponseupdateAlias(UpdateAliasRequest updateAliasRequest)Associates an existing alias with a different customer master key (CMK).
default UpdateKeyDescriptionResponseupdateKeyDescription(Consumer<UpdateKeyDescriptionRequest.Builder> updateKeyDescriptionRequest)Updates the description of a customer master key (CMK).
default UpdateKeyDescriptionResponseupdateKeyDescription(UpdateKeyDescriptionRequest updateKeyDescriptionRequest)Updates the description of a customer master key (CMK).