| Copyright | (c) 2013-2016 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 |
Network.AWS.KMS.GenerateRandom
Description
Generates an unpredictable byte string.
- 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:
grNumberOfBytes- The length of the byte string.
data GenerateRandom Source #
See: generateRandom smart constructor.
Instances
Request Lenses
grNumberOfBytes :: Lens' GenerateRandom (Maybe Natural) Source #
The length of the byte string.
Destructuring the Response
generateRandomResponse Source #
Arguments
| :: Int | |
| -> GenerateRandomResponse |
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:
grrsPlaintext- The unpredictable byte string.-- Note: ThisLensautomatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLensaccepts and returns only raw unencoded data.grrsResponseStatus- -- | The response status code.
data GenerateRandomResponse Source #
See: generateRandomResponse smart constructor.
Response Lenses
grrsPlaintext :: Lens' GenerateRandomResponse (Maybe ByteString) Source #
The unpredictable byte string.-- Note: This Lens automatically encodes and decodes Base64 data. 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.