{-# 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.IoT.ListDimensions
-- 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)
--
-- List the set of dimensions that are defined for your Amazon Web Services
-- accounts.
--
-- Requires permission to access the
-- <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions ListDimensions>
-- action.
--
-- This operation returns paginated results.
module Amazonka.IoT.ListDimensions
  ( -- * Creating a Request
    ListDimensions (..),
    newListDimensions,

    -- * Request Lenses
    listDimensions_nextToken,
    listDimensions_maxResults,

    -- * Destructuring the Response
    ListDimensionsResponse (..),
    newListDimensionsResponse,

    -- * Response Lenses
    listDimensionsResponse_nextToken,
    listDimensionsResponse_dimensionNames,
    listDimensionsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT.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

-- | /See:/ 'newListDimensions' smart constructor.
data ListDimensions = ListDimensions'
  { -- | The token for the next set of results.
    ListDimensions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to retrieve at one time.
    ListDimensions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListDimensions -> ListDimensions -> Bool
(ListDimensions -> ListDimensions -> Bool)
-> (ListDimensions -> ListDimensions -> Bool) -> Eq ListDimensions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDimensions -> ListDimensions -> Bool
$c/= :: ListDimensions -> ListDimensions -> Bool
== :: ListDimensions -> ListDimensions -> Bool
$c== :: ListDimensions -> ListDimensions -> Bool
Prelude.Eq, ReadPrec [ListDimensions]
ReadPrec ListDimensions
Int -> ReadS ListDimensions
ReadS [ListDimensions]
(Int -> ReadS ListDimensions)
-> ReadS [ListDimensions]
-> ReadPrec ListDimensions
-> ReadPrec [ListDimensions]
-> Read ListDimensions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDimensions]
$creadListPrec :: ReadPrec [ListDimensions]
readPrec :: ReadPrec ListDimensions
$creadPrec :: ReadPrec ListDimensions
readList :: ReadS [ListDimensions]
$creadList :: ReadS [ListDimensions]
readsPrec :: Int -> ReadS ListDimensions
$creadsPrec :: Int -> ReadS ListDimensions
Prelude.Read, Int -> ListDimensions -> ShowS
[ListDimensions] -> ShowS
ListDimensions -> String
(Int -> ListDimensions -> ShowS)
-> (ListDimensions -> String)
-> ([ListDimensions] -> ShowS)
-> Show ListDimensions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDimensions] -> ShowS
$cshowList :: [ListDimensions] -> ShowS
show :: ListDimensions -> String
$cshow :: ListDimensions -> String
showsPrec :: Int -> ListDimensions -> ShowS
$cshowsPrec :: Int -> ListDimensions -> ShowS
Prelude.Show, (forall x. ListDimensions -> Rep ListDimensions x)
-> (forall x. Rep ListDimensions x -> ListDimensions)
-> Generic ListDimensions
forall x. Rep ListDimensions x -> ListDimensions
forall x. ListDimensions -> Rep ListDimensions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDimensions x -> ListDimensions
$cfrom :: forall x. ListDimensions -> Rep ListDimensions x
Prelude.Generic)

-- |
-- Create a value of 'ListDimensions' 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', 'listDimensions_nextToken' - The token for the next set of results.
--
-- 'maxResults', 'listDimensions_maxResults' - The maximum number of results to retrieve at one time.
newListDimensions ::
  ListDimensions
newListDimensions :: ListDimensions
newListDimensions =
  ListDimensions' :: Maybe Text -> Maybe Natural -> ListDimensions
ListDimensions'
    { $sel:nextToken:ListDimensions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDimensions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token for the next set of results.
listDimensions_nextToken :: Lens.Lens' ListDimensions (Prelude.Maybe Prelude.Text)
listDimensions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDimensions -> f ListDimensions
listDimensions_nextToken = (ListDimensions -> Maybe Text)
-> (ListDimensions -> Maybe Text -> ListDimensions)
-> Lens ListDimensions ListDimensions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDimensions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDimensions' :: ListDimensions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDimensions
s@ListDimensions' {} Maybe Text
a -> ListDimensions
s {$sel:nextToken:ListDimensions' :: Maybe Text
nextToken = Maybe Text
a} :: ListDimensions)

