| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.KMS.GenerateRandom
Description
Returns a random byte string that is cryptographically secure.
For more information about entropy and random number generation, see the AWS Key Management Service Cryptographic Details whitepaper.
Synopsis
- 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 random byte string. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.-- 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.
Instances
Response Lenses
grrsPlaintext :: Lens' GenerateRandomResponse (Maybe ByteString) Source #
The random byte string. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.-- 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.