{-# 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.UpdateAttributeGroup
-- 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)
--
-- Updates an existing attribute group with new details.
module Amazonka.ServiceCatalogAppRegistry.UpdateAttributeGroup
  ( -- * Creating a Request
    UpdateAttributeGroup (..),
    newUpdateAttributeGroup,

    -- * Request Lenses
    updateAttributeGroup_name,
    updateAttributeGroup_attributes,
    updateAttributeGroup_description,
    updateAttributeGroup_attributeGroup,

    -- * Destructuring the Response
    UpdateAttributeGroupResponse (..),
    newUpdateAttributeGroupResponse,

    -- * Response Lenses
    updateAttributeGroupResponse_attributeGroup,
    updateAttributeGroupResponse_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:/ 'newUpdateAttributeGroup' smart constructor.
data UpdateAttributeGroup = UpdateAttributeGroup'
  { -- | The new name of the attribute group. The name must be unique in the
    -- region in which you are updating the attribute group.
    UpdateAttributeGroup -> 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.
    UpdateAttributeGroup -> Maybe Text
attributes :: Prelude.Maybe Prelude.Text,
    -- | The description of the attribute group that the user provides.
    UpdateAttributeGroup -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The name or ID of the attribute group that holds the attributes to
    -- describe the application.
    UpdateAttributeGroup -> Text
attributeGroup :: Prelude.Text
  }
  deriving (UpdateAttributeGroup -> UpdateAttributeGroup -> Bool
(UpdateAttributeGroup -> UpdateAttributeGroup -> Bool)
-> (UpdateAttributeGroup -> UpdateAttributeGroup -> Bool)
-> Eq UpdateAttributeGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAttributeGroup -> UpdateAttributeGroup -> Bool
$c/= :: UpdateAttributeGroup -> UpdateAttributeGroup -> Bool
== :: UpdateAttributeGroup -> UpdateAttributeGroup -> Bool
$c== :: UpdateAttributeGroup -> UpdateAttributeGroup -> Bool
Prelude.Eq, ReadPrec [UpdateAttributeGroup]
ReadPrec UpdateAttributeGroup
Int -> ReadS UpdateAttributeGroup
ReadS [UpdateAttributeGroup]
(Int -> ReadS UpdateAttributeGroup)
-> ReadS [UpdateAttributeGroup]
-> ReadPrec UpdateAttributeGroup
-> ReadPrec [UpdateAttributeGroup]
-> Read UpdateAttributeGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAttributeGroup]
$creadListPrec :: ReadPrec [UpdateAttributeGroup]
readPrec :: ReadPrec UpdateAttributeGroup
$creadPrec :: ReadPrec UpdateAttributeGroup
readList :: ReadS [UpdateAttributeGroup]
$creadList :: ReadS [UpdateAttributeGroup]
readsPrec :: Int -> ReadS UpdateAttributeGroup
$creadsPrec :: Int -> ReadS UpdateAttributeGroup
Prelude.Read, Int -> UpdateAttributeGroup -> ShowS
[UpdateAttributeGroup] -> ShowS
UpdateAttributeGroup -> String
(Int -> UpdateAttributeGroup -> ShowS)
-> (UpdateAttributeGroup -> String)
-> ([UpdateAttributeGroup] -> ShowS)
-> Show UpdateAttributeGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAttributeGroup] -> ShowS
$cshowList :: [UpdateAttributeGroup] -> ShowS
show :: UpdateAttributeGroup -> String
$cshow :: UpdateAttributeGroup -> String
showsPrec :: Int -> UpdateAttributeGroup -> ShowS
$cshowsPrec :: Int -> UpdateAttributeGroup -> ShowS
Prelude.Show, (forall x. UpdateAttributeGroup -> Rep UpdateAttributeGroup x)
-> (forall x. Rep UpdateAttributeGroup x -> UpdateAttributeGroup)
-> Generic UpdateAttributeGroup
forall x. Rep UpdateAttributeGroup x -> UpdateAttributeGroup
forall x. UpdateAttributeGroup -> Rep UpdateAttributeGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAttributeGroup x -> UpdateAttributeGroup
$cfrom :: forall x. UpdateAttributeGroup -> Rep UpdateAttributeGroup x
Prelude.Generic)

-- |
-- Create a value of 'UpdateAttributeGroup' 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:
--
-- 'name', 'updateAttributeGroup_name' - The new name of the attribute group. The name must be unique in the
-- region in which you are updating the attribute group.
--
-- 'attributes', 'updateAttributeGroup_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.
--
-- 'description', 'updateAttributeGroup_description' - The description of the attribute group that the user provides.
--
-- 'attributeGroup', 'updateAttributeGroup_attributeGroup' - The name or ID of the attribute group that holds the attributes to
-- describe the application.
newUpdateAttributeGroup ::
  -- | 'attributeGroup'
  Prelude.Text ->
  UpdateAttributeGroup
