libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SecretsManager.GetRandomPassword

Description

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

Creating a Request

data GetRandomPassword Source #

See: newGetRandomPassword smart constructor.

Constructors

GetRandomPassword' 

Fields

  • includeSpace :: Maybe Bool

    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.

  • excludeNumbers :: Maybe Bool

    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.

  • excludeLowercase :: Maybe Bool

    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.

  • excludeCharacters :: Maybe Text

    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.

  • excludePunctuation :: Maybe Bool

    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.

    The following are the punctuation characters that can be included in the generated password if you don't explicitly exclude them with ExcludeCharacters or ExcludePunctuation:

    ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
  • requireEachIncludedType :: Maybe Bool

    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.

  • excludeUppercase :: Maybe Bool

    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.

  • passwordLength :: Maybe Natural

    The desired length of the generated password. The default value if you do not include this parameter is 32 characters.

Instances

Instances details
Eq GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Read GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Show GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Generic GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Associated Types

type Rep GetRandomPassword :: Type -> Type #

NFData GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Methods

rnf :: GetRandomPassword -> () #

Hashable GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

ToJSON GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

AWSRequest GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Associated Types

type AWSResponse GetRandomPassword #

ToHeaders GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

ToPath GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

ToQuery GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

type Rep GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

type Rep GetRandomPassword = D1 ('MetaData "GetRandomPassword" "Amazonka.SecretsManager.GetRandomPassword" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "GetRandomPassword'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "includeSpace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "excludeNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "excludeLowercase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "excludeCharacters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "excludePunctuation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "requireEachIncludedType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "excludeUppercase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "passwordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse GetRandomPassword Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

newGetRandomPassword :: GetRandomPassword Source #

Create a value of GetRandomPassword with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:includeSpace:GetRandomPassword', getRandomPassword_includeSpace - 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.

$sel:excludeNumbers:GetRandomPassword', getRandomPassword_excludeNumbers - 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.

$sel:excludeLowercase:GetRandomPassword', getRandomPassword_excludeLowercase - 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.

$sel:excludeCharacters:GetRandomPassword', getRandomPassword_excludeCharacters - 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.

$sel:excludePunctuation:GetRandomPassword', getRandomPassword_excludePunctuation - 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.

The following are the punctuation characters that can be included in the generated password if you don't explicitly exclude them with ExcludeCharacters or ExcludePunctuation:

! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

$sel:requireEachIncludedType:GetRandomPassword', getRandomPassword_requireEachIncludedType - 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.

$sel:excludeUppercase:GetRandomPassword', getRandomPassword_excludeUppercase - 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.

$sel:passwordLength:GetRandomPassword', getRandomPassword_passwordLength - The desired length of the generated password. The default value if you do not include this parameter is 32 characters.

Request Lenses

getRandomPassword_includeSpace :: 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.

getRandomPassword_excludeNumbers :: 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.

getRandomPassword_excludeLowercase :: 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.

getRandomPassword_excludeCharacters :: 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.

getRandomPassword_excludePunctuation :: 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.

The following are the punctuation characters that can be included in the generated password if you don't explicitly exclude them with ExcludeCharacters or ExcludePunctuation:

! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

getRandomPassword_requireEachIncludedType :: 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.

getRandomPassword_excludeUppercase :: 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.

getRandomPassword_passwordLength :: 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

data GetRandomPasswordResponse Source #

See: newGetRandomPasswordResponse smart constructor.

Constructors

GetRandomPasswordResponse' 

Fields

Instances

Instances details
Eq GetRandomPasswordResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Show GetRandomPasswordResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Generic GetRandomPasswordResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

Associated Types

type Rep GetRandomPasswordResponse :: Type -> Type #

NFData GetRandomPasswordResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

type Rep GetRandomPasswordResponse Source # 
Instance details

Defined in Amazonka.SecretsManager.GetRandomPassword

type Rep GetRandomPasswordResponse = D1 ('MetaData "GetRandomPasswordResponse" "Amazonka.SecretsManager.GetRandomPassword" "libZSservicesZSamazonka-secretsmanagerZSamazonka-secretsmanager" 'False) (C1 ('MetaCons "GetRandomPasswordResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "randomPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetRandomPasswordResponse Source #

Create a value of GetRandomPasswordResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:randomPassword:GetRandomPasswordResponse', getRandomPasswordResponse_randomPassword - A string with the generated password.

$sel:httpStatus:GetRandomPasswordResponse', getRandomPasswordResponse_httpStatus - The response's http status code.

Response Lenses