AWS SDK for C++  1.8.54
AWS SDK for C++
Public Member Functions | List of all members
Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest Class Reference

#include <GenerateDataKeyWithoutPlaintextRequest.h>

+ Inheritance diagram for Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest:

Public Member Functions

 GenerateDataKeyWithoutPlaintextRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const override
 
const Aws::StringGetKeyId () const
 
bool KeyIdHasBeenSet () const
 
void SetKeyId (const Aws::String &value)
 
void SetKeyId (Aws::String &&value)
 
void SetKeyId (const char *value)
 
GenerateDataKeyWithoutPlaintextRequestWithKeyId (const Aws::String &value)
 
GenerateDataKeyWithoutPlaintextRequestWithKeyId (Aws::String &&value)
 
GenerateDataKeyWithoutPlaintextRequestWithKeyId (const char *value)
 
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext () const
 
bool EncryptionContextHasBeenSet () const
 
void SetEncryptionContext (const Aws::Map< Aws::String, Aws::String > &value)
 
void SetEncryptionContext (Aws::Map< Aws::String, Aws::String > &&value)
 
GenerateDataKeyWithoutPlaintextRequestWithEncryptionContext (const Aws::Map< Aws::String, Aws::String > &value)
 
GenerateDataKeyWithoutPlaintextRequestWithEncryptionContext (Aws::Map< Aws::String, Aws::String > &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (const Aws::String &key, const Aws::String &value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (Aws::String &&key, const Aws::String &value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (const Aws::String &key, Aws::String &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (Aws::String &&key, Aws::String &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (const char *key, Aws::String &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (Aws::String &&key, const char *value)
 
GenerateDataKeyWithoutPlaintextRequestAddEncryptionContext (const char *key, const char *value)
 
const DataKeySpecGetKeySpec () const
 
bool KeySpecHasBeenSet () const
 
void SetKeySpec (const DataKeySpec &value)
 
void SetKeySpec (DataKeySpec &&value)
 
GenerateDataKeyWithoutPlaintextRequestWithKeySpec (const DataKeySpec &value)
 
GenerateDataKeyWithoutPlaintextRequestWithKeySpec (DataKeySpec &&value)
 
int GetNumberOfBytes () const
 
bool NumberOfBytesHasBeenSet () const
 
void SetNumberOfBytes (int value)
 
GenerateDataKeyWithoutPlaintextRequestWithNumberOfBytes (int value)
 
const Aws::Vector< Aws::String > & GetGrantTokens () const
 
bool GrantTokensHasBeenSet () const
 
void SetGrantTokens (const Aws::Vector< Aws::String > &value)
 
void SetGrantTokens (Aws::Vector< Aws::String > &&value)
 
GenerateDataKeyWithoutPlaintextRequestWithGrantTokens (const Aws::Vector< Aws::String > &value)
 
GenerateDataKeyWithoutPlaintextRequestWithGrantTokens (Aws::Vector< Aws::String > &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddGrantTokens (const Aws::String &value)
 
GenerateDataKeyWithoutPlaintextRequestAddGrantTokens (Aws::String &&value)
 
GenerateDataKeyWithoutPlaintextRequestAddGrantTokens (const char *value)
 
- Public Member Functions inherited from Aws::KMS::KMSRequest
virtual ~KMSRequest ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Additional Inherited Members

- Protected Member Functions inherited from Aws::AmazonWebServiceRequest
virtual void DumpBodyToUrl (Aws::Http::URI &uri) const
 

Detailed Description

Definition at line 24 of file GenerateDataKeyWithoutPlaintextRequest.h.

Constructor & Destructor Documentation

◆ GenerateDataKeyWithoutPlaintextRequest()

Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GenerateDataKeyWithoutPlaintextRequest ( )

Member Function Documentation

◆ AddEncryptionContext() [1/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( const Aws::String key,
const Aws::String value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 258 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [2/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( Aws::String &&  key,
const Aws::String value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 271 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [3/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( const Aws::String key,
Aws::String &&  value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 284 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [4/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( Aws::String &&  key,
Aws::String &&  value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 297 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [5/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( const char *  key,
Aws::String &&  value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 310 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [6/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( Aws::String &&  key,
const char *  value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 323 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddEncryptionContext() [7/7]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddEncryptionContext ( const char *  key,
const char *  value 
)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 336 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddGrantTokens() [1/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddGrantTokens ( const Aws::String value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 456 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddGrantTokens() [2/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddGrantTokens ( Aws::String &&  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 463 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ AddGrantTokens() [3/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::AddGrantTokens ( const char *  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 470 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ EncryptionContextHasBeenSet()

bool Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::EncryptionContextHasBeenSet ( ) const
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 193 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetEncryptionContext()

const Aws::Map<Aws::String, Aws::String>& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetEncryptionContext ( ) const
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 180 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetGrantTokens()

const Aws::Vector<Aws::String>& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetGrantTokens ( ) const
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 414 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetKeyId()

const Aws::String& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetKeyId ( ) const
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 54 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetKeySpec()

const DataKeySpec& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetKeySpec ( ) const
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 343 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetNumberOfBytes()

int Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetNumberOfBytes ( ) const
inline

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 KeySpec field instead of this one.

Definition at line 382 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ GetRequestSpecificHeaders()

Aws::Http::HeaderValueCollection Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetRequestSpecificHeaders ( ) const
overridevirtual

Reimplemented from Aws::KMS::KMSRequest.

◆ GetServiceRequestName()

virtual const char* Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

◆ GrantTokensHasBeenSet()

bool Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::GrantTokensHasBeenSet ( ) const
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 421 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ KeyIdHasBeenSet()

bool Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::KeyIdHasBeenSet ( ) const
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 70 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ KeySpecHasBeenSet()

bool Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::KeySpecHasBeenSet ( ) const
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 349 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ NumberOfBytesHasBeenSet()

bool Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::NumberOfBytesHasBeenSet ( ) const
inline

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 KeySpec field instead of this one.

Definition at line 390 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SerializePayload()

Aws::String Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetEncryptionContext() [1/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetEncryptionContext ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 206 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetEncryptionContext() [2/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetEncryptionContext ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 219 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetGrantTokens() [1/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetGrantTokens ( const Aws::Vector< Aws::String > &  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 428 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetGrantTokens() [2/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetGrantTokens ( Aws::Vector< Aws::String > &&  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 435 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetKeyId() [1/3]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetKeyId ( const Aws::String value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 86 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetKeyId() [2/3]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetKeyId ( Aws::String &&  value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 102 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetKeyId() [3/3]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetKeyId ( const char *  value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 118 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetKeySpec() [1/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetKeySpec ( const DataKeySpec value)
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 355 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetKeySpec() [2/2]

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetKeySpec ( DataKeySpec &&  value)
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 361 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ SetNumberOfBytes()

void Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::SetNumberOfBytes ( int  value)
inline

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 KeySpec field instead of this one.

Definition at line 398 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithEncryptionContext() [1/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithEncryptionContext ( const Aws::Map< Aws::String, Aws::String > &  value)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 232 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithEncryptionContext() [2/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithEncryptionContext ( Aws::Map< Aws::String, Aws::String > &&  value)
inline

Specifies the encryption context that will be used when encrypting the data key.

An encryption context is a collection of non-secret key-value pairs that represents 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 optional when encrypting with a symmetric CMK, but it is highly recommended.

For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

Definition at line 245 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithGrantTokens() [1/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithGrantTokens ( const Aws::Vector< Aws::String > &  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 442 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithGrantTokens() [2/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithGrantTokens ( Aws::Vector< Aws::String > &&  value)
inline

A list of grant tokens.

For more information, see Grant Tokens in the AWS Key Management Service Developer Guide.

Definition at line 449 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithKeyId() [1/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithKeyId ( const Aws::String value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 134 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithKeyId() [2/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithKeyId ( Aws::String &&  value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 150 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithKeyId() [3/3]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithKeyId ( const char *  value)
inline

The identifier of the symmetric customer master key (CMK) that encrypts the data key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

  • Alias name: alias/ExampleAlias

  • Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

Definition at line 166 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithKeySpec() [1/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithKeySpec ( const DataKeySpec value)
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 367 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithKeySpec() [2/2]

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithKeySpec ( DataKeySpec &&  value)
inline

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, or AES_256 to generate a 256-bit symmetric key.

Definition at line 373 of file GenerateDataKeyWithoutPlaintextRequest.h.

◆ WithNumberOfBytes()

GenerateDataKeyWithoutPlaintextRequest& Aws::KMS::Model::GenerateDataKeyWithoutPlaintextRequest::WithNumberOfBytes ( int  value)
inline

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 KeySpec field instead of this one.

Definition at line 406 of file GenerateDataKeyWithoutPlaintextRequest.h.


The documentation for this class was generated from the following file: