{-# 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.ApplicationInsights.ListComponents
-- 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)
--
-- Lists the auto-grouped, standalone, and custom components of the
-- application.
module Amazonka.ApplicationInsights.ListComponents
  ( -- * Creating a Request
    ListComponents (..),
    newListComponents,

    -- * Request Lenses
    listComponents_nextToken,
    listComponents_maxResults,
    listComponents_resourceGroupName,

    -- * Destructuring the Response
    ListComponentsResponse (..),
    newListComponentsResponse,

    -- * Response Lenses
    listComponentsResponse_applicationComponentList,
    listComponentsResponse_nextToken,
    listComponentsResponse_httpStatus,
  )
where

import Amazonka.ApplicationInsights.Types
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

-- | /See:/ 'newListComponents' smart constructor.
data ListComponents = ListComponents'
  { -- | The token to request the next page of results.
    ListComponents -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in a single call. To retrieve
    -- the remaining results, make another call with the returned @NextToken@
    -- value.
    ListComponents -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The name of the resource group.
    ListComponents -> Text
resourceGroupName :: Prelude.Text
  }
  deriving (ListComponents -> ListComponents -> Bool
(ListComponents -> ListComponents -> Bool)
-> (ListComponents -> ListComponents -> Bool) -> Eq ListComponents
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComponents -> ListComponents -> Bool
$c/= :: ListComponents -> ListComponents -> Bool
== :: ListComponents -> ListComponents -> Bool
$c== :: ListComponents -> ListComponents -> Bool
Prelude.Eq, ReadPrec [ListComponents]
ReadPrec ListComponents
Int -> ReadS ListComponents
ReadS [ListComponents]
(Int -> ReadS ListComponents)
-> ReadS [ListComponents]
-> ReadPrec ListComponents
-> ReadPrec [ListComponents]
-> Read ListComponents
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComponents]
$creadListPrec :: ReadPrec [ListComponents]
readPrec :: ReadPrec ListComponents
$creadPrec :: ReadPrec ListComponents
readList :: ReadS [ListComponents]
$creadList :: ReadS [ListComponents]
readsPrec :: Int -> ReadS ListComponents
$creadsPrec :: Int -> ReadS ListComponents
Prelude.Read, Int -> ListComponents -> ShowS
[ListComponents] -> ShowS
ListComponents -> String
(Int -> ListComponents -> ShowS)
-> (ListComponents -> String)
-> ([ListComponents] -> ShowS)
-> Show ListComponents
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComponents] -> ShowS
$cshowList :: [ListComponents] -> ShowS
show :: ListComponents -> String
$cshow :: ListComponents -> String
showsPrec :: Int -> ListComponents -> ShowS
$cshowsPrec :: Int -> ListComponents -> ShowS
Prelude.Show, (forall x. ListComponents -> Rep ListComponents x)
-> (forall x. Rep ListComponents x -> ListComponents)
-> Generic ListComponents
forall x. Rep ListComponents x -> ListComponents
forall x. ListComponents -> Rep ListComponents x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComponents x -> ListComponents
$cfrom :: forall x. ListComponents -> Rep ListComponents x
Prelude.Generic)

-- |
-- Create a value of 'ListComponents' 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', 'listComponents_nextToken' - The token to request the next page of results.
--
-- 'maxResults', 'listComponents_maxResults' - The maximum number of results to return in a single call. To retrieve
-- the remaining results, make another call with the returned @NextToken@
-- value.
--
-- 'resourceGroupName', 'listComponents_resourceGroupName' - The name of the resource group.
newListComponents ::
  -- | 'resourceGroupName'
  Prelude.Text ->
  ListComponents
newListComponents :: Text -> ListComponents
newListComponents Text
pResourceGroupName_ =
  ListComponents' :: Maybe Text -> Maybe Natural -> Text -> ListComponents
ListComponents'
    { $sel:nextToken:ListComponents' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListComponents' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceGroupName:ListComponents' :: Text
resourceGroupName = Text
pResourceGroupName_
    }

-- | The token to request the next page of results.
listComponents_nextToken :: Lens.Lens' ListComponents (Prelude.Maybe Prelude.Text)
listComponents_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComponents -> f ListComponents
listComponents_nextToken = (ListComponents -> Maybe Text)
-> (ListComponents -> Maybe Text -> ListComponents)
-> Lens ListComponents ListComponents (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComponents' :: ListComponents -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComponents
s@ListComponents' {} Maybe Text
a -> ListComponents
s {$sel:nextToken:ListComponents' :: Maybe Text
nextToken = Maybe Text
a} :: ListComponents)