-- | The maximum number of results to retrieve at one time.
listDimensions_maxResults :: Lens.Lens' ListDimensions (Prelude.Maybe Prelude.Natural)
listDimensions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDimensions -> f ListDimensions
listDimensions_maxResults = (ListDimensions -> Maybe Natural)
-> (ListDimensions -> Maybe Natural -> ListDimensions)
-> Lens
     ListDimensions ListDimensions (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDimensions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDimensions' :: ListDimensions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDimensions
s@ListDimensions' {} Maybe Natural
a -> ListDimensions
s {$sel:maxResults:ListDimensions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDimensions)

instance Core.AWSPager ListDimensions where
  page :: ListDimensions
-> AWSResponse ListDimensions -> Maybe ListDimensions
page ListDimensions
rq AWSResponse ListDimensions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDimensions
ListDimensionsResponse
rs
            ListDimensionsResponse
-> Getting (First Text) ListDimensionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDimensionsResponse
-> Const (First Text) ListDimensionsResponse
Lens' ListDimensionsResponse (Maybe Text)
listDimensionsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDimensionsResponse
 -> Const (First Text) ListDimensionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDimensionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListDimensions
forall a. Maybe a
Prelude.Nothing
    | Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDimensions
ListDimensionsResponse
rs
            ListDimensionsResponse
-> Getting (First [Text]) ListDimensionsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListDimensionsResponse
-> Const (First [Text]) ListDimensionsResponse
Lens' ListDimensionsResponse (Maybe [Text])
listDimensionsResponse_dimensionNames
              ((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
 -> ListDimensionsResponse
 -> Const (First [Text]) ListDimensionsResponse)
-> (([Text] -> Const (First [Text]) [Text])
    -> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListDimensionsResponse [Text]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListDimensions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListDimensions -> Maybe ListDimensions
forall a. a -> Maybe a
Prelude.Just (ListDimensions -> Maybe ListDimensions)
-> ListDimensions -> Maybe ListDimensions
forall a b. (a -> b) -> a -> b
Prelude.$
        ListDimensions
rq
          ListDimensions
-> (ListDimensions -> ListDimensions) -> ListDimensions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDimensions -> Identity ListDimensions
Lens ListDimensions ListDimensions (Maybe Text) (Maybe Text)
listDimensions_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListDimensions -> Identity ListDimensions)
-> Maybe Text -> ListDimensions -> ListDimensions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDimensions
ListDimensionsResponse
rs
          ListDimensionsResponse
-> Getting (First Text) ListDimensionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDimensionsResponse
-> Const (First Text) ListDimensionsResponse
Lens' ListDimensionsResponse (Maybe Text)
listDimensionsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDimensionsResponse
 -> Const (First Text) ListDimensionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDimensionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListDimensions where
  type
    AWSResponse ListDimensions =
      ListDimensionsResponse
  request :: ListDimensions -> Request ListDimensions
request = Service -> ListDimensions -> Request ListDimensions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListDimensions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDimensions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListDimensions))
-> Logger
-> Service
-> Proxy ListDimensions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDimensions)))
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] -> Int -> ListDimensionsResponse
ListDimensionsResponse'
            (Maybe Text -> Maybe [Text] -> Int -> ListDimensionsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Text] -> Int -> ListDimensionsResponse)
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 [Text] -> Int -> ListDimensionsResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListDimensionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"dimensionNames" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> ListDimensionsResponse)
-> Either String Int -> Either String ListDimensionsResponse
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 ListDimensions

instance Prelude.NFData ListDimensions

instance Core.ToHeaders ListDimensions where
  toHeaders :: ListDimensions -> ResponseHeaders
toHeaders = ResponseHeaders -> ListDimensions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery ListDimensions where
  toQuery :: ListDimensions -> QueryString
toQuery ListDimensions' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListDimensions' :: ListDimensions -> Maybe Natural
$sel:nextToken:ListDimensions' :: ListDimensions -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListDimensionsResponse' smart constructor.
data ListDimensionsResponse = ListDimensionsResponse'
  { -- | A token that can be used to retrieve the next set of results, or @null@
    -- if there are no additional results.
    ListDimensionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of the names of the defined dimensions. Use @DescribeDimension@
    -- to get details for a dimension.
    ListDimensionsResponse -> Maybe [Text]
dimensionNames :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    ListDimensionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDimensionsResponse -> ListDimensionsResponse -> Bool
(ListDimensionsResponse -> ListDimensionsResponse -> Bool)
-> (ListDimensionsResponse -> ListDimensionsResponse -> Bool)
-> Eq ListDimensionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDimensionsResponse -> ListDimensionsResponse -> Bool
$c/= :: ListDimensionsResponse -> ListDimensionsResponse -> Bool
== :: ListDimensionsResponse -> ListDimensionsResponse -> Bool
$c== :: ListDimensionsResponse -> ListDimensionsResponse -> Bool
Prelude.Eq, ReadPrec [ListDimensionsResponse]
ReadPrec ListDimensionsResponse
Int -> ReadS ListDimensionsResponse
ReadS [ListDimensionsResponse]
(Int -> ReadS ListDimensionsResponse)
-> ReadS [ListDimensionsResponse]
-> ReadPrec ListDimensionsResponse
-> ReadPrec [ListDimensionsResponse]
-> Read ListDimensionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDimensionsResponse]
$creadListPrec :: ReadPrec [ListDimensionsResponse]
readPrec :: ReadPrec ListDimensionsResponse
$creadPrec :: ReadPrec ListDimensionsResponse
readList :: ReadS [ListDimensionsResponse]
$creadList :: ReadS [ListDimensionsResponse]
readsPrec :: Int -> ReadS ListDimensionsResponse
$creadsPrec :: Int -> ReadS ListDimensionsResponse
Prelude.Read, Int -> ListDimensionsResponse -> ShowS
[ListDimensionsResponse] -> ShowS
ListDimensionsResponse -> String
(Int -> ListDimensionsResponse -> ShowS)
-> (ListDimensionsResponse -> String)
-> ([ListDimensionsResponse] -> ShowS)
-> Show ListDimensionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDimensionsResponse] -> ShowS
$cshowList :: [ListDimensionsResponse] -> ShowS
show :: ListDimensionsResponse -> String
$cshow :: ListDimensionsResponse -> String
showsPrec :: Int -> ListDimensionsResponse -> ShowS
$cshowsPrec :: Int -> ListDimensionsResponse -> ShowS
Prelude.Show, (forall x. ListDimensionsResponse -> Rep ListDimensionsResponse x)
-> (forall x.
    Rep ListDimensionsResponse x -> ListDimensionsResponse)
