{-# 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.ServiceCatalogAppRegistry.GetAttributeGroup
(
GetAttributeGroup (..),
newGetAttributeGroup,
getAttributeGroup_attributeGroup,
GetAttributeGroupResponse (..),
newGetAttributeGroupResponse,
getAttributeGroupResponse_creationTime,
getAttributeGroupResponse_arn,
getAttributeGroupResponse_name,
getAttributeGroupResponse_attributes,
getAttributeGroupResponse_id,
getAttributeGroupResponse_lastUpdateTime,
getAttributeGroupResponse_description,
getAttributeGroupResponse_tags,
getAttributeGroupResponse_httpStatus,
)
where
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
import Amazonka.ServiceCatalogAppRegistry.Types
data GetAttributeGroup = GetAttributeGroup'
{
GetAttributeGroup -> Text
attributeGroup :: Prelude.Text
}
deriving (GetAttributeGroup -> GetAttributeGroup -> Bool
(GetAttributeGroup -> GetAttributeGroup -> Bool)
-> (GetAttributeGroup -> GetAttributeGroup -> Bool)
-> Eq GetAttributeGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAttributeGroup -> GetAttributeGroup -> Bool
$c/= :: GetAttributeGroup -> GetAttributeGroup -> Bool
== :: GetAttributeGroup -> GetAttributeGroup -> Bool
$c== :: GetAttributeGroup -> GetAttributeGroup -> Bool
Prelude.Eq, ReadPrec [GetAttributeGroup]
ReadPrec GetAttributeGroup
Int -> ReadS GetAttributeGroup
ReadS [GetAttributeGroup]
(Int -> ReadS GetAttributeGroup)
-> ReadS [GetAttributeGroup]
-> ReadPrec GetAttributeGroup
-> ReadPrec [GetAttributeGroup]
-> Read GetAttributeGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAttributeGroup]
$creadListPrec :: ReadPrec [GetAttributeGroup]
readPrec :: ReadPrec GetAttributeGroup
$creadPrec :: ReadPrec GetAttributeGroup
readList :: ReadS [GetAttributeGroup]
$creadList :: ReadS [GetAttributeGroup]
readsPrec :: Int -> ReadS GetAttributeGroup
$creadsPrec :: Int -> ReadS GetAttributeGroup
Prelude.Read, Int -> GetAttributeGroup -> ShowS
[GetAttributeGroup] -> ShowS
GetAttributeGroup -> String
(Int -> GetAttributeGroup -> ShowS)
-> (GetAttributeGroup -> String)
-> ([GetAttributeGroup] -> ShowS)
-> Show GetAttributeGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAttributeGroup] -> ShowS
$cshowList :: [GetAttributeGroup] -> ShowS
show :: GetAttributeGroup -> String
$cshow :: GetAttributeGroup -> String
showsPrec :: Int -> GetAttributeGroup -> ShowS
$cshowsPrec :: Int -> GetAttributeGroup -> ShowS
Prelude.Show, (forall x. GetAttributeGroup -> Rep GetAttributeGroup x)
-> (forall x. Rep GetAttributeGroup x -> GetAttributeGroup)
-> Generic GetAttributeGroup
forall x. Rep GetAttributeGroup x -> GetAttributeGroup
forall x. GetAttributeGroup -> Rep GetAttributeGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetAttributeGroup x -> GetAttributeGroup
$cfrom :: forall x. GetAttributeGroup -> Rep GetAttributeGroup x
Prelude.Generic)
newGetAttributeGroup ::
Prelude.Text ->
GetAttributeGroup
newGetAttributeGroup :: Text -> GetAttributeGroup
newGetAttributeGroup Text
pAttributeGroup_ =
GetAttributeGroup' :: Text -> GetAttributeGroup
GetAttributeGroup'
{ $sel:attributeGroup:GetAttributeGroup' :: Text
attributeGroup =
Text
pAttributeGroup_
}
getAttributeGroup_attributeGroup :: Lens.Lens' GetAttributeGroup Prelude.Text
getAttributeGroup_attributeGroup :: (Text -> f Text) -> GetAttributeGroup -> f GetAttributeGroup
getAttributeGroup_attributeGroup = (GetAttributeGroup -> Text)
-> (GetAttributeGroup -> Text -> GetAttributeGroup)
-> Lens GetAttributeGroup GetAttributeGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroup' {Text
attributeGroup :: Text
$sel:attributeGroup:GetAttributeGroup' :: GetAttributeGroup -> Text
attributeGroup} -> Text
attributeGroup) (\s :: GetAttributeGroup
s@GetAttributeGroup' {} Text
a -> GetAttributeGroup
s {$sel:attributeGroup:GetAttributeGroup' :: Text
attributeGroup = Text
a} :: GetAttributeGroup)
instance Core.AWSRequest GetAttributeGroup where
type
AWSResponse GetAttributeGroup =
GetAttributeGroupResponse
request :: GetAttributeGroup -> Request GetAttributeGroup
request = Service -> GetAttributeGroup -> Request GetAttributeGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetAttributeGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetAttributeGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetAttributeGroup))
-> Logger
-> Service
-> Proxy GetAttributeGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetAttributeGroup)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse
GetAttributeGroupResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"creationTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
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
"arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
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
"name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
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
"attributes")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
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
"id")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetAttributeGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastUpdateTime")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetAttributeGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetAttributeGroupResponse)
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
"description")
Either
String
(Maybe (HashMap Text Text) -> Int -> GetAttributeGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetAttributeGroupResponse)
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
"tags" 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 (Int -> GetAttributeGroupResponse)
-> Either String Int -> Either String GetAttributeGroupResponse
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 GetAttributeGroup
instance Prelude.NFData GetAttributeGroup
instance Core.ToHeaders GetAttributeGroup where
toHeaders :: GetAttributeGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetAttributeGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetAttributeGroup where
toPath :: GetAttributeGroup -> ByteString
toPath GetAttributeGroup' {Text
attributeGroup :: Text
$sel:attributeGroup:GetAttributeGroup' :: GetAttributeGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/attribute-groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
attributeGroup]
instance Core.ToQuery GetAttributeGroup where
toQuery :: GetAttributeGroup -> QueryString
toQuery = QueryString -> GetAttributeGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetAttributeGroupResponse = GetAttributeGroupResponse'
{
GetAttributeGroupResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
GetAttributeGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetAttributeGroupResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetAttributeGroupResponse -> Maybe Text
attributes :: Prelude.Maybe Prelude.Text,
GetAttributeGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetAttributeGroupResponse -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
GetAttributeGroupResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetAttributeGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetAttributeGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool
(GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool)
-> (GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool)
-> Eq GetAttributeGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool
$c/= :: GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool
== :: GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool
$c== :: GetAttributeGroupResponse -> GetAttributeGroupResponse -> Bool
Prelude.Eq, ReadPrec [GetAttributeGroupResponse]
ReadPrec GetAttributeGroupResponse
Int -> ReadS GetAttributeGroupResponse
ReadS [GetAttributeGroupResponse]
(Int -> ReadS GetAttributeGroupResponse)
-> ReadS [GetAttributeGroupResponse]
-> ReadPrec GetAttributeGroupResponse
-> ReadPrec [GetAttributeGroupResponse]
-> Read GetAttributeGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAttributeGroupResponse]
$creadListPrec :: ReadPrec [GetAttributeGroupResponse]
readPrec :: ReadPrec GetAttributeGroupResponse
$creadPrec :: ReadPrec GetAttributeGroupResponse
readList :: ReadS [GetAttributeGroupResponse]
$creadList :: ReadS [GetAttributeGroupResponse]
readsPrec :: Int -> ReadS GetAttributeGroupResponse
$creadsPrec :: Int -> ReadS GetAttributeGroupResponse
Prelude.Read, Int -> GetAttributeGroupResponse -> ShowS
[GetAttributeGroupResponse] -> ShowS
GetAttributeGroupResponse -> String
(Int -> GetAttributeGroupResponse -> ShowS)
-> (GetAttributeGroupResponse -> String)
-> ([GetAttributeGroupResponse] -> ShowS)
-> Show GetAttributeGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAttributeGroupResponse] -> ShowS
$cshowList :: [GetAttributeGroupResponse] -> ShowS
show :: GetAttributeGroupResponse -> String
$cshow :: GetAttributeGroupResponse -> String
showsPrec :: Int -> GetAttributeGroupResponse -> ShowS
$cshowsPrec :: Int -> GetAttributeGroupResponse -> ShowS
Prelude.Show, (forall x.
GetAttributeGroupResponse -> Rep GetAttributeGroupResponse x)
-> (forall x.
Rep GetAttributeGroupResponse x -> GetAttributeGroupResponse)
-> Generic GetAttributeGroupResponse
forall x.
Rep GetAttributeGroupResponse x -> GetAttributeGroupResponse
forall x.
GetAttributeGroupResponse -> Rep GetAttributeGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetAttributeGroupResponse x -> GetAttributeGroupResponse
$cfrom :: forall x.
GetAttributeGroupResponse -> Rep GetAttributeGroupResponse x
Prelude.Generic)
newGetAttributeGroupResponse ::
Prelude.Int ->
GetAttributeGroupResponse
newGetAttributeGroupResponse :: Int -> GetAttributeGroupResponse
newGetAttributeGroupResponse Int
pHttpStatus_ =
GetAttributeGroupResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetAttributeGroupResponse
GetAttributeGroupResponse'
{ $sel:creationTime:GetAttributeGroupResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetAttributeGroupResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetAttributeGroupResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:GetAttributeGroupResponse' :: Maybe Text
attributes = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetAttributeGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:GetAttributeGroupResponse' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetAttributeGroupResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetAttributeGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetAttributeGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getAttributeGroupResponse_creationTime :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.UTCTime)
getAttributeGroupResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_creationTime = (GetAttributeGroupResponse -> Maybe POSIX)
-> (GetAttributeGroupResponse
-> Maybe POSIX -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe POSIX
a -> GetAttributeGroupResponse
s {$sel:creationTime:GetAttributeGroupResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: GetAttributeGroupResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetAttributeGroupResponse
-> f GetAttributeGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getAttributeGroupResponse_arn :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.Text)
getAttributeGroupResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_arn = (GetAttributeGroupResponse -> Maybe Text)
-> (GetAttributeGroupResponse
-> Maybe Text -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe Text
a -> GetAttributeGroupResponse
s {$sel:arn:GetAttributeGroupResponse' :: Maybe Text
arn = Maybe Text
a} :: GetAttributeGroupResponse)
getAttributeGroupResponse_name :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.Text)
getAttributeGroupResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_name = (GetAttributeGroupResponse -> Maybe Text)
-> (GetAttributeGroupResponse
-> Maybe Text -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe Text
a -> GetAttributeGroupResponse
s {$sel:name:GetAttributeGroupResponse' :: Maybe Text
name = Maybe Text
a} :: GetAttributeGroupResponse)
getAttributeGroupResponse_attributes :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.Text)
getAttributeGroupResponse_attributes :: (Maybe Text -> f (Maybe Text))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_attributes = (GetAttributeGroupResponse -> Maybe Text)
-> (GetAttributeGroupResponse
-> Maybe Text -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe Text
attributes :: Maybe Text
$sel:attributes:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe Text
attributes} -> Maybe Text
attributes) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe Text
a -> GetAttributeGroupResponse
s {$sel:attributes:GetAttributeGroupResponse' :: Maybe Text
attributes = Maybe Text
a} :: GetAttributeGroupResponse)
getAttributeGroupResponse_id :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.Text)
getAttributeGroupResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_id = (GetAttributeGroupResponse -> Maybe Text)
-> (GetAttributeGroupResponse
-> Maybe Text -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe Text
a -> GetAttributeGroupResponse
s {$sel:id:GetAttributeGroupResponse' :: Maybe Text
id = Maybe Text
a} :: GetAttributeGroupResponse)
getAttributeGroupResponse_lastUpdateTime :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.UTCTime)
getAttributeGroupResponse_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_lastUpdateTime = (GetAttributeGroupResponse -> Maybe POSIX)
-> (GetAttributeGroupResponse
-> Maybe POSIX -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe POSIX
a -> GetAttributeGroupResponse
s {$sel:lastUpdateTime:GetAttributeGroupResponse' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: GetAttributeGroupResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetAttributeGroupResponse
-> f GetAttributeGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getAttributeGroupResponse_description :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe Prelude.Text)
getAttributeGroupResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_description = (GetAttributeGroupResponse -> Maybe Text)
-> (GetAttributeGroupResponse
-> Maybe Text -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe Text
a -> GetAttributeGroupResponse
s {$sel:description:GetAttributeGroupResponse' :: Maybe Text
description = Maybe Text
a} :: GetAttributeGroupResponse)
getAttributeGroupResponse_tags :: Lens.Lens' GetAttributeGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getAttributeGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_tags = (GetAttributeGroupResponse -> Maybe (HashMap Text Text))
-> (GetAttributeGroupResponse
-> Maybe (HashMap Text Text) -> GetAttributeGroupResponse)
-> Lens
GetAttributeGroupResponse
GetAttributeGroupResponse
(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 (\GetAttributeGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Maybe (HashMap Text Text)
a -> GetAttributeGroupResponse
s {$sel:tags:GetAttributeGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetAttributeGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse)
-> ((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)))
-> GetAttributeGroupResponse
-> f GetAttributeGroupResponse
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
getAttributeGroupResponse_httpStatus :: Lens.Lens' GetAttributeGroupResponse Prelude.Int
getAttributeGroupResponse_httpStatus :: (Int -> f Int)
-> GetAttributeGroupResponse -> f GetAttributeGroupResponse
getAttributeGroupResponse_httpStatus = (GetAttributeGroupResponse -> Int)
-> (GetAttributeGroupResponse -> Int -> GetAttributeGroupResponse)
-> Lens GetAttributeGroupResponse GetAttributeGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAttributeGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetAttributeGroupResponse' :: GetAttributeGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetAttributeGroupResponse
s@GetAttributeGroupResponse' {} Int
a -> GetAttributeGroupResponse
s {$sel:httpStatus:GetAttributeGroupResponse' :: Int
httpStatus = Int
a} :: GetAttributeGroupResponse)
instance Prelude.NFData GetAttributeGroupResponse