newUpdateAttributeGroup :: Text -> UpdateAttributeGroup
newUpdateAttributeGroup Text
pAttributeGroup_ =
  UpdateAttributeGroup' :: Maybe Text
-> Maybe Text -> Maybe Text -> Text -> UpdateAttributeGroup
UpdateAttributeGroup'
    { $sel:name:UpdateAttributeGroup' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:attributes:UpdateAttributeGroup' :: Maybe Text
attributes = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateAttributeGroup' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:attributeGroup:UpdateAttributeGroup' :: Text
attributeGroup = Text
pAttributeGroup_
    }

-- | The new name of the attribute group. The name must be unique in the
-- region in which you are updating the attribute group.
updateAttributeGroup_name :: Lens.Lens' UpdateAttributeGroup (Prelude.Maybe Prelude.Text)
updateAttributeGroup_name :: (Maybe Text -> f (Maybe Text))
-> UpdateAttributeGroup -> f UpdateAttributeGroup
updateAttributeGroup_name = (UpdateAttributeGroup -> Maybe Text)
-> (UpdateAttributeGroup -> Maybe Text -> UpdateAttributeGroup)
-> Lens
     UpdateAttributeGroup UpdateAttributeGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroup' {Maybe Text
name :: Maybe Text
$sel:name:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateAttributeGroup
s@UpdateAttributeGroup' {} Maybe Text
a -> UpdateAttributeGroup
s {$sel:name:UpdateAttributeGroup' :: Maybe Text
name = Maybe Text
a} :: UpdateAttributeGroup)

-- | 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.
updateAttributeGroup_attributes :: Lens.Lens' UpdateAttributeGroup (Prelude.Maybe Prelude.Text)
updateAttributeGroup_attributes :: (Maybe Text -> f (Maybe Text))
-> UpdateAttributeGroup -> f UpdateAttributeGroup
updateAttributeGroup_attributes = (UpdateAttributeGroup -> Maybe Text)
-> (UpdateAttributeGroup -> Maybe Text -> UpdateAttributeGroup)
-> Lens
     UpdateAttributeGroup UpdateAttributeGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroup' {Maybe Text
attributes :: Maybe Text
$sel:attributes:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
attributes} -> Maybe Text
attributes) (\s :: UpdateAttributeGroup
s@UpdateAttributeGroup' {} Maybe Text
a -> UpdateAttributeGroup
s {$sel:attributes:UpdateAttributeGroup' :: Maybe Text
attributes = Maybe Text
a} :: UpdateAttributeGroup)

-- | The description of the attribute group that the user provides.
updateAttributeGroup_description :: Lens.Lens' UpdateAttributeGroup (Prelude.Maybe Prelude.Text)
updateAttributeGroup_description :: (Maybe Text -> f (Maybe Text))
-> UpdateAttributeGroup -> f UpdateAttributeGroup
updateAttributeGroup_description = (UpdateAttributeGroup -> Maybe Text)
-> (UpdateAttributeGroup -> Maybe Text -> UpdateAttributeGroup)
-> Lens
     UpdateAttributeGroup UpdateAttributeGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroup' {Maybe Text
description :: Maybe Text
$sel:description:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateAttributeGroup
s@UpdateAttributeGroup' {} Maybe Text
a -> UpdateAttributeGroup
s {$sel:description:UpdateAttributeGroup' :: Maybe Text
description = Maybe Text
a} :: UpdateAttributeGroup)

-- | The name or ID of the attribute group that holds the attributes to
-- describe the application.
updateAttributeGroup_attributeGroup :: Lens.Lens' UpdateAttributeGroup Prelude.Text
updateAttributeGroup_attributeGroup :: (Text -> f Text) -> UpdateAttributeGroup -> f UpdateAttributeGroup
updateAttributeGroup_attributeGroup = (UpdateAttributeGroup -> Text)
-> (UpdateAttributeGroup -> Text -> UpdateAttributeGroup)
-> Lens UpdateAttributeGroup UpdateAttributeGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroup' {Text
attributeGroup :: Text
$sel:attributeGroup:UpdateAttributeGroup' :: UpdateAttributeGroup -> Text
attributeGroup} -> Text
attributeGroup) (\s :: UpdateAttributeGroup
s@UpdateAttributeGroup' {} Text
a -> UpdateAttributeGroup
s {$sel:attributeGroup:UpdateAttributeGroup' :: Text
attributeGroup = Text
a} :: UpdateAttributeGroup)