-> Generic ListDimensionsResponse
forall x. Rep ListDimensionsResponse x -> ListDimensionsResponse
forall x. ListDimensionsResponse -> Rep ListDimensionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDimensionsResponse x -> ListDimensionsResponse
$cfrom :: forall x. ListDimensionsResponse -> Rep ListDimensionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDimensionsResponse' 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', 'listDimensionsResponse_nextToken' - A token that can be used to retrieve the next set of results, or @null@
-- if there are no additional results.
--
-- 'dimensionNames', 'listDimensionsResponse_dimensionNames' - A list of the names of the defined dimensions. Use @DescribeDimension@
-- to get details for a dimension.
--
-- 'httpStatus', 'listDimensionsResponse_httpStatus' - The response's http status code.
newListDimensionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDimensionsResponse
newListDimensionsResponse :: Int -> ListDimensionsResponse
newListDimensionsResponse Int
pHttpStatus_ =
  ListDimensionsResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListDimensionsResponse
ListDimensionsResponse'
    { $sel:nextToken:ListDimensionsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dimensionNames:ListDimensionsResponse' :: Maybe [Text]
dimensionNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDimensionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A token that can be used to retrieve the next set of results, or @null@
-- if there are no additional results.
listDimensionsResponse_nextToken :: Lens.Lens' ListDimensionsResponse (Prelude.Maybe Prelude.Text)
listDimensionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDimensionsResponse -> f ListDimensionsResponse
listDimensionsResponse_nextToken = (ListDimensionsResponse -> Maybe Text)
-> (ListDimensionsResponse -> Maybe Text -> ListDimensionsResponse)
-> Lens' ListDimensionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDimensionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDimensionsResponse' :: ListDimensionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDimensionsResponse
s@ListDimensionsResponse' {} Maybe Text
a -> ListDimensionsResponse
s {$sel:nextToken:ListDimensionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDimensionsResponse)

-- | A list of the names of the defined dimensions. Use @DescribeDimension@
-- to get details for a dimension.
listDimensionsResponse_dimensionNames :: Lens.Lens' ListDimensionsResponse (Prelude.Maybe [Prelude.Text])
listDimensionsResponse_dimensionNames :: (Maybe [Text] -> f (Maybe [Text]))
-> ListDimensionsResponse -> f ListDimensionsResponse
listDimensionsResponse_dimensionNames = (ListDimensionsResponse -> Maybe [Text])
-> (ListDimensionsResponse
    -> Maybe [Text] -> ListDimensionsResponse)
-> Lens' ListDimensionsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDimensionsResponse' {Maybe [Text]
dimensionNames :: Maybe [Text]
$sel:dimensionNames:ListDimensionsResponse' :: ListDimensionsResponse -> Maybe [Text]
dimensionNames} -> Maybe [Text]
dimensionNames) (\s :: ListDimensionsResponse
s@ListDimensionsResponse' {} Maybe [Text]
a -> ListDimensionsResponse
s {$sel:dimensionNames:ListDimensionsResponse' :: Maybe [Text]
dimensionNames = Maybe [Text]
a} :: ListDimensionsResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListDimensionsResponse -> f ListDimensionsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListDimensionsResponse
-> f ListDimensionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [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.
listDimensionsResponse_httpStatus :: Lens.Lens' ListDimensionsResponse Prelude.Int
listDimensionsResponse_httpStatus :: (Int -> f Int)
-> ListDimensionsResponse -> f ListDimensionsResponse
listDimensionsResponse_httpStatus = (ListDimensionsResponse -> Int)
-> (ListDimensionsResponse -> Int -> ListDimensionsResponse)
-> Lens ListDimensionsResponse ListDimensionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDimensionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDimensionsResponse' :: ListDimensionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDimensionsResponse
s@ListDimensionsResponse' {} Int
a -> ListDimensionsResponse
s {$sel:httpStatus:ListDimensionsResponse' :: Int
httpStatus = Int
a} :: ListDimensionsResponse)

instance Prelude.NFData ListDimensionsResponse