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