Class: Aws::KMS::Types::GenerateRandomRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-kms/types.rb

Overview

Note:

When making an API call, you may pass GenerateRandomRequest data as a hash:

{
  number_of_bytes: 1,
  custom_key_store_id: "CustomKeyStoreIdType",
}

Instance Attribute Summary collapse

Instance Attribute Details

#custom_key_store_idString

Generates the random byte string in the AWS CloudHSM cluster that is associated with the specified [custom key store]. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

[1]: docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html

Returns:

  • (String)


1383
1384
1385
1386
1387
# File 'lib/aws-sdk-kms/types.rb', line 1383

class GenerateRandomRequest < Struct.new(
  :number_of_bytes,
  :custom_key_store_id)
  include Aws::Structure
end

#number_of_bytesInteger

The length of the byte string.

Returns:

  • (Integer)


1383
1384
1385
1386
1387
# File 'lib/aws-sdk-kms/types.rb', line 1383

class GenerateRandomRequest < Struct.new(
  :number_of_bytes,
  :custom_key_store_id)
  include Aws::Structure
end