{-# 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.OpsWorks.ListTags
-- 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)
--
-- Returns a list of tags that are applied to the specified stack or layer.
module Amazonka.OpsWorks.ListTags
  ( -- * Creating a Request
    ListTags (..),
    newListTags,

    -- * Request Lenses
    listTags_nextToken,
    listTags_maxResults,
    listTags_resourceArn,

    -- * Destructuring the Response
    ListTagsResponse (..),
    newListTagsResponse,

    -- * Response Lenses
    listTagsResponse_nextToken,
    listTagsResponse_tags,
    listTagsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpsWorks.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListTags' smart constructor.
data ListTags = ListTags'
  { -- | Do not use. A validation exception occurs if you add a @NextToken@
    -- parameter to a @ListTagsRequest@ call.
    ListTags -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Do not use. A validation exception occurs if you add a @MaxResults@
    -- parameter to a @ListTagsRequest@ call.
    ListTags -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The stack or layer\'s Amazon Resource Number (ARN).
    ListTags -> Text
resourceArn :: Prelude.Text
  }
  deriving (ListTags -> ListTags -> Bool
(ListTags -> ListTags -> Bool)
-> (ListTags -> ListTags -> Bool) -> Eq ListTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTags -> ListTags -> Bool
$c/= :: ListTags -> ListTags -> Bool
== :: ListTags -> ListTags -> Bool
$c== :: ListTags -> ListTags -> Bool
Prelude.Eq, ReadPrec [ListTags]
ReadPrec ListTags
Int -> ReadS ListTags
ReadS [ListTags]
(Int -> ReadS ListTags)
-> ReadS [ListTags]
-> ReadPrec ListTags
-> ReadPrec [ListTags]
-> Read ListTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTags]
$creadListPrec :: ReadPrec [ListTags]
readPrec :: ReadPrec ListTags
$creadPrec :: ReadPrec ListTags
readList :: ReadS [ListTags]
$creadList :: ReadS [ListTags]
readsPrec :: Int -> ReadS ListTags
$creadsPrec :: Int -> ReadS ListTags
Prelude.Read, Int -> ListTags -> ShowS
[ListTags] -> ShowS
ListTags -> String
(Int -> ListTags -> ShowS)
-> (ListTags -> String) -> ([ListTags] -> ShowS) -> Show ListTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTags] -> ShowS
$cshowList :: [ListTags] -> ShowS
show :: ListTags -> String
$cshow :: ListTags -> String
showsPrec :: Int -> ListTags -> ShowS
$cshowsPrec :: Int -> ListTags -> ShowS
Prelude.Show, (forall x. ListTags -> Rep ListTags x)
-> (forall x. Rep ListTags x -> ListTags) -> Generic ListTags
forall x. Rep ListTags x -> ListTags
forall x. ListTags -> Rep ListTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTags x -> ListTags
$cfrom :: forall x. ListTags -> Rep ListTags x
Prelude.Generic)

-- |
-- Create a value of 'ListTags' 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:
--
-- 'nextToken', 'listTags_nextToken' - Do not use. A validation exception occurs if you add a @NextToken@
-- parameter to a @ListTagsRequest@ call.
--
-- 'maxResults', 'listTags_maxResults' - Do not use. A validation exception occurs if you add a @MaxResults@
-- parameter to a @ListTagsRequest@ call.
--
-- 'resourceArn', 'listTags_resourceArn' - The stack or layer\'s Amazon Resource Number (ARN).
newListTags ::
  -- | 'resourceArn'
  Prelude.Text ->
  ListTags
newListTags :: Text -> ListTags
newListTags Text
pResourceArn_ =
  ListTags' :: Maybe Text -> Maybe Int -> Text -> ListTags
ListTags'
    { $sel:nextToken:ListTags' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListTags' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceArn:ListTags' :: Text
resourceArn = Text
pResourceArn_
    }

-- | Do not use. A validation exception occurs if you add a @NextToken@
-- parameter to a @ListTagsRequest@ call.
listTags_nextToken :: Lens.Lens' ListTags (Prelude.Maybe Prelude.Text)
listTags_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListTags -> f ListTags
listTags_nextToken = (ListTags -> Maybe Text)
-> (ListTags -> Maybe Text -> ListTags)
-> Lens ListTags ListTags (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTags' :: ListTags -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTags
s@ListTags' {} Maybe Text
a -> ListTags
s {$sel:nextToken:ListTags' :: Maybe Text
nextToken = Maybe Text
a} :: ListTags)