instance Core.AWSRequest UpdateAttributeGroup where
  type
    AWSResponse UpdateAttributeGroup =
      UpdateAttributeGroupResponse
  request :: UpdateAttributeGroup -> Request UpdateAttributeGroup
request = Service -> UpdateAttributeGroup -> Request UpdateAttributeGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateAttributeGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAttributeGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateAttributeGroup))
-> Logger
-> Service
-> Proxy UpdateAttributeGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAttributeGroup)))
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 AttributeGroup -> Int -> UpdateAttributeGroupResponse
UpdateAttributeGroupResponse'
            (Maybe AttributeGroup -> Int -> UpdateAttributeGroupResponse)
-> Either String (Maybe AttributeGroup)
-> Either String (Int -> UpdateAttributeGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe AttributeGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"attributeGroup")
            Either String (Int -> UpdateAttributeGroupResponse)
-> Either String Int -> Either String UpdateAttributeGroupResponse
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 UpdateAttributeGroup

instance Prelude.NFData UpdateAttributeGroup

instance Core.ToHeaders UpdateAttributeGroup where
  toHeaders :: UpdateAttributeGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateAttributeGroup -> 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.ToJSON UpdateAttributeGroup where
  toJSON :: UpdateAttributeGroup -> Value
toJSON UpdateAttributeGroup' {Maybe Text
Text
attributeGroup :: Text
description :: Maybe Text
attributes :: Maybe Text
name :: Maybe Text
$sel:attributeGroup:UpdateAttributeGroup' :: UpdateAttributeGroup -> Text
$sel:description:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
$sel:attributes:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
$sel:name:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
            (Text
"attributes" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
attributes,
            (Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description
          ]
      )

instance Core.ToPath UpdateAttributeGroup where
  toPath :: UpdateAttributeGroup -> ByteString
toPath UpdateAttributeGroup' {Maybe Text
Text
attributeGroup :: Text
description :: Maybe Text
attributes :: Maybe Text
name :: Maybe Text
$sel:attributeGroup:UpdateAttributeGroup' :: UpdateAttributeGroup -> Text
$sel:description:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
$sel:attributes:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe Text
$sel:name:UpdateAttributeGroup' :: UpdateAttributeGroup -> Maybe 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 UpdateAttributeGroup where
  toQuery :: UpdateAttributeGroup -> QueryString
toQuery = QueryString -> UpdateAttributeGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateAttributeGroupResponse' smart constructor.
data UpdateAttributeGroupResponse = UpdateAttributeGroupResponse'
  { -- | The updated information of the attribute group.
    UpdateAttributeGroupResponse -> Maybe AttributeGroup
attributeGroup :: Prelude.Maybe AttributeGroup,
    -- | The response's http status code.
    UpdateAttributeGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateAttributeGroupResponse
-> UpdateAttributeGroupResponse -> Bool
(UpdateAttributeGroupResponse
 -> UpdateAttributeGroupResponse -> Bool)
-> (UpdateAttributeGroupResponse
    -> UpdateAttributeGroupResponse -> Bool)
-> Eq UpdateAttributeGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAttributeGroupResponse
-> UpdateAttributeGroupResponse -> Bool
$c/= :: UpdateAttributeGroupResponse
-> UpdateAttributeGroupResponse -> Bool
== :: UpdateAttributeGroupResponse
-> UpdateAttributeGroupResponse -> Bool
$c== :: UpdateAttributeGroupResponse
-> UpdateAttributeGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAttributeGroupResponse]
ReadPrec UpdateAttributeGroupResponse
Int -> ReadS UpdateAttributeGroupResponse
ReadS [UpdateAttributeGroupResponse]
(Int -> ReadS UpdateAttributeGroupResponse)
-> ReadS [UpdateAttributeGroupResponse]
-> ReadPrec UpdateAttributeGroupResponse
-> ReadPrec [UpdateAttributeGroupResponse]
-> Read UpdateAttributeGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAttributeGroupResponse]
$creadListPrec :: ReadPrec [UpdateAttributeGroupResponse]
readPrec :: ReadPrec UpdateAttributeGroupResponse
$creadPrec :: ReadPrec UpdateAttributeGroupResponse
readList :: ReadS [UpdateAttributeGroupResponse]
$creadList :: ReadS [UpdateAttributeGroupResponse]
readsPrec :: Int -> ReadS UpdateAttributeGroupResponse
$creadsPrec :: Int -> ReadS UpdateAttributeGroupResponse
Prelude.Read, Int -> UpdateAttributeGroupResponse -> ShowS
[UpdateAttributeGroupResponse] -> ShowS
UpdateAttributeGroupResponse -> String
(Int -> UpdateAttributeGroupResponse -> ShowS)
-> (UpdateAttributeGroupResponse -> String)
-> ([UpdateAttributeGroupResponse] -> ShowS)
-> Show UpdateAttributeGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAttributeGroupResponse] -> ShowS
$cshowList :: [UpdateAttributeGroupResponse] -> ShowS
show :: UpdateAttributeGroupResponse -> String
$cshow :: UpdateAttributeGroupResponse -> String
showsPrec :: Int -> UpdateAttributeGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateAttributeGroupResponse -> ShowS
Prelude.Show, (forall x.
 UpdateAttributeGroupResponse -> Rep UpdateAttributeGroupResponse x)
