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 |
Generates a random password of the specified complexity. This operation is intended for use in the Lambda rotation function. Per best practice, we recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.
Minimum permissions
To run this command, you must have the following permissions:
- secretsmanager:GetRandomPassword
Synopsis
- getRandomPassword :: GetRandomPassword
- data GetRandomPassword
- grpIncludeSpace :: Lens' GetRandomPassword (Maybe Bool)
- grpExcludeNumbers :: Lens' GetRandomPassword (Maybe Bool)
- grpExcludeLowercase :: Lens' GetRandomPassword (Maybe Bool)
- grpExcludeCharacters :: Lens' GetRandomPassword (Maybe Text)
- grpExcludePunctuation :: Lens' GetRandomPassword (Maybe Bool)
- grpRequireEachIncludedType :: Lens' GetRandomPassword (Maybe Bool)
- grpExcludeUppercase :: Lens' GetRandomPassword (Maybe Bool)
- grpPasswordLength :: Lens' GetRandomPassword (Maybe Natural)
- getRandomPasswordResponse :: Int -> GetRandomPasswordResponse
- data GetRandomPasswordResponse
- grprsRandomPassword :: Lens' GetRandomPasswordResponse (Maybe Text)
- grprsResponseStatus :: Lens' GetRandomPasswordResponse Int
Creating a Request
getRandomPassword :: GetRandomPassword Source #
Creates a value of GetRandomPassword
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grpIncludeSpace
- Specifies that the generated password can include the space character. The default if you do not include this switch parameter is that the space character is not included.grpExcludeNumbers
- Specifies that the generated password should not include digits. The default if you do not include this switch parameter is that digits can be included.grpExcludeLowercase
- Specifies that the generated password should not include lowercase letters. The default if you do not include this switch parameter is that lowercase letters can be included.grpExcludeCharacters
- A string that includes characters that should not be included in the generated password. The default is that all characters from the included sets can be used.grpExcludePunctuation
- Specifies that the generated password should not include punctuation characters. The default if you do not include this switch parameter is that punctuation characters can be included.grpRequireEachIncludedType
- A boolean value that specifies whether the generated password must include at least one of every allowed character type. The default value isTrue
and the operation requires at least one of every character type.grpExcludeUppercase
- Specifies that the generated password should not include uppercase letters. The default if you do not include this switch parameter is that uppercase letters can be included.grpPasswordLength
- The desired length of the generated password. The default value if you do not include this parameter is 32 characters.
data GetRandomPassword Source #
See: getRandomPassword
smart constructor.
Instances
Request Lenses
grpIncludeSpace :: Lens' GetRandomPassword (Maybe Bool) Source #
Specifies that the generated password can include the space character. The default if you do not include this switch parameter is that the space character is not included.
grpExcludeNumbers :: Lens' GetRandomPassword (Maybe Bool) Source #
Specifies that the generated password should not include digits. The default if you do not include this switch parameter is that digits can be included.
grpExcludeLowercase :: Lens' GetRandomPassword (Maybe Bool) Source #
Specifies that the generated password should not include lowercase letters. The default if you do not include this switch parameter is that lowercase letters can be included.
grpExcludeCharacters :: Lens' GetRandomPassword (Maybe Text) Source #
A string that includes characters that should not be included in the generated password. The default is that all characters from the included sets can be used.
grpExcludePunctuation :: Lens' GetRandomPassword (Maybe Bool) Source #
Specifies that the generated password should not include punctuation characters. The default if you do not include this switch parameter is that punctuation characters can be included.
grpRequireEachIncludedType :: Lens' GetRandomPassword (Maybe Bool) Source #
A boolean value that specifies whether the generated password must include at least one of every allowed character type. The default value is True
and the operation requires at least one of every character type.
grpExcludeUppercase :: Lens' GetRandomPassword (Maybe Bool) Source #
Specifies that the generated password should not include uppercase letters. The default if you do not include this switch parameter is that uppercase letters can be included.
grpPasswordLength :: Lens' GetRandomPassword (Maybe Natural) Source #
The desired length of the generated password. The default value if you do not include this parameter is 32 characters.
Destructuring the Response
getRandomPasswordResponse Source #
Creates a value of GetRandomPasswordResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grprsRandomPassword
- A string with the generated password.grprsResponseStatus
- -- | The response status code.
data GetRandomPasswordResponse Source #
See: getRandomPasswordResponse
smart constructor.
Instances
Response Lenses
grprsRandomPassword :: Lens' GetRandomPasswordResponse (Maybe Text) Source #
A string with the generated password.
grprsResponseStatus :: Lens' GetRandomPasswordResponse Int Source #
- - | The response status code.