-- | Do not use. A validation exception occurs if you add a @MaxResults@
-- parameter to a @ListTagsRequest@ call.
listTags_maxResults :: Lens.Lens' ListTags (Prelude.Maybe Prelude.Int)
listTags_maxResults :: (Maybe Int -> f (Maybe Int)) -> ListTags -> f ListTags
listTags_maxResults = (ListTags -> Maybe Int)
-> (ListTags -> Maybe Int -> ListTags)
-> Lens ListTags ListTags (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListTags' :: ListTags -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListTags
s@ListTags' {} Maybe Int
a -> ListTags
s {$sel:maxResults:ListTags' :: Maybe Int
maxResults = Maybe Int
a} :: ListTags)

-- | The stack or layer\'s Amazon Resource Number (ARN).
listTags_resourceArn :: Lens.Lens' ListTags Prelude.Text
listTags_resourceArn :: (Text -> f Text) -> ListTags -> f ListTags
listTags_resourceArn = (ListTags -> Text)
-> (ListTags -> Text -> ListTags)
-> Lens ListTags ListTags Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTags' {Text
resourceArn :: Text
$sel:resourceArn:ListTags' :: ListTags -> Text
resourceArn} -> Text
resourceArn) (\s :: ListTags
s@ListTags' {} Text
a -> ListTags
s {$sel:resourceArn:ListTags' :: Text
resourceArn = Text
a} :: ListTags)

instance Core.AWSRequest ListTags where
  type AWSResponse ListTags = ListTagsResponse
  request :: ListTags -> Request ListTags
request = Service -> ListTags -> Request ListTags
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListTags
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTags)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListTags))
-> Logger
-> Service
-> Proxy ListTags
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListTags)))
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 (HashMap Text Text) -> Int -> ListTagsResponse
ListTagsResponse'
            (Maybe Text
 -> Maybe (HashMap Text Text) -> Int -> ListTagsResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> ListTagsResponse)
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
"NextToken")
            Either
  String (Maybe (HashMap Text Text) -> Int -> ListTagsResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> ListTagsResponse)
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 -> ListTagsResponse)
-> Either String Int -> Either String ListTagsResponse
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 ListTags

instance Prelude.NFData ListTags

instance Core.ToHeaders ListTags where
  toHeaders :: ListTags -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListTags -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"OpsWorks_20130218.ListTags" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListTags where
  toJSON :: ListTags -> Value
toJSON ListTags' {Maybe Int
Maybe Text
Text
resourceArn :: Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:resourceArn:ListTags' :: ListTags -> Text
$sel:maxResults:ListTags' :: ListTags -> Maybe Int
$sel:nextToken:ListTags' :: ListTags -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" 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
nextToken,
            (Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceArn)
          ]
      )

instance Core.ToPath ListTags where
  toPath :: ListTags -> ByteString
toPath = ByteString -> ListTags -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListTags where
  toQuery :: ListTags -> QueryString
