{-# 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.CognitoIdentity.GetPrincipalTagAttributeMap
(
GetPrincipalTagAttributeMap (..),
newGetPrincipalTagAttributeMap,
getPrincipalTagAttributeMap_identityPoolId,
getPrincipalTagAttributeMap_identityProviderName,
GetPrincipalTagAttributeMapResponse (..),
newGetPrincipalTagAttributeMapResponse,
getPrincipalTagAttributeMapResponse_identityPoolId,
getPrincipalTagAttributeMapResponse_identityProviderName,
getPrincipalTagAttributeMapResponse_principalTags,
getPrincipalTagAttributeMapResponse_useDefaults,
getPrincipalTagAttributeMapResponse_httpStatus,
)
where
import Amazonka.CognitoIdentity.Types
import qualified Amazonka.Core as Core
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 GetPrincipalTagAttributeMap = GetPrincipalTagAttributeMap'
{
GetPrincipalTagAttributeMap -> Text
identityPoolId :: Prelude.Text,
GetPrincipalTagAttributeMap -> Text
identityProviderName :: Prelude.Text
}
deriving (GetPrincipalTagAttributeMap -> GetPrincipalTagAttributeMap -> Bool
(GetPrincipalTagAttributeMap
-> GetPrincipalTagAttributeMap -> Bool)
-> (GetPrincipalTagAttributeMap
-> GetPrincipalTagAttributeMap -> Bool)
-> Eq GetPrincipalTagAttributeMap
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPrincipalTagAttributeMap -> GetPrincipalTagAttributeMap -> Bool
$c/= :: GetPrincipalTagAttributeMap -> GetPrincipalTagAttributeMap -> Bool
== :: GetPrincipalTagAttributeMap -> GetPrincipalTagAttributeMap -> Bool
$c== :: GetPrincipalTagAttributeMap -> GetPrincipalTagAttributeMap -> Bool
Prelude.Eq, ReadPrec [GetPrincipalTagAttributeMap]
ReadPrec GetPrincipalTagAttributeMap
Int -> ReadS GetPrincipalTagAttributeMap
ReadS [GetPrincipalTagAttributeMap]
(Int -> ReadS GetPrincipalTagAttributeMap)
-> ReadS [GetPrincipalTagAttributeMap]
-> ReadPrec GetPrincipalTagAttributeMap
-> ReadPrec [GetPrincipalTagAttributeMap]
-> Read GetPrincipalTagAttributeMap
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPrincipalTagAttributeMap]
$creadListPrec :: ReadPrec [GetPrincipalTagAttributeMap]
readPrec :: ReadPrec GetPrincipalTagAttributeMap
$creadPrec :: ReadPrec GetPrincipalTagAttributeMap
readList :: ReadS [GetPrincipalTagAttributeMap]
$creadList :: ReadS [GetPrincipalTagAttributeMap]
readsPrec :: Int -> ReadS GetPrincipalTagAttributeMap
$creadsPrec :: Int -> ReadS GetPrincipalTagAttributeMap
Prelude.Read, Int -> GetPrincipalTagAttributeMap -> ShowS
[GetPrincipalTagAttributeMap] -> ShowS
GetPrincipalTagAttributeMap -> String
(Int -> GetPrincipalTagAttributeMap -> ShowS)
-> (GetPrincipalTagAttributeMap -> String)
-> ([GetPrincipalTagAttributeMap] -> ShowS)
-> Show GetPrincipalTagAttributeMap
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPrincipalTagAttributeMap] -> ShowS
$cshowList :: [GetPrincipalTagAttributeMap] -> ShowS
show :: GetPrincipalTagAttributeMap -> String
$cshow :: GetPrincipalTagAttributeMap -> String
showsPrec :: Int -> GetPrincipalTagAttributeMap -> ShowS
$cshowsPrec :: Int -> GetPrincipalTagAttributeMap -> ShowS
Prelude.Show, (forall x.
GetPrincipalTagAttributeMap -> Rep GetPrincipalTagAttributeMap x)
-> (forall x.
Rep GetPrincipalTagAttributeMap x -> GetPrincipalTagAttributeMap)
-> Generic GetPrincipalTagAttributeMap
forall x.
Rep GetPrincipalTagAttributeMap x -> GetPrincipalTagAttributeMap
forall x.
GetPrincipalTagAttributeMap -> Rep GetPrincipalTagAttributeMap x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPrincipalTagAttributeMap x -> GetPrincipalTagAttributeMap
$cfrom :: forall x.
GetPrincipalTagAttributeMap -> Rep GetPrincipalTagAttributeMap x
Prelude.Generic)
newGetPrincipalTagAttributeMap ::
Prelude.Text ->
Prelude.Text ->
GetPrincipalTagAttributeMap
newGetPrincipalTagAttributeMap :: Text -> Text -> GetPrincipalTagAttributeMap
newGetPrincipalTagAttributeMap
Text
pIdentityPoolId_
Text
pIdentityProviderName_ =
GetPrincipalTagAttributeMap' :: Text -> Text -> GetPrincipalTagAttributeMap
GetPrincipalTagAttributeMap'
{ $sel:identityPoolId:GetPrincipalTagAttributeMap' :: Text
identityPoolId =
Text
pIdentityPoolId_,
$sel:identityProviderName:GetPrincipalTagAttributeMap' :: Text
identityProviderName = Text
pIdentityProviderName_
}
getPrincipalTagAttributeMap_identityPoolId :: Lens.Lens' GetPrincipalTagAttributeMap Prelude.Text
getPrincipalTagAttributeMap_identityPoolId :: (Text -> f Text)
-> GetPrincipalTagAttributeMap -> f GetPrincipalTagAttributeMap
getPrincipalTagAttributeMap_identityPoolId = (GetPrincipalTagAttributeMap -> Text)
-> (GetPrincipalTagAttributeMap
-> Text -> GetPrincipalTagAttributeMap)
-> Lens
GetPrincipalTagAttributeMap GetPrincipalTagAttributeMap Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMap' {Text
identityPoolId :: Text
$sel:identityPoolId:GetPrincipalTagAttributeMap' :: GetPrincipalTagAttributeMap -> Text
identityPoolId} -> Text
identityPoolId) (\s :: GetPrincipalTagAttributeMap
s@GetPrincipalTagAttributeMap' {} Text
a -> GetPrincipalTagAttributeMap
s {$sel:identityPoolId:GetPrincipalTagAttributeMap' :: Text
identityPoolId = Text
a} :: GetPrincipalTagAttributeMap)
getPrincipalTagAttributeMap_identityProviderName :: Lens.Lens' GetPrincipalTagAttributeMap Prelude.Text
getPrincipalTagAttributeMap_identityProviderName :: (Text -> f Text)
-> GetPrincipalTagAttributeMap -> f GetPrincipalTagAttributeMap
getPrincipalTagAttributeMap_identityProviderName = (GetPrincipalTagAttributeMap -> Text)
-> (GetPrincipalTagAttributeMap
-> Text -> GetPrincipalTagAttributeMap)
-> Lens
GetPrincipalTagAttributeMap GetPrincipalTagAttributeMap Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMap' {Text
identityProviderName :: Text
$sel:identityProviderName:GetPrincipalTagAttributeMap' :: GetPrincipalTagAttributeMap -> Text
identityProviderName} -> Text
identityProviderName) (\s :: GetPrincipalTagAttributeMap
s@GetPrincipalTagAttributeMap' {} Text
a -> GetPrincipalTagAttributeMap
s {$sel:identityProviderName:GetPrincipalTagAttributeMap' :: Text
identityProviderName = Text
a} :: GetPrincipalTagAttributeMap)
instance Core.AWSRequest GetPrincipalTagAttributeMap where
type
AWSResponse GetPrincipalTagAttributeMap =
GetPrincipalTagAttributeMapResponse
request :: GetPrincipalTagAttributeMap -> Request GetPrincipalTagAttributeMap
request = Service
-> GetPrincipalTagAttributeMap
-> Request GetPrincipalTagAttributeMap
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetPrincipalTagAttributeMap
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetPrincipalTagAttributeMap)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetPrincipalTagAttributeMap))
-> Logger
-> Service
-> Proxy GetPrincipalTagAttributeMap
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetPrincipalTagAttributeMap)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Int
-> GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse'
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Int
-> GetPrincipalTagAttributeMapResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Int
-> GetPrincipalTagAttributeMapResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IdentityPoolId")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Int
-> GetPrincipalTagAttributeMapResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Bool -> Int -> GetPrincipalTagAttributeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IdentityProviderName")
Either
String
(Maybe (HashMap Text Text)
-> Maybe Bool -> Int -> GetPrincipalTagAttributeMapResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String (Maybe Bool -> Int -> GetPrincipalTagAttributeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PrincipalTags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Bool -> Int -> GetPrincipalTagAttributeMapResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> GetPrincipalTagAttributeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UseDefaults")
Either String (Int -> GetPrincipalTagAttributeMapResponse)
-> Either String Int
-> Either String GetPrincipalTagAttributeMapResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetPrincipalTagAttributeMap
instance Prelude.NFData GetPrincipalTagAttributeMap
instance Core.ToHeaders GetPrincipalTagAttributeMap where
toHeaders :: GetPrincipalTagAttributeMap -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetPrincipalTagAttributeMap -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSCognitoIdentityService.GetPrincipalTagAttributeMap" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetPrincipalTagAttributeMap where
toJSON :: GetPrincipalTagAttributeMap -> Value
toJSON GetPrincipalTagAttributeMap' {Text
identityProviderName :: Text
identityPoolId :: Text
$sel:identityProviderName:GetPrincipalTagAttributeMap' :: GetPrincipalTagAttributeMap -> Text
$sel:identityPoolId:GetPrincipalTagAttributeMap' :: GetPrincipalTagAttributeMap -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"IdentityPoolId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
identityPoolId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"IdentityProviderName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
identityProviderName
)
]
)
instance Core.ToPath GetPrincipalTagAttributeMap where
toPath :: GetPrincipalTagAttributeMap -> ByteString
toPath = ByteString -> GetPrincipalTagAttributeMap -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetPrincipalTagAttributeMap where
toQuery :: GetPrincipalTagAttributeMap -> QueryString
toQuery = QueryString -> GetPrincipalTagAttributeMap -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetPrincipalTagAttributeMapResponse = GetPrincipalTagAttributeMapResponse'
{
GetPrincipalTagAttributeMapResponse -> Maybe Text
identityPoolId :: Prelude.Maybe Prelude.Text,
GetPrincipalTagAttributeMapResponse -> Maybe Text
identityProviderName :: Prelude.Maybe Prelude.Text,
GetPrincipalTagAttributeMapResponse -> Maybe (HashMap Text Text)
principalTags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetPrincipalTagAttributeMapResponse -> Maybe Bool
useDefaults :: Prelude.Maybe Prelude.Bool,
GetPrincipalTagAttributeMapResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool
(GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool)
-> (GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool)
-> Eq GetPrincipalTagAttributeMapResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool
$c/= :: GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool
== :: GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool
$c== :: GetPrincipalTagAttributeMapResponse
-> GetPrincipalTagAttributeMapResponse -> Bool
Prelude.Eq, ReadPrec [GetPrincipalTagAttributeMapResponse]
ReadPrec GetPrincipalTagAttributeMapResponse
Int -> ReadS GetPrincipalTagAttributeMapResponse
ReadS [GetPrincipalTagAttributeMapResponse]
(Int -> ReadS GetPrincipalTagAttributeMapResponse)
-> ReadS [GetPrincipalTagAttributeMapResponse]
-> ReadPrec GetPrincipalTagAttributeMapResponse
-> ReadPrec [GetPrincipalTagAttributeMapResponse]
-> Read GetPrincipalTagAttributeMapResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPrincipalTagAttributeMapResponse]
$creadListPrec :: ReadPrec [GetPrincipalTagAttributeMapResponse]
readPrec :: ReadPrec GetPrincipalTagAttributeMapResponse
$creadPrec :: ReadPrec GetPrincipalTagAttributeMapResponse
readList :: ReadS [GetPrincipalTagAttributeMapResponse]
$creadList :: ReadS [GetPrincipalTagAttributeMapResponse]
readsPrec :: Int -> ReadS GetPrincipalTagAttributeMapResponse
$creadsPrec :: Int -> ReadS GetPrincipalTagAttributeMapResponse
Prelude.Read, Int -> GetPrincipalTagAttributeMapResponse -> ShowS
[GetPrincipalTagAttributeMapResponse] -> ShowS
GetPrincipalTagAttributeMapResponse -> String
(Int -> GetPrincipalTagAttributeMapResponse -> ShowS)
-> (GetPrincipalTagAttributeMapResponse -> String)
-> ([GetPrincipalTagAttributeMapResponse] -> ShowS)
-> Show GetPrincipalTagAttributeMapResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPrincipalTagAttributeMapResponse] -> ShowS
$cshowList :: [GetPrincipalTagAttributeMapResponse] -> ShowS
show :: GetPrincipalTagAttributeMapResponse -> String
$cshow :: GetPrincipalTagAttributeMapResponse -> String
showsPrec :: Int -> GetPrincipalTagAttributeMapResponse -> ShowS
$cshowsPrec :: Int -> GetPrincipalTagAttributeMapResponse -> ShowS
Prelude.Show, (forall x.
GetPrincipalTagAttributeMapResponse
-> Rep GetPrincipalTagAttributeMapResponse x)
-> (forall x.
Rep GetPrincipalTagAttributeMapResponse x
-> GetPrincipalTagAttributeMapResponse)
-> Generic GetPrincipalTagAttributeMapResponse
forall x.
Rep GetPrincipalTagAttributeMapResponse x
-> GetPrincipalTagAttributeMapResponse
forall x.
GetPrincipalTagAttributeMapResponse
-> Rep GetPrincipalTagAttributeMapResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPrincipalTagAttributeMapResponse x
-> GetPrincipalTagAttributeMapResponse
$cfrom :: forall x.
GetPrincipalTagAttributeMapResponse
-> Rep GetPrincipalTagAttributeMapResponse x
Prelude.Generic)
newGetPrincipalTagAttributeMapResponse ::
Prelude.Int ->
GetPrincipalTagAttributeMapResponse
newGetPrincipalTagAttributeMapResponse :: Int -> GetPrincipalTagAttributeMapResponse
newGetPrincipalTagAttributeMapResponse Int
pHttpStatus_ =
GetPrincipalTagAttributeMapResponse' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Int
-> GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse'
{ $sel:identityPoolId:GetPrincipalTagAttributeMapResponse' :: Maybe Text
identityPoolId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:identityProviderName:GetPrincipalTagAttributeMapResponse' :: Maybe Text
identityProviderName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:principalTags:GetPrincipalTagAttributeMapResponse' :: Maybe (HashMap Text Text)
principalTags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:useDefaults:GetPrincipalTagAttributeMapResponse' :: Maybe Bool
useDefaults = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetPrincipalTagAttributeMapResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getPrincipalTagAttributeMapResponse_identityPoolId :: Lens.Lens' GetPrincipalTagAttributeMapResponse (Prelude.Maybe Prelude.Text)
getPrincipalTagAttributeMapResponse_identityPoolId :: (Maybe Text -> f (Maybe Text))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
getPrincipalTagAttributeMapResponse_identityPoolId = (GetPrincipalTagAttributeMapResponse -> Maybe Text)
-> (GetPrincipalTagAttributeMapResponse
-> Maybe Text -> GetPrincipalTagAttributeMapResponse)
-> Lens
GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMapResponse' {Maybe Text
identityPoolId :: Maybe Text
$sel:identityPoolId:GetPrincipalTagAttributeMapResponse' :: GetPrincipalTagAttributeMapResponse -> Maybe Text
identityPoolId} -> Maybe Text
identityPoolId) (\s :: GetPrincipalTagAttributeMapResponse
s@GetPrincipalTagAttributeMapResponse' {} Maybe Text
a -> GetPrincipalTagAttributeMapResponse
s {$sel:identityPoolId:GetPrincipalTagAttributeMapResponse' :: Maybe Text
identityPoolId = Maybe Text
a} :: GetPrincipalTagAttributeMapResponse)
getPrincipalTagAttributeMapResponse_identityProviderName :: Lens.Lens' GetPrincipalTagAttributeMapResponse (Prelude.Maybe Prelude.Text)
getPrincipalTagAttributeMapResponse_identityProviderName :: (Maybe Text -> f (Maybe Text))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
getPrincipalTagAttributeMapResponse_identityProviderName = (GetPrincipalTagAttributeMapResponse -> Maybe Text)
-> (GetPrincipalTagAttributeMapResponse
-> Maybe Text -> GetPrincipalTagAttributeMapResponse)
-> Lens
GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMapResponse' {Maybe Text
identityProviderName :: Maybe Text
$sel:identityProviderName:GetPrincipalTagAttributeMapResponse' :: GetPrincipalTagAttributeMapResponse -> Maybe Text
identityProviderName} -> Maybe Text
identityProviderName) (\s :: GetPrincipalTagAttributeMapResponse
s@GetPrincipalTagAttributeMapResponse' {} Maybe Text
a -> GetPrincipalTagAttributeMapResponse
s {$sel:identityProviderName:GetPrincipalTagAttributeMapResponse' :: Maybe Text
identityProviderName = Maybe Text
a} :: GetPrincipalTagAttributeMapResponse)
getPrincipalTagAttributeMapResponse_principalTags :: Lens.Lens' GetPrincipalTagAttributeMapResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getPrincipalTagAttributeMapResponse_principalTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
getPrincipalTagAttributeMapResponse_principalTags = (GetPrincipalTagAttributeMapResponse -> Maybe (HashMap Text Text))
-> (GetPrincipalTagAttributeMapResponse
-> Maybe (HashMap Text Text)
-> GetPrincipalTagAttributeMapResponse)
-> Lens
GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMapResponse' {Maybe (HashMap Text Text)
principalTags :: Maybe (HashMap Text Text)
$sel:principalTags:GetPrincipalTagAttributeMapResponse' :: GetPrincipalTagAttributeMapResponse -> Maybe (HashMap Text Text)
principalTags} -> Maybe (HashMap Text Text)
principalTags) (\s :: GetPrincipalTagAttributeMapResponse
s@GetPrincipalTagAttributeMapResponse' {} Maybe (HashMap Text Text)
a -> GetPrincipalTagAttributeMapResponse
s {$sel:principalTags:GetPrincipalTagAttributeMapResponse' :: Maybe (HashMap Text Text)
principalTags = Maybe (HashMap Text Text)
a} :: GetPrincipalTagAttributeMapResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPrincipalTagAttributeMapResponse_useDefaults :: Lens.Lens' GetPrincipalTagAttributeMapResponse (Prelude.Maybe Prelude.Bool)
getPrincipalTagAttributeMapResponse_useDefaults :: (Maybe Bool -> f (Maybe Bool))
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
getPrincipalTagAttributeMapResponse_useDefaults = (GetPrincipalTagAttributeMapResponse -> Maybe Bool)
-> (GetPrincipalTagAttributeMapResponse
-> Maybe Bool -> GetPrincipalTagAttributeMapResponse)
-> Lens
GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMapResponse' {Maybe Bool
useDefaults :: Maybe Bool
$sel:useDefaults:GetPrincipalTagAttributeMapResponse' :: GetPrincipalTagAttributeMapResponse -> Maybe Bool
useDefaults} -> Maybe Bool
useDefaults) (\s :: GetPrincipalTagAttributeMapResponse
s@GetPrincipalTagAttributeMapResponse' {} Maybe Bool
a -> GetPrincipalTagAttributeMapResponse
s {$sel:useDefaults:GetPrincipalTagAttributeMapResponse' :: Maybe Bool
useDefaults = Maybe Bool
a} :: GetPrincipalTagAttributeMapResponse)
getPrincipalTagAttributeMapResponse_httpStatus :: Lens.Lens' GetPrincipalTagAttributeMapResponse Prelude.Int
getPrincipalTagAttributeMapResponse_httpStatus :: (Int -> f Int)
-> GetPrincipalTagAttributeMapResponse
-> f GetPrincipalTagAttributeMapResponse
getPrincipalTagAttributeMapResponse_httpStatus = (GetPrincipalTagAttributeMapResponse -> Int)
-> (GetPrincipalTagAttributeMapResponse
-> Int -> GetPrincipalTagAttributeMapResponse)
-> Lens
GetPrincipalTagAttributeMapResponse
GetPrincipalTagAttributeMapResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPrincipalTagAttributeMapResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetPrincipalTagAttributeMapResponse' :: GetPrincipalTagAttributeMapResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetPrincipalTagAttributeMapResponse
s@GetPrincipalTagAttributeMapResponse' {} Int
a -> GetPrincipalTagAttributeMapResponse
s {$sel:httpStatus:GetPrincipalTagAttributeMapResponse' :: Int
httpStatus = Int
a} :: GetPrincipalTagAttributeMapResponse)
instance
Prelude.NFData
GetPrincipalTagAttributeMapResponse