{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IAM.UpdateAccountPasswordPolicy
(
UpdateAccountPasswordPolicy (..),
newUpdateAccountPasswordPolicy,
updateAccountPasswordPolicy_minimumPasswordLength,
updateAccountPasswordPolicy_requireNumbers,
updateAccountPasswordPolicy_passwordReusePrevention,
updateAccountPasswordPolicy_requireLowercaseCharacters,
updateAccountPasswordPolicy_maxPasswordAge,
updateAccountPasswordPolicy_hardExpiry,
updateAccountPasswordPolicy_requireSymbols,
updateAccountPasswordPolicy_requireUppercaseCharacters,
updateAccountPasswordPolicy_allowUsersToChangePassword,
UpdateAccountPasswordPolicyResponse (..),
newUpdateAccountPasswordPolicyResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateAccountPasswordPolicy = UpdateAccountPasswordPolicy'
{
UpdateAccountPasswordPolicy -> Maybe Natural
minimumPasswordLength :: Prelude.Maybe Prelude.Natural,
UpdateAccountPasswordPolicy -> Maybe Bool
requireNumbers :: Prelude.Maybe Prelude.Bool,
UpdateAccountPasswordPolicy -> Maybe Natural
passwordReusePrevention :: Prelude.Maybe Prelude.Natural,
UpdateAccountPasswordPolicy -> Maybe Bool
requireLowercaseCharacters :: Prelude.Maybe Prelude.Bool,
UpdateAccountPasswordPolicy -> Maybe Natural
maxPasswordAge :: Prelude.Maybe Prelude.Natural,
UpdateAccountPasswordPolicy -> Maybe Bool
hardExpiry :: Prelude.Maybe Prelude.Bool,
UpdateAccountPasswordPolicy -> Maybe Bool
requireSymbols :: Prelude.Maybe Prelude.Bool,
UpdateAccountPasswordPolicy -> Maybe Bool
requireUppercaseCharacters :: Prelude.Maybe Prelude.Bool,
UpdateAccountPasswordPolicy -> Maybe Bool
allowUsersToChangePassword :: Prelude.Maybe Prelude.Bool
}
deriving (UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy -> Bool
(UpdateAccountPasswordPolicy
-> UpdateAccountPasswordPolicy -> Bool)
-> (UpdateAccountPasswordPolicy
-> UpdateAccountPasswordPolicy -> Bool)
-> Eq UpdateAccountPasswordPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy -> Bool
$c/= :: UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy -> Bool
== :: UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy -> Bool
$c== :: UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy -> Bool
Prelude.Eq, ReadPrec [UpdateAccountPasswordPolicy]
ReadPrec UpdateAccountPasswordPolicy
Int -> ReadS UpdateAccountPasswordPolicy
ReadS [UpdateAccountPasswordPolicy]
(Int -> ReadS UpdateAccountPasswordPolicy)
-> ReadS [UpdateAccountPasswordPolicy]
-> ReadPrec UpdateAccountPasswordPolicy
-> ReadPrec [UpdateAccountPasswordPolicy]
-> Read UpdateAccountPasswordPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAccountPasswordPolicy]
$creadListPrec :: ReadPrec [UpdateAccountPasswordPolicy]
readPrec :: ReadPrec UpdateAccountPasswordPolicy
$creadPrec :: ReadPrec UpdateAccountPasswordPolicy
readList :: ReadS [UpdateAccountPasswordPolicy]
$creadList :: ReadS [UpdateAccountPasswordPolicy]
readsPrec :: Int -> ReadS UpdateAccountPasswordPolicy
$creadsPrec :: Int -> ReadS UpdateAccountPasswordPolicy
Prelude.Read, Int -> UpdateAccountPasswordPolicy -> ShowS
[UpdateAccountPasswordPolicy] -> ShowS
UpdateAccountPasswordPolicy -> String
(Int -> UpdateAccountPasswordPolicy -> ShowS)
-> (UpdateAccountPasswordPolicy -> String)
-> ([UpdateAccountPasswordPolicy] -> ShowS)
-> Show UpdateAccountPasswordPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAccountPasswordPolicy] -> ShowS
$cshowList :: [UpdateAccountPasswordPolicy] -> ShowS
show :: UpdateAccountPasswordPolicy -> String
$cshow :: UpdateAccountPasswordPolicy -> String
showsPrec :: Int -> UpdateAccountPasswordPolicy -> ShowS
$cshowsPrec :: Int -> UpdateAccountPasswordPolicy -> ShowS
Prelude.Show, (forall x.
UpdateAccountPasswordPolicy -> Rep UpdateAccountPasswordPolicy x)
-> (forall x.
Rep UpdateAccountPasswordPolicy x -> UpdateAccountPasswordPolicy)
-> Generic UpdateAccountPasswordPolicy
forall x.
Rep UpdateAccountPasswordPolicy x -> UpdateAccountPasswordPolicy
forall x.
UpdateAccountPasswordPolicy -> Rep UpdateAccountPasswordPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAccountPasswordPolicy x -> UpdateAccountPasswordPolicy
$cfrom :: forall x.
UpdateAccountPasswordPolicy -> Rep UpdateAccountPasswordPolicy x
Prelude.Generic)
newUpdateAccountPasswordPolicy ::
UpdateAccountPasswordPolicy
newUpdateAccountPasswordPolicy :: UpdateAccountPasswordPolicy
newUpdateAccountPasswordPolicy =
UpdateAccountPasswordPolicy' :: Maybe Natural
-> Maybe Bool
-> Maybe Natural
-> Maybe Bool
-> Maybe Natural
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy'
{ $sel:minimumPasswordLength:UpdateAccountPasswordPolicy' :: Maybe Natural
minimumPasswordLength =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:requireNumbers:UpdateAccountPasswordPolicy' :: Maybe Bool
requireNumbers = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:passwordReusePrevention:UpdateAccountPasswordPolicy' :: Maybe Natural
passwordReusePrevention = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:requireLowercaseCharacters:UpdateAccountPasswordPolicy' :: Maybe Bool
requireLowercaseCharacters = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:maxPasswordAge:UpdateAccountPasswordPolicy' :: Maybe Natural
maxPasswordAge = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:hardExpiry:UpdateAccountPasswordPolicy' :: Maybe Bool
hardExpiry = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:requireSymbols:UpdateAccountPasswordPolicy' :: Maybe Bool
requireSymbols = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:requireUppercaseCharacters:UpdateAccountPasswordPolicy' :: Maybe Bool
requireUppercaseCharacters = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:allowUsersToChangePassword:UpdateAccountPasswordPolicy' :: Maybe Bool
allowUsersToChangePassword = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
updateAccountPasswordPolicy_minimumPasswordLength :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Natural)
updateAccountPasswordPolicy_minimumPasswordLength :: (Maybe Natural -> f (Maybe Natural))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_minimumPasswordLength = (UpdateAccountPasswordPolicy -> Maybe Natural)
-> (UpdateAccountPasswordPolicy
-> Maybe Natural -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Natural
minimumPasswordLength :: Maybe Natural
$sel:minimumPasswordLength:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
minimumPasswordLength} -> Maybe Natural
minimumPasswordLength) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Natural
a -> UpdateAccountPasswordPolicy
s {$sel:minimumPasswordLength:UpdateAccountPasswordPolicy' :: Maybe Natural
minimumPasswordLength = Maybe Natural
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_requireNumbers :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_requireNumbers :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_requireNumbers = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
requireNumbers :: Maybe Bool
$sel:requireNumbers:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
requireNumbers} -> Maybe Bool
requireNumbers) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:requireNumbers:UpdateAccountPasswordPolicy' :: Maybe Bool
requireNumbers = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_passwordReusePrevention :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Natural)
updateAccountPasswordPolicy_passwordReusePrevention :: (Maybe Natural -> f (Maybe Natural))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_passwordReusePrevention = (UpdateAccountPasswordPolicy -> Maybe Natural)
-> (UpdateAccountPasswordPolicy
-> Maybe Natural -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Natural
passwordReusePrevention :: Maybe Natural
$sel:passwordReusePrevention:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
passwordReusePrevention} -> Maybe Natural
passwordReusePrevention) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Natural
a -> UpdateAccountPasswordPolicy
s {$sel:passwordReusePrevention:UpdateAccountPasswordPolicy' :: Maybe Natural
passwordReusePrevention = Maybe Natural
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_requireLowercaseCharacters :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_requireLowercaseCharacters :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_requireLowercaseCharacters = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
requireLowercaseCharacters :: Maybe Bool
$sel:requireLowercaseCharacters:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
requireLowercaseCharacters} -> Maybe Bool
requireLowercaseCharacters) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:requireLowercaseCharacters:UpdateAccountPasswordPolicy' :: Maybe Bool
requireLowercaseCharacters = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_maxPasswordAge :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Natural)
updateAccountPasswordPolicy_maxPasswordAge :: (Maybe Natural -> f (Maybe Natural))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_maxPasswordAge = (UpdateAccountPasswordPolicy -> Maybe Natural)
-> (UpdateAccountPasswordPolicy
-> Maybe Natural -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Natural
maxPasswordAge :: Maybe Natural
$sel:maxPasswordAge:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
maxPasswordAge} -> Maybe Natural
maxPasswordAge) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Natural
a -> UpdateAccountPasswordPolicy
s {$sel:maxPasswordAge:UpdateAccountPasswordPolicy' :: Maybe Natural
maxPasswordAge = Maybe Natural
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_hardExpiry :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_hardExpiry :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_hardExpiry = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
hardExpiry :: Maybe Bool
$sel:hardExpiry:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
hardExpiry} -> Maybe Bool
hardExpiry) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:hardExpiry:UpdateAccountPasswordPolicy' :: Maybe Bool
hardExpiry = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_requireSymbols :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_requireSymbols :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_requireSymbols = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
requireSymbols :: Maybe Bool
$sel:requireSymbols:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
requireSymbols} -> Maybe Bool
requireSymbols) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:requireSymbols:UpdateAccountPasswordPolicy' :: Maybe Bool
requireSymbols = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_requireUppercaseCharacters :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_requireUppercaseCharacters :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_requireUppercaseCharacters = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
requireUppercaseCharacters :: Maybe Bool
$sel:requireUppercaseCharacters:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
requireUppercaseCharacters} -> Maybe Bool
requireUppercaseCharacters) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:requireUppercaseCharacters:UpdateAccountPasswordPolicy' :: Maybe Bool
requireUppercaseCharacters = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
updateAccountPasswordPolicy_allowUsersToChangePassword :: Lens.Lens' UpdateAccountPasswordPolicy (Prelude.Maybe Prelude.Bool)
updateAccountPasswordPolicy_allowUsersToChangePassword :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAccountPasswordPolicy -> f UpdateAccountPasswordPolicy
updateAccountPasswordPolicy_allowUsersToChangePassword = (UpdateAccountPasswordPolicy -> Maybe Bool)
-> (UpdateAccountPasswordPolicy
-> Maybe Bool -> UpdateAccountPasswordPolicy)
-> Lens
UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicy
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAccountPasswordPolicy' {Maybe Bool
allowUsersToChangePassword :: Maybe Bool
$sel:allowUsersToChangePassword:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
allowUsersToChangePassword} -> Maybe Bool
allowUsersToChangePassword) (\s :: UpdateAccountPasswordPolicy
s@UpdateAccountPasswordPolicy' {} Maybe Bool
a -> UpdateAccountPasswordPolicy
s {$sel:allowUsersToChangePassword:UpdateAccountPasswordPolicy' :: Maybe Bool
allowUsersToChangePassword = Maybe Bool
a} :: UpdateAccountPasswordPolicy)
instance Core.AWSRequest UpdateAccountPasswordPolicy where
type
AWSResponse UpdateAccountPasswordPolicy =
UpdateAccountPasswordPolicyResponse
request :: UpdateAccountPasswordPolicy -> Request UpdateAccountPasswordPolicy
request = Service
-> UpdateAccountPasswordPolicy
-> Request UpdateAccountPasswordPolicy
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAccountPasswordPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAccountPasswordPolicy)))
response =
AWSResponse UpdateAccountPasswordPolicy
-> Logger
-> Service
-> Proxy UpdateAccountPasswordPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAccountPasswordPolicy)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse UpdateAccountPasswordPolicy
UpdateAccountPasswordPolicyResponse
UpdateAccountPasswordPolicyResponse'
instance Prelude.Hashable UpdateAccountPasswordPolicy
instance Prelude.NFData UpdateAccountPasswordPolicy
instance Core.ToHeaders UpdateAccountPasswordPolicy where
toHeaders :: UpdateAccountPasswordPolicy -> [Header]
toHeaders = [Header] -> UpdateAccountPasswordPolicy -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UpdateAccountPasswordPolicy where
toPath :: UpdateAccountPasswordPolicy -> ByteString
toPath = ByteString -> UpdateAccountPasswordPolicy -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateAccountPasswordPolicy where
toQuery :: UpdateAccountPasswordPolicy -> QueryString
toQuery UpdateAccountPasswordPolicy' {Maybe Bool
Maybe Natural
allowUsersToChangePassword :: Maybe Bool
requireUppercaseCharacters :: Maybe Bool
requireSymbols :: Maybe Bool
hardExpiry :: Maybe Bool
maxPasswordAge :: Maybe Natural
requireLowercaseCharacters :: Maybe Bool
passwordReusePrevention :: Maybe Natural
requireNumbers :: Maybe Bool
minimumPasswordLength :: Maybe Natural
$sel:allowUsersToChangePassword:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:requireUppercaseCharacters:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:requireSymbols:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:hardExpiry:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:maxPasswordAge:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
$sel:requireLowercaseCharacters:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:passwordReusePrevention:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
$sel:requireNumbers:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Bool
$sel:minimumPasswordLength:UpdateAccountPasswordPolicy' :: UpdateAccountPasswordPolicy -> Maybe Natural
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"UpdateAccountPasswordPolicy" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"MinimumPasswordLength"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
minimumPasswordLength,
ByteString
"RequireNumbers" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
requireNumbers,
ByteString
"PasswordReusePrevention"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
passwordReusePrevention,
ByteString
"RequireLowercaseCharacters"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
requireLowercaseCharacters,
ByteString
"MaxPasswordAge" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxPasswordAge,
ByteString
"HardExpiry" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
hardExpiry,
ByteString
"RequireSymbols" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
requireSymbols,
ByteString
"RequireUppercaseCharacters"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
requireUppercaseCharacters,
ByteString
"AllowUsersToChangePassword"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
allowUsersToChangePassword
]
data UpdateAccountPasswordPolicyResponse = UpdateAccountPasswordPolicyResponse'
{
}
deriving (UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool
(UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool)
-> (UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool)
-> Eq UpdateAccountPasswordPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool
$c/= :: UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool
== :: UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool
$c== :: UpdateAccountPasswordPolicyResponse
-> UpdateAccountPasswordPolicyResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAccountPasswordPolicyResponse]
ReadPrec UpdateAccountPasswordPolicyResponse
Int -> ReadS UpdateAccountPasswordPolicyResponse
ReadS [UpdateAccountPasswordPolicyResponse]
(Int -> ReadS UpdateAccountPasswordPolicyResponse)
-> ReadS [UpdateAccountPasswordPolicyResponse]
-> ReadPrec UpdateAccountPasswordPolicyResponse
-> ReadPrec [UpdateAccountPasswordPolicyResponse]
-> Read UpdateAccountPasswordPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAccountPasswordPolicyResponse]
$creadListPrec :: ReadPrec [UpdateAccountPasswordPolicyResponse]
readPrec :: ReadPrec UpdateAccountPasswordPolicyResponse
$creadPrec :: ReadPrec UpdateAccountPasswordPolicyResponse
readList :: ReadS [UpdateAccountPasswordPolicyResponse]
$creadList :: ReadS [UpdateAccountPasswordPolicyResponse]
readsPrec :: Int -> ReadS UpdateAccountPasswordPolicyResponse
$creadsPrec :: Int -> ReadS UpdateAccountPasswordPolicyResponse
Prelude.Read, Int -> UpdateAccountPasswordPolicyResponse -> ShowS
[UpdateAccountPasswordPolicyResponse] -> ShowS
UpdateAccountPasswordPolicyResponse -> String
(Int -> UpdateAccountPasswordPolicyResponse -> ShowS)
-> (UpdateAccountPasswordPolicyResponse -> String)
-> ([UpdateAccountPasswordPolicyResponse] -> ShowS)
-> Show UpdateAccountPasswordPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAccountPasswordPolicyResponse] -> ShowS
$cshowList :: [UpdateAccountPasswordPolicyResponse] -> ShowS
show :: UpdateAccountPasswordPolicyResponse -> String
$cshow :: UpdateAccountPasswordPolicyResponse -> String
showsPrec :: Int -> UpdateAccountPasswordPolicyResponse -> ShowS
$cshowsPrec :: Int -> UpdateAccountPasswordPolicyResponse -> ShowS
Prelude.Show, (forall x.
UpdateAccountPasswordPolicyResponse
-> Rep UpdateAccountPasswordPolicyResponse x)
-> (forall x.
Rep UpdateAccountPasswordPolicyResponse x
-> UpdateAccountPasswordPolicyResponse)
-> Generic UpdateAccountPasswordPolicyResponse
forall x.
Rep UpdateAccountPasswordPolicyResponse x
-> UpdateAccountPasswordPolicyResponse
forall x.
UpdateAccountPasswordPolicyResponse
-> Rep UpdateAccountPasswordPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAccountPasswordPolicyResponse x
-> UpdateAccountPasswordPolicyResponse
$cfrom :: forall x.
UpdateAccountPasswordPolicyResponse
-> Rep UpdateAccountPasswordPolicyResponse x
Prelude.Generic)
newUpdateAccountPasswordPolicyResponse ::
UpdateAccountPasswordPolicyResponse
newUpdateAccountPasswordPolicyResponse :: UpdateAccountPasswordPolicyResponse
newUpdateAccountPasswordPolicyResponse =
UpdateAccountPasswordPolicyResponse
UpdateAccountPasswordPolicyResponse'
instance
Prelude.NFData
UpdateAccountPasswordPolicyResponse