-- | The maximum number of results to return in a single call. To retrieve
-- the remaining results, make another call with the returned @NextToken@
-- value.
listComponents_maxResults :: Lens.Lens' ListComponents (Prelude.Maybe Prelude.Natural)
listComponents_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListComponents -> f ListComponents
listComponents_maxResults = (ListComponents -> Maybe Natural)
-> (ListComponents -> Maybe Natural -> ListComponents)
-> Lens
     ListComponents ListComponents (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListComponents' :: ListComponents -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListComponents
s@ListComponents' {} Maybe Natural
a -> ListComponents
s {$sel:maxResults:ListComponents' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListComponents)

-- | The name of the resource group.
listComponents_resourceGroupName :: Lens.Lens' ListComponents Prelude.Text
listComponents_resourceGroupName :: (Text -> f Text) -> ListComponents -> f ListComponents
listComponents_resourceGroupName = (ListComponents -> Text)
-> (ListComponents -> Text -> ListComponents)
-> Lens ListComponents ListComponents Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Text
resourceGroupName :: Text
$sel:resourceGroupName:ListComponents' :: ListComponents -> Text
resourceGroupName} -> Text
resourceGroupName) (\s :: ListComponents
s@ListComponents' {} Text
a -> ListComponents
s {$sel:resourceGroupName:ListComponents' :: Text
resourceGroupName = Text
a} :: ListComponents)

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

instance Prelude.NFData ListComponents

instance Core.ToHeaders ListComponents where
  toHeaders :: ListComponents -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListComponents -> 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
"EC2WindowsBarleyService.ListComponents" ::
                          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 ListComponents where
  toJSON :: ListComponents -> Value
toJSON ListComponents' {Maybe Natural
Maybe Text
Text
resourceGroupName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:resourceGroupName:ListComponents' :: ListComponents -> Text
$sel:maxResults:ListComponents' :: ListComponents -> Maybe Natural
$sel:nextToken:ListComponents' :: ListComponents -> 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 -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ResourceGroupName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceGroupName)
          ]
      )

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

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

-- | /See:/ 'newListComponentsResponse' smart constructor.
data ListComponentsResponse = ListComponentsResponse'
  { -- | The list of application components.
    ListComponentsResponse -> Maybe [ApplicationComponent]
applicationComponentList :: Prelude.Maybe [ApplicationComponent],
    -- | The token to request the next page of results.
    ListComponentsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListComponentsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListComponentsResponse -> ListComponentsResponse -> Bool
(ListComponentsResponse -> ListComponentsResponse -> Bool)
-> (ListComponentsResponse -> ListComponentsResponse -> Bool)
-> Eq ListComponentsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComponentsResponse -> ListComponentsResponse -> Bool
$c/= :: ListComponentsResponse -> ListComponentsResponse -> Bool
== :: ListComponentsResponse -> ListComponentsResponse -> Bool
$c== :: ListComponentsResponse -> ListComponentsResponse -> Bool
Prelude.Eq, ReadPrec [ListComponentsResponse]
ReadPrec ListComponentsResponse
Int -> ReadS ListComponentsResponse
ReadS [ListComponentsResponse]
(Int -> ReadS ListComponentsResponse)
-> ReadS [ListComponentsResponse]
-> ReadPrec ListComponentsResponse
-> ReadPrec [ListComponentsResponse]
-> Read ListComponentsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComponentsResponse]
$creadListPrec :: ReadPrec [ListComponentsResponse]
readPrec :: ReadPrec ListComponentsResponse
$creadPrec :: ReadPrec ListComponentsResponse
readList :: ReadS [ListComponentsResponse]
$creadList :: ReadS [ListComponentsResponse]
readsPrec :: Int -> ReadS ListComponentsResponse
$creadsPrec :: Int -> ReadS ListComponentsResponse
Prelude.Read, Int -> ListComponentsResponse -> ShowS
[ListComponentsResponse] -> ShowS
ListComponentsResponse -> String
(Int -> ListComponentsResponse -> ShowS)
-> (ListComponentsResponse -> String)
-> ([ListComponentsResponse] -> ShowS)
-> Show ListComponentsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComponentsResponse] -> ShowS
$cshowList :: [ListComponentsResponse] -> ShowS
show :: ListComponentsResponse -> String
$cshow :: ListComponentsResponse -> String
showsPrec :: Int -> ListComponentsResponse -> ShowS
$cshowsPrec :: Int -> ListComponentsResponse -> ShowS
Prelude.Show, (forall x. ListComponentsResponse -> Rep ListComponentsResponse x)
-> (forall x.
    Rep ListComponentsResponse x -> ListComponentsResponse)
