{-# 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.DeleteAccountPasswordPolicy
(
DeleteAccountPasswordPolicy (..),
newDeleteAccountPasswordPolicy,
DeleteAccountPasswordPolicyResponse (..),
newDeleteAccountPasswordPolicyResponse,
)
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 DeleteAccountPasswordPolicy = DeleteAccountPasswordPolicy'
{
}
deriving (DeleteAccountPasswordPolicy -> DeleteAccountPasswordPolicy -> Bool
(DeleteAccountPasswordPolicy
-> DeleteAccountPasswordPolicy -> Bool)
-> (DeleteAccountPasswordPolicy
-> DeleteAccountPasswordPolicy -> Bool)
-> Eq DeleteAccountPasswordPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAccountPasswordPolicy -> DeleteAccountPasswordPolicy -> Bool
$c/= :: DeleteAccountPasswordPolicy -> DeleteAccountPasswordPolicy -> Bool
== :: DeleteAccountPasswordPolicy -> DeleteAccountPasswordPolicy -> Bool
$c== :: DeleteAccountPasswordPolicy -> DeleteAccountPasswordPolicy -> Bool
Prelude.Eq, ReadPrec [DeleteAccountPasswordPolicy]
ReadPrec DeleteAccountPasswordPolicy
Int -> ReadS DeleteAccountPasswordPolicy
ReadS [DeleteAccountPasswordPolicy]
(Int -> ReadS DeleteAccountPasswordPolicy)
-> ReadS [DeleteAccountPasswordPolicy]
-> ReadPrec DeleteAccountPasswordPolicy
-> ReadPrec [DeleteAccountPasswordPolicy]
-> Read DeleteAccountPasswordPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAccountPasswordPolicy]
$creadListPrec :: ReadPrec [DeleteAccountPasswordPolicy]
readPrec :: ReadPrec DeleteAccountPasswordPolicy
$creadPrec :: ReadPrec DeleteAccountPasswordPolicy
readList :: ReadS [DeleteAccountPasswordPolicy]
$creadList :: ReadS [DeleteAccountPasswordPolicy]
readsPrec :: Int -> ReadS DeleteAccountPasswordPolicy
$creadsPrec :: Int -> ReadS DeleteAccountPasswordPolicy
Prelude.Read, Int -> DeleteAccountPasswordPolicy -> ShowS
[DeleteAccountPasswordPolicy] -> ShowS
DeleteAccountPasswordPolicy -> String
(Int -> DeleteAccountPasswordPolicy -> ShowS)
-> (DeleteAccountPasswordPolicy -> String)
-> ([DeleteAccountPasswordPolicy] -> ShowS)
-> Show DeleteAccountPasswordPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAccountPasswordPolicy] -> ShowS
$cshowList :: [DeleteAccountPasswordPolicy] -> ShowS
show :: DeleteAccountPasswordPolicy -> String
$cshow :: DeleteAccountPasswordPolicy -> String
showsPrec :: Int -> DeleteAccountPasswordPolicy -> ShowS
$cshowsPrec :: Int -> DeleteAccountPasswordPolicy -> ShowS
Prelude.Show, (forall x.
DeleteAccountPasswordPolicy -> Rep DeleteAccountPasswordPolicy x)
-> (forall x.
Rep DeleteAccountPasswordPolicy x -> DeleteAccountPasswordPolicy)
-> Generic DeleteAccountPasswordPolicy
forall x.
Rep DeleteAccountPasswordPolicy x -> DeleteAccountPasswordPolicy
forall x.
DeleteAccountPasswordPolicy -> Rep DeleteAccountPasswordPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteAccountPasswordPolicy x -> DeleteAccountPasswordPolicy
$cfrom :: forall x.
DeleteAccountPasswordPolicy -> Rep DeleteAccountPasswordPolicy x
Prelude.Generic)
newDeleteAccountPasswordPolicy ::
DeleteAccountPasswordPolicy
newDeleteAccountPasswordPolicy :: DeleteAccountPasswordPolicy
newDeleteAccountPasswordPolicy =
DeleteAccountPasswordPolicy
DeleteAccountPasswordPolicy'
instance Core.AWSRequest DeleteAccountPasswordPolicy where
type
AWSResponse DeleteAccountPasswordPolicy =
DeleteAccountPasswordPolicyResponse
request :: DeleteAccountPasswordPolicy -> Request DeleteAccountPasswordPolicy
request = Service
-> DeleteAccountPasswordPolicy
-> Request DeleteAccountPasswordPolicy
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteAccountPasswordPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteAccountPasswordPolicy)))
response =
AWSResponse DeleteAccountPasswordPolicy
-> Logger
-> Service
-> Proxy DeleteAccountPasswordPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteAccountPasswordPolicy)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteAccountPasswordPolicy
DeleteAccountPasswordPolicyResponse
DeleteAccountPasswordPolicyResponse'
instance Prelude.Hashable DeleteAccountPasswordPolicy
instance Prelude.NFData DeleteAccountPasswordPolicy
instance Core.ToHeaders DeleteAccountPasswordPolicy where
toHeaders :: DeleteAccountPasswordPolicy -> [Header]
toHeaders = [Header] -> DeleteAccountPasswordPolicy -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DeleteAccountPasswordPolicy where
toPath :: DeleteAccountPasswordPolicy -> ByteString
toPath = ByteString -> DeleteAccountPasswordPolicy -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DeleteAccountPasswordPolicy where
toQuery :: DeleteAccountPasswordPolicy -> QueryString
toQuery =
QueryString -> DeleteAccountPasswordPolicy -> QueryString
forall a b. a -> b -> a
Prelude.const
( [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DeleteAccountPasswordPolicy" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString)
]
)
data DeleteAccountPasswordPolicyResponse = DeleteAccountPasswordPolicyResponse'
{
}
deriving (DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool
(DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool)
-> (DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool)
-> Eq DeleteAccountPasswordPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool
$c/= :: DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool
== :: DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool
$c== :: DeleteAccountPasswordPolicyResponse
-> DeleteAccountPasswordPolicyResponse -> Bool
Prelude.Eq, ReadPrec [DeleteAccountPasswordPolicyResponse]
ReadPrec DeleteAccountPasswordPolicyResponse
Int -> ReadS DeleteAccountPasswordPolicyResponse
ReadS [DeleteAccountPasswordPolicyResponse]
(Int -> ReadS DeleteAccountPasswordPolicyResponse)
-> ReadS [DeleteAccountPasswordPolicyResponse]
-> ReadPrec DeleteAccountPasswordPolicyResponse
-> ReadPrec [DeleteAccountPasswordPolicyResponse]
-> Read DeleteAccountPasswordPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAccountPasswordPolicyResponse]
$creadListPrec :: ReadPrec [DeleteAccountPasswordPolicyResponse]
readPrec :: ReadPrec DeleteAccountPasswordPolicyResponse
$creadPrec :: ReadPrec DeleteAccountPasswordPolicyResponse
readList :: ReadS [DeleteAccountPasswordPolicyResponse]
$creadList :: ReadS [DeleteAccountPasswordPolicyResponse]
readsPrec :: Int -> ReadS DeleteAccountPasswordPolicyResponse
$creadsPrec :: Int -> ReadS DeleteAccountPasswordPolicyResponse
Prelude.Read, Int -> DeleteAccountPasswordPolicyResponse -> ShowS
[DeleteAccountPasswordPolicyResponse] -> ShowS
DeleteAccountPasswordPolicyResponse -> String
(Int -> DeleteAccountPasswordPolicyResponse -> ShowS)
-> (DeleteAccountPasswordPolicyResponse -> String)
-> ([DeleteAccountPasswordPolicyResponse] -> ShowS)
-> Show DeleteAccountPasswordPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAccountPasswordPolicyResponse] -> ShowS
$cshowList :: [DeleteAccountPasswordPolicyResponse] -> ShowS
show :: DeleteAccountPasswordPolicyResponse -> String
$cshow :: DeleteAccountPasswordPolicyResponse -> String
showsPrec :: Int -> DeleteAccountPasswordPolicyResponse -> ShowS
$cshowsPrec :: Int -> DeleteAccountPasswordPolicyResponse -> ShowS
Prelude.Show, (forall x.
DeleteAccountPasswordPolicyResponse
-> Rep DeleteAccountPasswordPolicyResponse x)
-> (forall x.
Rep DeleteAccountPasswordPolicyResponse x
-> DeleteAccountPasswordPolicyResponse)
-> Generic DeleteAccountPasswordPolicyResponse
forall x.
Rep DeleteAccountPasswordPolicyResponse x
-> DeleteAccountPasswordPolicyResponse
forall x.
DeleteAccountPasswordPolicyResponse
-> Rep DeleteAccountPasswordPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteAccountPasswordPolicyResponse x
-> DeleteAccountPasswordPolicyResponse
$cfrom :: forall x.
DeleteAccountPasswordPolicyResponse
-> Rep DeleteAccountPasswordPolicyResponse x
Prelude.Generic)
newDeleteAccountPasswordPolicyResponse ::
DeleteAccountPasswordPolicyResponse
newDeleteAccountPasswordPolicyResponse :: DeleteAccountPasswordPolicyResponse
newDeleteAccountPasswordPolicyResponse =
DeleteAccountPasswordPolicyResponse
DeleteAccountPasswordPolicyResponse'
instance
Prelude.NFData
DeleteAccountPasswordPolicyResponse