Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Generates an unpredictable byte string.
See: AWS API Reference for GenerateRandom.
- generateRandom :: GenerateRandom
- data GenerateRandom
- grNumberOfBytes :: Lens' GenerateRandom (Maybe Natural)
- generateRandomResponse :: Int -> GenerateRandomResponse
- data GenerateRandomResponse
- grrsPlaintext :: Lens' GenerateRandomResponse (Maybe ByteString)
- grrsResponseStatus :: Lens' GenerateRandomResponse Int
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:
data GenerateRandom Source
See: generateRandom
smart constructor.
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
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:
data GenerateRandomResponse Source
See: generateRandomResponse
smart constructor.
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.
grrsResponseStatus :: Lens' GenerateRandomResponse Int Source
The response status code.