-> (forall x.
    Rep UpdateAttributeGroupResponse x -> UpdateAttributeGroupResponse)
-> Generic UpdateAttributeGroupResponse
forall x.
Rep UpdateAttributeGroupResponse x -> UpdateAttributeGroupResponse
forall x.
UpdateAttributeGroupResponse -> Rep UpdateAttributeGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAttributeGroupResponse x -> UpdateAttributeGroupResponse
$cfrom :: forall x.
UpdateAttributeGroupResponse -> Rep UpdateAttributeGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateAttributeGroupResponse' 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', 'updateAttributeGroupResponse_attributeGroup' - The updated information of the attribute group.
--
-- 'httpStatus', 'updateAttributeGroupResponse_httpStatus' - The response's http status code.
newUpdateAttributeGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateAttributeGroupResponse
newUpdateAttributeGroupResponse :: Int -> UpdateAttributeGroupResponse
newUpdateAttributeGroupResponse Int
pHttpStatus_ =
  UpdateAttributeGroupResponse' :: Maybe AttributeGroup -> Int -> UpdateAttributeGroupResponse
UpdateAttributeGroupResponse'
    { $sel:attributeGroup:UpdateAttributeGroupResponse' :: Maybe AttributeGroup
attributeGroup =
        Maybe AttributeGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateAttributeGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The updated information of the attribute group.
updateAttributeGroupResponse_attributeGroup :: Lens.Lens' UpdateAttributeGroupResponse (Prelude.Maybe AttributeGroup)
updateAttributeGroupResponse_attributeGroup :: (Maybe AttributeGroup -> f (Maybe AttributeGroup))
-> UpdateAttributeGroupResponse -> f UpdateAttributeGroupResponse
updateAttributeGroupResponse_attributeGroup = (UpdateAttributeGroupResponse -> Maybe AttributeGroup)
-> (UpdateAttributeGroupResponse
    -> Maybe AttributeGroup -> UpdateAttributeGroupResponse)
-> Lens
     UpdateAttributeGroupResponse
     UpdateAttributeGroupResponse
     (Maybe AttributeGroup)
     (Maybe AttributeGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroupResponse' {Maybe AttributeGroup
attributeGroup :: Maybe AttributeGroup
$sel:attributeGroup:UpdateAttributeGroupResponse' :: UpdateAttributeGroupResponse -> Maybe AttributeGroup
attributeGroup} -> Maybe AttributeGroup
attributeGroup) (\s :: UpdateAttributeGroupResponse
s@UpdateAttributeGroupResponse' {} Maybe AttributeGroup
a -> UpdateAttributeGroupResponse
s {$sel:attributeGroup:UpdateAttributeGroupResponse' :: Maybe AttributeGroup
attributeGroup = Maybe AttributeGroup
a} :: UpdateAttributeGroupResponse)

-- | The response's http status code.
updateAttributeGroupResponse_httpStatus :: Lens.Lens' UpdateAttributeGroupResponse Prelude.Int
updateAttributeGroupResponse_httpStatus :: (Int -> f Int)
-> UpdateAttributeGroupResponse -> f UpdateAttributeGroupResponse
updateAttributeGroupResponse_httpStatus = (UpdateAttributeGroupResponse -> Int)
-> (UpdateAttributeGroupResponse
    -> Int -> UpdateAttributeGroupResponse)
-> Lens
     UpdateAttributeGroupResponse UpdateAttributeGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAttributeGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAttributeGroupResponse' :: UpdateAttributeGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAttributeGroupResponse
s@UpdateAttributeGroupResponse' {} Int
a -> UpdateAttributeGroupResponse
s {$sel:httpStatus:UpdateAttributeGroupResponse' :: Int
httpStatus = Int
a} :: UpdateAttributeGroupResponse)

instance Prelude.NFData UpdateAttributeGroupResponse