amazonka-kms-1.3.3.1: Amazon Key Management Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.GenerateRandom

Contents

Description

Generates an unpredictable byte string.

See: AWS API Reference for GenerateRandom.

Synopsis

Creating a Request

generateRandom :: GenerateRandom Source

Creates a value of GenerateRandom with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

grNumberOfBytes :: Lens' GenerateRandom (Maybe Natural) Source

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. The current limit is 1024 bytes.

Destructuring the Response

generateRandomResponse Source

Creates a value of GenerateRandomResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

grrsPlaintext :: Lens' GenerateRandomResponse (Maybe ByteString) Source

Plaintext that contains the unpredictable byte string.

Note: This Lens automatically encodes and decodes Base64 data, despite what the AWS documentation might say. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.