| 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 #
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 #
See: generateRandom smart constructor.
Instances
Request Lenses
grNumberOfBytes :: Lens' GenerateRandom (Maybe Natural) #
The length of the byte string.
Destructuring the Response
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 #
See: generateRandomResponse smart constructor.
Response Lenses
grrsPlaintext :: Lens' GenerateRandomResponse (Maybe ByteString) #
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 #
- - | The response status code.