toQuery = QueryString -> ListTags -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Contains the response to a @ListTags@ request.
--
-- /See:/ 'newListTagsResponse' smart constructor.
data ListTagsResponse = ListTagsResponse'
  { -- | If a paginated request does not return all of the remaining results,
    -- this parameter is set to a token that you can assign to the request
    -- object\'s @NextToken@ parameter to get the next set of results. If the
    -- previous paginated request returned all of the remaining results, this
    -- parameter is set to @null@.
    ListTagsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A set of key-value pairs that contain tag keys and tag values that are
    -- attached to a stack or layer.
    ListTagsResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    ListTagsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListTagsResponse -> ListTagsResponse -> Bool
(ListTagsResponse -> ListTagsResponse -> Bool)
-> (ListTagsResponse -> ListTagsResponse -> Bool)
-> Eq ListTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTagsResponse -> ListTagsResponse -> Bool
$c/= :: ListTagsResponse -> ListTagsResponse -> Bool
== :: ListTagsResponse -> ListTagsResponse -> Bool
$c== :: ListTagsResponse -> ListTagsResponse -> Bool
Prelude.Eq, ReadPrec [ListTagsResponse]
ReadPrec ListTagsResponse
Int -> ReadS ListTagsResponse
ReadS [ListTagsResponse]
(Int -> ReadS ListTagsResponse)
-> ReadS [ListTagsResponse]
-> ReadPrec ListTagsResponse
-> ReadPrec [ListTagsResponse]
-> Read ListTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTagsResponse]
$creadListPrec :: ReadPrec [ListTagsResponse]
readPrec :: ReadPrec ListTagsResponse
$creadPrec :: ReadPrec ListTagsResponse
readList :: ReadS [ListTagsResponse]
$creadList :: ReadS [ListTagsResponse]
readsPrec :: Int -> ReadS ListTagsResponse
$creadsPrec :: Int -> ReadS ListTagsResponse
Prelude.Read, Int -> ListTagsResponse -> ShowS
[ListTagsResponse] -> ShowS
ListTagsResponse -> String
(Int -> ListTagsResponse -> ShowS)
-> (ListTagsResponse -> String)
-> ([ListTagsResponse] -> ShowS)
-> Show ListTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTagsResponse] -> ShowS
$cshowList :: [ListTagsResponse] -> ShowS
show :: ListTagsResponse -> String
$cshow :: ListTagsResponse -> String
showsPrec :: Int -> ListTagsResponse -> ShowS
$cshowsPrec :: Int -> ListTagsResponse -> ShowS
Prelude.Show, (forall x. ListTagsResponse -> Rep ListTagsResponse x)
-> (forall x. Rep ListTagsResponse x -> ListTagsResponse)
-> Generic ListTagsResponse
forall x. Rep ListTagsResponse x -> ListTagsResponse
forall x. ListTagsResponse -> Rep ListTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTagsResponse x -> ListTagsResponse
$cfrom :: forall x. ListTagsResponse -> Rep ListTagsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListTagsResponse' 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:
--
-- 'nextToken', 'listTagsResponse_nextToken' - If a paginated request does not return all of the remaining results,
-- this parameter is set to a token that you can assign to the request
-- object\'s @NextToken@ parameter to get the next set of results. If the
-- previous paginated request returned all of the remaining results, this
-- parameter is set to @null@.
--
-- 'tags', 'listTagsResponse_tags' - A set of key-value pairs that contain tag keys and tag values that are
-- attached to a stack or layer.
--
-- 'httpStatus', 'listTagsResponse_httpStatus' - The response's http status code.
newListTagsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListTagsResponse
newListTagsResponse :: Int -> ListTagsResponse
newListTagsResponse Int
pHttpStatus_ =
  ListTagsResponse' :: Maybe Text -> Maybe (HashMap Text Text) -> Int -> ListTagsResponse
ListTagsResponse'
    { $sel:nextToken:ListTagsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ListTagsResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListTagsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | If a paginated request does not return all of the remaining results,
-- this parameter is set to a token that you can assign to the request
-- object\'s @NextToken@ parameter to get the next set of results. If the
-- previous paginated request returned all of the remaining results, this
-- parameter is set to @null@.
listTagsResponse_nextToken :: Lens.Lens' ListTagsResponse (Prelude.Maybe Prelude.Text)
listTagsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTagsResponse -> f ListTagsResponse
listTagsResponse_nextToken = (ListTagsResponse -> Maybe Text)
-> (ListTagsResponse -> Maybe Text -> ListTagsResponse)
-> Lens ListTagsResponse ListTagsResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTagsResponse' :: ListTagsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTagsResponse
s@ListTagsResponse' {} Maybe Text
a -> ListTagsResponse
s {$sel:nextToken:ListTagsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTagsResponse)

-- | A set of key-value pairs that contain tag keys and tag values that are
-- attached to a stack or layer.
listTagsResponse_tags :: Lens.Lens' ListTagsResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listTagsResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ListTagsResponse -> f ListTagsResponse
listTagsResponse_tags = (ListTagsResponse -> Maybe (HashMap Text Text))
-> (ListTagsResponse
    -> Maybe (HashMap Text Text) -> ListTagsResponse)
-> Lens
     ListTagsResponse
     ListTagsResponse
     (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 (\ListTagsResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListTagsResponse' :: ListTagsResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListTagsResponse
s@ListTagsResponse' {} Maybe (HashMap Text Text)
a -> ListTagsResponse
s {$sel:tags:ListTagsResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListTagsResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ListTagsResponse -> f ListTagsResponse)
-> ((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)))
-> ListTagsResponse
-> f ListTagsResponse
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.
listTagsResponse_httpStatus :: Lens.Lens' ListTagsResponse Prelude.Int
listTagsResponse_httpStatus :: (Int -> f Int) -> ListTagsResponse -> f ListTagsResponse
listTagsResponse_httpStatus = (ListTagsResponse -> Int)
-> (ListTagsResponse -> Int -> ListTagsResponse)
-> Lens ListTagsResponse ListTagsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTagsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTagsResponse' :: ListTagsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTagsResponse
s@ListTagsResponse' {} Int
a -> ListTagsResponse
s {$sel:httpStatus:ListTagsResponse' :: Int
httpStatus = Int
a} :: ListTagsResponse)

instance Prelude.NFData ListTagsResponse