{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ServiceCatalogAppRegistry.GetAttributeGroup
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves an attribute group, either by its name or its ID. The
-- attribute group can be specified either by its unique ID or by its name.
module Amazonka.ServiceCatalogAppRegistry.GetAttributeGroup
  ( -- * Creating a Request
    GetAttributeGroup (..),
    newGetAttributeGroup,

    -- * Request Lenses
    getAttributeGroup_attributeGroup,

    -- * Destructuring the Response
    GetAttributeGroupResponse (..),
    newGetAttributeGroupResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newGetAttributeGroup' smart constructor.
data GetAttributeGroup = GetAttributeGroup'
  { -- | The name or ID of the attribute group that holds the attributes to
    -- describe the application.
    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)

-- |
-- Create a value of 'GetAttributeGroup' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'attributeGroup', 'getAttributeGroup_attributeGroup' - The name or ID of the attribute group that holds the attributes to
-- describe the application.
newGetAttributeGroup ::
  -- | 'attributeGroup'
  Prelude.Text ->
  GetAttributeGroup
newGetAttributeGroup :: Text -> GetAttributeGroup
newGetAttributeGroup Text
pAttributeGroup_ =
  GetAttributeGroup' :: Text -> GetAttributeGroup
GetAttributeGroup'
    { $sel:attributeGroup:GetAttributeGroup' :: Text
attributeGroup =
        Text
pAttributeGroup_
    }

-- | The name or ID of the attribute group that holds the attributes to
-- describe the application.
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

-- | /See:/ 'newGetAttributeGroupResponse' smart constructor.
data GetAttributeGroupResponse = GetAttributeGroupResponse'
  { -- | The ISO-8601 formatted timestamp of the moment the attribute group was
    -- created.
    GetAttributeGroupResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon resource name (ARN) that specifies the attribute group across
    -- services.
    GetAttributeGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The name of the attribute group.
    GetAttributeGroupResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | A JSON string in the form of nested key-value pairs that represent the
    -- attributes in the group and describes an application and its components.
    GetAttributeGroupResponse -> Maybe Text
attributes :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the attribute group.
    GetAttributeGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The ISO-8601 formatted timestamp of the moment the attribute group was
    -- last updated. This time is the same as the creationTime for a newly
    -- created attribute group.
    GetAttributeGroupResponse -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | The description of the attribute group that the user provides.
    GetAttributeGroupResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | Key-value pairs associated with the attribute group.
    GetAttributeGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'GetAttributeGroupResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'creationTime', 'getAttributeGroupResponse_creationTime' - The ISO-8601 formatted timestamp of the moment the attribute group was
-- created.
--
-- 'arn', 'getAttributeGroupResponse_arn' - The Amazon resource name (ARN) that specifies the attribute group across
-- services.
--
-- 'name', 'getAttributeGroupResponse_name' - The name of the attribute group.
--
-- 'attributes', 'getAttributeGroupResponse_attributes' - A JSON string in the form of nested key-value pairs that represent the
-- attributes in the group and describes an application and its components.
--
-- 'id', 'getAttributeGroupResponse_id' - The identifier of the attribute group.
--
-- 'lastUpdateTime', 'getAttributeGroupResponse_lastUpdateTime' - The ISO-8601 formatted timestamp of the moment the attribute group was
-- last updated. This time is the same as the creationTime for a newly
-- created attribute group.
--
-- 'description', 'getAttributeGroupResponse_description' - The description of the attribute group that the user provides.
--
-- 'tags', 'getAttributeGroupResponse_tags' - Key-value pairs associated with the attribute group.
--
-- 'httpStatus', 'getAttributeGroupResponse_httpStatus' - The response's http status code.
newGetAttributeGroupResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The ISO-8601 formatted timestamp of the moment the attribute group was
-- created.
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

-- | The Amazon resource name (ARN) that specifies the attribute group across
-- services.
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)

-- | The name of the attribute group.
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)

-- | A JSON string in the form of nested key-value pairs that represent the
-- attributes in the group and describes an application and its components.
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)

-- | The identifier of the attribute group.
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)

-- | The ISO-8601 formatted timestamp of the moment the attribute group was
-- last updated. This time is the same as the creationTime for a newly
-- created attribute group.
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

-- | The description of the attribute group that the user provides.
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)

-- | Key-value pairs associated with the attribute group.
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

-- | The response's http status code.
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