-> Generic ListComponentsResponse
forall x. Rep ListComponentsResponse x -> ListComponentsResponse
forall x. ListComponentsResponse -> Rep ListComponentsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComponentsResponse x -> ListComponentsResponse
$cfrom :: forall x. ListComponentsResponse -> Rep ListComponentsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListComponentsResponse' 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:
--
-- 'applicationComponentList', 'listComponentsResponse_applicationComponentList' - The list of application components.
--
-- 'nextToken', 'listComponentsResponse_nextToken' - The token to request the next page of results.
--
-- 'httpStatus', 'listComponentsResponse_httpStatus' - The response's http status code.
newListComponentsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListComponentsResponse
newListComponentsResponse :: Int -> ListComponentsResponse
newListComponentsResponse Int
pHttpStatus_ =
  ListComponentsResponse' :: Maybe [ApplicationComponent]
-> Maybe Text -> Int -> ListComponentsResponse
ListComponentsResponse'
    { $sel:applicationComponentList:ListComponentsResponse' :: Maybe [ApplicationComponent]
applicationComponentList =
        Maybe [ApplicationComponent]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListComponentsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListComponentsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of application components.
listComponentsResponse_applicationComponentList :: Lens.Lens' ListComponentsResponse (Prelude.Maybe [ApplicationComponent])
listComponentsResponse_applicationComponentList :: (Maybe [ApplicationComponent] -> f (Maybe [ApplicationComponent]))
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_applicationComponentList = (ListComponentsResponse -> Maybe [ApplicationComponent])
-> (ListComponentsResponse
    -> Maybe [ApplicationComponent] -> ListComponentsResponse)
-> Lens
     ListComponentsResponse
     ListComponentsResponse
     (Maybe [ApplicationComponent])
     (Maybe [ApplicationComponent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Maybe [ApplicationComponent]
applicationComponentList :: Maybe [ApplicationComponent]
$sel:applicationComponentList:ListComponentsResponse' :: ListComponentsResponse -> Maybe [ApplicationComponent]
applicationComponentList} -> Maybe [ApplicationComponent]
applicationComponentList) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Maybe [ApplicationComponent]
a -> ListComponentsResponse
s {$sel:applicationComponentList:ListComponentsResponse' :: Maybe [ApplicationComponent]
applicationComponentList = Maybe [ApplicationComponent]
a} :: ListComponentsResponse) ((Maybe [ApplicationComponent] -> f (Maybe [ApplicationComponent]))
 -> ListComponentsResponse -> f ListComponentsResponse)
-> ((Maybe [ApplicationComponent]
     -> f (Maybe [ApplicationComponent]))
    -> Maybe [ApplicationComponent]
    -> f (Maybe [ApplicationComponent]))
-> (Maybe [ApplicationComponent]
    -> f (Maybe [ApplicationComponent]))
-> ListComponentsResponse
-> f ListComponentsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ApplicationComponent]
  [ApplicationComponent]
  [ApplicationComponent]
  [ApplicationComponent]
-> Iso
     (Maybe [ApplicationComponent])
     (Maybe [ApplicationComponent])
     (Maybe [ApplicationComponent])
     (Maybe [ApplicationComponent])
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
  [ApplicationComponent]
  [ApplicationComponent]
  [ApplicationComponent]
  [ApplicationComponent]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token to request the next page of results.
listComponentsResponse_nextToken :: Lens.Lens' ListComponentsResponse (Prelude.Maybe Prelude.Text)
listComponentsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_nextToken = (ListComponentsResponse -> Maybe Text)
-> (ListComponentsResponse -> Maybe Text -> ListComponentsResponse)
-> Lens
     ListComponentsResponse
     ListComponentsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComponentsResponse' :: ListComponentsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Maybe Text
a -> ListComponentsResponse
s {$sel:nextToken:ListComponentsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListComponentsResponse)

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

instance Prelude.NFData ListComponentsResponse