{-# 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.Greengrass.GetGroup
(
GetGroup (..),
newGetGroup,
getGroup_groupId,
GetGroupResponse (..),
newGetGroupResponse,
getGroupResponse_latestVersionArn,
getGroupResponse_arn,
getGroupResponse_name,
getGroupResponse_creationTimestamp,
getGroupResponse_id,
getGroupResponse_latestVersion,
getGroupResponse_lastUpdatedTimestamp,
getGroupResponse_tags,
getGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.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 GetGroup = GetGroup'
{
GetGroup -> Text
groupId :: Prelude.Text
}
deriving (GetGroup -> GetGroup -> Bool
(GetGroup -> GetGroup -> Bool)
-> (GetGroup -> GetGroup -> Bool) -> Eq GetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroup -> GetGroup -> Bool
$c/= :: GetGroup -> GetGroup -> Bool
== :: GetGroup -> GetGroup -> Bool
$c== :: GetGroup -> GetGroup -> Bool
Prelude.Eq, ReadPrec [GetGroup]
ReadPrec GetGroup
Int -> ReadS GetGroup
ReadS [GetGroup]
(Int -> ReadS GetGroup)
-> ReadS [GetGroup]
-> ReadPrec GetGroup
-> ReadPrec [GetGroup]
-> Read GetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroup]
$creadListPrec :: ReadPrec [GetGroup]
readPrec :: ReadPrec GetGroup
$creadPrec :: ReadPrec GetGroup
readList :: ReadS [GetGroup]
$creadList :: ReadS [GetGroup]
readsPrec :: Int -> ReadS GetGroup
$creadsPrec :: Int -> ReadS GetGroup
Prelude.Read, Int -> GetGroup -> ShowS
[GetGroup] -> ShowS
GetGroup -> String
(Int -> GetGroup -> ShowS)
-> (GetGroup -> String) -> ([GetGroup] -> ShowS) -> Show GetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroup] -> ShowS
$cshowList :: [GetGroup] -> ShowS
show :: GetGroup -> String
$cshow :: GetGroup -> String
showsPrec :: Int -> GetGroup -> ShowS
$cshowsPrec :: Int -> GetGroup -> ShowS
Prelude.Show, (forall x. GetGroup -> Rep GetGroup x)
-> (forall x. Rep GetGroup x -> GetGroup) -> Generic GetGroup
forall x. Rep GetGroup x -> GetGroup
forall x. GetGroup -> Rep GetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGroup x -> GetGroup
$cfrom :: forall x. GetGroup -> Rep GetGroup x
Prelude.Generic)
newGetGroup ::
Prelude.Text ->
GetGroup
newGetGroup :: Text -> GetGroup
newGetGroup Text
pGroupId_ =
GetGroup' :: Text -> GetGroup
GetGroup' {$sel:groupId:GetGroup' :: Text
groupId = Text
pGroupId_}
getGroup_groupId :: Lens.Lens' GetGroup Prelude.Text
getGroup_groupId :: (Text -> f Text) -> GetGroup -> f GetGroup
getGroup_groupId = (GetGroup -> Text)
-> (GetGroup -> Text -> GetGroup)
-> Lens GetGroup GetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroup' {Text
groupId :: Text
$sel:groupId:GetGroup' :: GetGroup -> Text
groupId} -> Text
groupId) (\s :: GetGroup
s@GetGroup' {} Text
a -> GetGroup
s {$sel:groupId:GetGroup' :: Text
groupId = Text
a} :: GetGroup)
instance Core.AWSRequest GetGroup where
type AWSResponse GetGroup = GetGroupResponse
request :: GetGroup -> Request GetGroup
request = Service -> GetGroup -> Request GetGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetGroup))
-> Logger
-> Service
-> Proxy GetGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGroup)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse
GetGroupResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
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
"LatestVersionArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
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 Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
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 Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
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
"CreationTimestamp")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
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 Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetGroupResponse)
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
"LatestVersion")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe (HashMap Text Text) -> Int -> GetGroupResponse)
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
"LastUpdatedTimestamp")
Either
String (Maybe (HashMap Text Text) -> Int -> GetGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetGroupResponse)
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 -> GetGroupResponse)
-> Either String Int -> Either String GetGroupResponse
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 GetGroup
instance Prelude.NFData GetGroup
instance Core.ToHeaders GetGroup where
toHeaders :: GetGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetGroup -> 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 GetGroup where
toPath :: GetGroup -> ByteString
toPath GetGroup' {Text
groupId :: Text
$sel:groupId:GetGroup' :: GetGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/greengrass/groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
groupId]
instance Core.ToQuery GetGroup where
toQuery :: GetGroup -> QueryString
toQuery = QueryString -> GetGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetGroupResponse = GetGroupResponse'
{
GetGroupResponse -> Maybe Text
latestVersionArn :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Text
lastUpdatedTimestamp :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetGroupResponse -> GetGroupResponse -> Bool
(GetGroupResponse -> GetGroupResponse -> Bool)
-> (GetGroupResponse -> GetGroupResponse -> Bool)
-> Eq GetGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroupResponse -> GetGroupResponse -> Bool
$c/= :: GetGroupResponse -> GetGroupResponse -> Bool
== :: GetGroupResponse -> GetGroupResponse -> Bool
$c== :: GetGroupResponse -> GetGroupResponse -> Bool
Prelude.Eq, ReadPrec [GetGroupResponse]
ReadPrec GetGroupResponse
Int -> ReadS GetGroupResponse
ReadS [GetGroupResponse]
(Int -> ReadS GetGroupResponse)
-> ReadS [GetGroupResponse]
-> ReadPrec GetGroupResponse
-> ReadPrec [GetGroupResponse]
-> Read GetGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroupResponse]
$creadListPrec :: ReadPrec [GetGroupResponse]
readPrec :: ReadPrec GetGroupResponse
$creadPrec :: ReadPrec GetGroupResponse
readList :: ReadS [GetGroupResponse]
$creadList :: ReadS [GetGroupResponse]
readsPrec :: Int -> ReadS GetGroupResponse
$creadsPrec :: Int -> ReadS GetGroupResponse
Prelude.Read, Int -> GetGroupResponse -> ShowS
[GetGroupResponse] -> ShowS
GetGroupResponse -> String
(Int -> GetGroupResponse -> ShowS)
-> (GetGroupResponse -> String)
-> ([GetGroupResponse] -> ShowS)
-> Show GetGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroupResponse] -> ShowS
$cshowList :: [GetGroupResponse] -> ShowS
show :: GetGroupResponse -> String
$cshow :: GetGroupResponse -> String
showsPrec :: Int -> GetGroupResponse -> ShowS
$cshowsPrec :: Int -> GetGroupResponse -> ShowS
Prelude.Show, (forall x. GetGroupResponse -> Rep GetGroupResponse x)
-> (forall x. Rep GetGroupResponse x -> GetGroupResponse)
-> Generic GetGroupResponse
forall x. Rep GetGroupResponse x -> GetGroupResponse
forall x. GetGroupResponse -> Rep GetGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGroupResponse x -> GetGroupResponse
$cfrom :: forall x. GetGroupResponse -> Rep GetGroupResponse x
Prelude.Generic)
newGetGroupResponse ::
Prelude.Int ->
GetGroupResponse
newGetGroupResponse :: Int -> GetGroupResponse
newGetGroupResponse Int
pHttpStatus_ =
GetGroupResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetGroupResponse
GetGroupResponse'
{ $sel:latestVersionArn:GetGroupResponse' :: Maybe Text
latestVersionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetGroupResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetGroupResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:GetGroupResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:GetGroupResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:GetGroupResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getGroupResponse_latestVersionArn :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_latestVersionArn :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_latestVersionArn = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
latestVersionArn :: Maybe Text
$sel:latestVersionArn:GetGroupResponse' :: GetGroupResponse -> Maybe Text
latestVersionArn} -> Maybe Text
latestVersionArn) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:latestVersionArn:GetGroupResponse' :: Maybe Text
latestVersionArn = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_arn :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_arn = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetGroupResponse' :: GetGroupResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:arn:GetGroupResponse' :: Maybe Text
arn = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_name :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_name = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetGroupResponse' :: GetGroupResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:name:GetGroupResponse' :: Maybe Text
name = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_creationTimestamp :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_creationTimestamp = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:GetGroupResponse' :: GetGroupResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:creationTimestamp:GetGroupResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_id :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_id = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetGroupResponse' :: GetGroupResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:id:GetGroupResponse' :: Maybe Text
id = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_latestVersion :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_latestVersion = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetGroupResponse' :: GetGroupResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:latestVersion:GetGroupResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_lastUpdatedTimestamp :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_lastUpdatedTimestamp :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_lastUpdatedTimestamp = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
lastUpdatedTimestamp :: Maybe Text
$sel:lastUpdatedTimestamp:GetGroupResponse' :: GetGroupResponse -> Maybe Text
lastUpdatedTimestamp} -> Maybe Text
lastUpdatedTimestamp) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:lastUpdatedTimestamp:GetGroupResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_tags :: Lens.Lens' GetGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_tags = (GetGroupResponse -> Maybe (HashMap Text Text))
-> (GetGroupResponse
-> Maybe (HashMap Text Text) -> GetGroupResponse)
-> Lens
GetGroupResponse
GetGroupResponse
(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 (\GetGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetGroupResponse' :: GetGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe (HashMap Text Text)
a -> GetGroupResponse
s {$sel:tags:GetGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetGroupResponse -> f GetGroupResponse)
-> ((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)))
-> GetGroupResponse
-> f GetGroupResponse
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
getGroupResponse_httpStatus :: Lens.Lens' GetGroupResponse Prelude.Int
getGroupResponse_httpStatus :: (Int -> f Int) -> GetGroupResponse -> f GetGroupResponse
getGroupResponse_httpStatus = (GetGroupResponse -> Int)
-> (GetGroupResponse -> Int -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetGroupResponse' :: GetGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetGroupResponse
s@GetGroupResponse' {} Int
a -> GetGroupResponse
s {$sel:httpStatus:GetGroupResponse' :: Int
httpStatus = Int
a} :: GetGroupResponse)
instance Prelude.NFData GetGroupResponse