{-# 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.ImageBuilder.ListInfrastructureConfigurations
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of infrastructure configurations.
module Amazonka.ImageBuilder.ListInfrastructureConfigurations
  ( -- * Creating a Request
    ListInfrastructureConfigurations (..),
    newListInfrastructureConfigurations,

    -- * Request Lenses
    listInfrastructureConfigurations_filters,
    listInfrastructureConfigurations_maxResults,
    listInfrastructureConfigurations_nextToken,

    -- * Destructuring the Response
    ListInfrastructureConfigurationsResponse (..),
    newListInfrastructureConfigurationsResponse,

    -- * Response Lenses
    listInfrastructureConfigurationsResponse_infrastructureConfigurationSummaryList,
    listInfrastructureConfigurationsResponse_nextToken,
    listInfrastructureConfigurationsResponse_requestId,
    listInfrastructureConfigurationsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ImageBuilder.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListInfrastructureConfigurations' smart constructor.
data ListInfrastructureConfigurations = ListInfrastructureConfigurations'
  { -- | You can filter on @name@ to streamline results.
    ListInfrastructureConfigurations -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
    -- | The maximum items to return in a request.
    ListInfrastructureConfigurations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token to specify where to start paginating. This is the NextToken from
    -- a previously truncated response.
    ListInfrastructureConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListInfrastructureConfigurations
-> ListInfrastructureConfigurations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInfrastructureConfigurations
-> ListInfrastructureConfigurations -> Bool
$c/= :: ListInfrastructureConfigurations
-> ListInfrastructureConfigurations -> Bool
== :: ListInfrastructureConfigurations
-> ListInfrastructureConfigurations -> Bool
$c== :: ListInfrastructureConfigurations
-> ListInfrastructureConfigurations -> Bool
Prelude.Eq, ReadPrec [ListInfrastructureConfigurations]
ReadPrec ListInfrastructureConfigurations
Int -> ReadS ListInfrastructureConfigurations
ReadS [ListInfrastructureConfigurations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInfrastructureConfigurations]
$creadListPrec :: ReadPrec [ListInfrastructureConfigurations]
readPrec :: ReadPrec ListInfrastructureConfigurations
$creadPrec :: ReadPrec ListInfrastructureConfigurations
readList :: ReadS [ListInfrastructureConfigurations]
$creadList :: ReadS [ListInfrastructureConfigurations]
readsPrec :: Int -> ReadS ListInfrastructureConfigurations
$creadsPrec :: Int -> ReadS ListInfrastructureConfigurations
Prelude.Read, Int -> ListInfrastructureConfigurations -> ShowS
[ListInfrastructureConfigurations] -> ShowS
ListInfrastructureConfigurations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInfrastructureConfigurations] -> ShowS
$cshowList :: [ListInfrastructureConfigurations] -> ShowS
show :: ListInfrastructureConfigurations -> String
$cshow :: ListInfrastructureConfigurations -> String
showsPrec :: Int -> ListInfrastructureConfigurations -> ShowS
$cshowsPrec :: Int -> ListInfrastructureConfigurations -> ShowS
Prelude.Show, forall x.
Rep ListInfrastructureConfigurations x
-> ListInfrastructureConfigurations
forall x.
ListInfrastructureConfigurations
-> Rep ListInfrastructureConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInfrastructureConfigurations x
-> ListInfrastructureConfigurations
$cfrom :: forall x.
ListInfrastructureConfigurations
-> Rep ListInfrastructureConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'ListInfrastructureConfigurations' 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:
--
-- 'filters', 'listInfrastructureConfigurations_filters' - You can filter on @name@ to streamline results.
--
-- 'maxResults', 'listInfrastructureConfigurations_maxResults' - The maximum items to return in a request.
--
-- 'nextToken', 'listInfrastructureConfigurations_nextToken' - A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
newListInfrastructureConfigurations ::
  ListInfrastructureConfigurations
newListInfrastructureConfigurations :: ListInfrastructureConfigurations
newListInfrastructureConfigurations =
  ListInfrastructureConfigurations'
    { $sel:filters:ListInfrastructureConfigurations' :: Maybe (NonEmpty Filter)
filters =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInfrastructureConfigurations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInfrastructureConfigurations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | You can filter on @name@ to streamline results.
listInfrastructureConfigurations_filters :: Lens.Lens' ListInfrastructureConfigurations (Prelude.Maybe (Prelude.NonEmpty Filter))
listInfrastructureConfigurations_filters :: Lens' ListInfrastructureConfigurations (Maybe (NonEmpty Filter))
listInfrastructureConfigurations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurations' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListInfrastructureConfigurations
s@ListInfrastructureConfigurations' {} Maybe (NonEmpty Filter)
a -> ListInfrastructureConfigurations
s {$sel:filters:ListInfrastructureConfigurations' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListInfrastructureConfigurations) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The maximum items to return in a request.
listInfrastructureConfigurations_maxResults :: Lens.Lens' ListInfrastructureConfigurations (Prelude.Maybe Prelude.Natural)
listInfrastructureConfigurations_maxResults :: Lens' ListInfrastructureConfigurations (Maybe Natural)
listInfrastructureConfigurations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInfrastructureConfigurations
s@ListInfrastructureConfigurations' {} Maybe Natural
a -> ListInfrastructureConfigurations
s {$sel:maxResults:ListInfrastructureConfigurations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInfrastructureConfigurations)

-- | A token to specify where to start paginating. This is the NextToken from
-- a previously truncated response.
listInfrastructureConfigurations_nextToken :: Lens.Lens' ListInfrastructureConfigurations (Prelude.Maybe Prelude.Text)
listInfrastructureConfigurations_nextToken :: Lens' ListInfrastructureConfigurations (Maybe Text)
listInfrastructureConfigurations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInfrastructureConfigurations
s@ListInfrastructureConfigurations' {} Maybe Text
a -> ListInfrastructureConfigurations
s {$sel:nextToken:ListInfrastructureConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: ListInfrastructureConfigurations)

instance
  Core.AWSRequest
    ListInfrastructureConfigurations
  where
  type
    AWSResponse ListInfrastructureConfigurations =
      ListInfrastructureConfigurationsResponse
  request :: (Service -> Service)
-> ListInfrastructureConfigurations
-> Request ListInfrastructureConfigurations
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListInfrastructureConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListInfrastructureConfigurations)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [InfrastructureConfigurationSummary]
-> Maybe Text
-> Maybe Text
-> Int
-> ListInfrastructureConfigurationsResponse
ListInfrastructureConfigurationsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"infrastructureConfigurationSummaryList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"requestId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListInfrastructureConfigurations
  where
  hashWithSalt :: Int -> ListInfrastructureConfigurations -> Int
hashWithSalt
    Int
_salt
    ListInfrastructureConfigurations' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Text
$sel:maxResults:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Natural
$sel:filters:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe (NonEmpty Filter)
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Filter)
filters
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance
  Prelude.NFData
    ListInfrastructureConfigurations
  where
  rnf :: ListInfrastructureConfigurations -> ()
rnf ListInfrastructureConfigurations' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Text
$sel:maxResults:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Natural
$sel:filters:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe (NonEmpty Filter)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Filter)
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance
  Data.ToHeaders
    ListInfrastructureConfigurations
  where
  toHeaders :: ListInfrastructureConfigurations -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListInfrastructureConfigurations where
  toJSON :: ListInfrastructureConfigurations -> Value
toJSON ListInfrastructureConfigurations' {Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty Filter)
$sel:nextToken:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Text
$sel:maxResults:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe Natural
$sel:filters:ListInfrastructureConfigurations' :: ListInfrastructureConfigurations -> Maybe (NonEmpty Filter)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"filters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Filter)
filters,
            (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

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

-- | /See:/ 'newListInfrastructureConfigurationsResponse' smart constructor.
data ListInfrastructureConfigurationsResponse = ListInfrastructureConfigurationsResponse'
  { -- | The list of infrastructure configurations.
    ListInfrastructureConfigurationsResponse
-> Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList :: Prelude.Maybe [InfrastructureConfigurationSummary],
    -- | The next token used for paginated responses. When this is not empty,
    -- there are additional elements that the service has not included in this
    -- request. Use this token with the next request to retrieve additional
    -- objects.
    ListInfrastructureConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The request ID that uniquely identifies this request.
    ListInfrastructureConfigurationsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInfrastructureConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInfrastructureConfigurationsResponse
-> ListInfrastructureConfigurationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInfrastructureConfigurationsResponse
-> ListInfrastructureConfigurationsResponse -> Bool
$c/= :: ListInfrastructureConfigurationsResponse
-> ListInfrastructureConfigurationsResponse -> Bool
== :: ListInfrastructureConfigurationsResponse
-> ListInfrastructureConfigurationsResponse -> Bool
$c== :: ListInfrastructureConfigurationsResponse
-> ListInfrastructureConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListInfrastructureConfigurationsResponse]
ReadPrec ListInfrastructureConfigurationsResponse
Int -> ReadS ListInfrastructureConfigurationsResponse
ReadS [ListInfrastructureConfigurationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInfrastructureConfigurationsResponse]
$creadListPrec :: ReadPrec [ListInfrastructureConfigurationsResponse]
readPrec :: ReadPrec ListInfrastructureConfigurationsResponse
$creadPrec :: ReadPrec ListInfrastructureConfigurationsResponse
readList :: ReadS [ListInfrastructureConfigurationsResponse]
$creadList :: ReadS [ListInfrastructureConfigurationsResponse]
readsPrec :: Int -> ReadS ListInfrastructureConfigurationsResponse
$creadsPrec :: Int -> ReadS ListInfrastructureConfigurationsResponse
Prelude.Read, Int -> ListInfrastructureConfigurationsResponse -> ShowS
[ListInfrastructureConfigurationsResponse] -> ShowS
ListInfrastructureConfigurationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInfrastructureConfigurationsResponse] -> ShowS
$cshowList :: [ListInfrastructureConfigurationsResponse] -> ShowS
show :: ListInfrastructureConfigurationsResponse -> String
$cshow :: ListInfrastructureConfigurationsResponse -> String
showsPrec :: Int -> ListInfrastructureConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListInfrastructureConfigurationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListInfrastructureConfigurationsResponse x
-> ListInfrastructureConfigurationsResponse
forall x.
ListInfrastructureConfigurationsResponse
-> Rep ListInfrastructureConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInfrastructureConfigurationsResponse x
-> ListInfrastructureConfigurationsResponse
$cfrom :: forall x.
ListInfrastructureConfigurationsResponse
-> Rep ListInfrastructureConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInfrastructureConfigurationsResponse' 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:
--
-- 'infrastructureConfigurationSummaryList', 'listInfrastructureConfigurationsResponse_infrastructureConfigurationSummaryList' - The list of infrastructure configurations.
--
-- 'nextToken', 'listInfrastructureConfigurationsResponse_nextToken' - The next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
--
-- 'requestId', 'listInfrastructureConfigurationsResponse_requestId' - The request ID that uniquely identifies this request.
--
-- 'httpStatus', 'listInfrastructureConfigurationsResponse_httpStatus' - The response's http status code.
newListInfrastructureConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInfrastructureConfigurationsResponse
newListInfrastructureConfigurationsResponse :: Int -> ListInfrastructureConfigurationsResponse
newListInfrastructureConfigurationsResponse
  Int
pHttpStatus_ =
    ListInfrastructureConfigurationsResponse'
      { $sel:infrastructureConfigurationSummaryList:ListInfrastructureConfigurationsResponse' :: Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListInfrastructureConfigurationsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:requestId:ListInfrastructureConfigurationsResponse' :: Maybe Text
requestId = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListInfrastructureConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The list of infrastructure configurations.
listInfrastructureConfigurationsResponse_infrastructureConfigurationSummaryList :: Lens.Lens' ListInfrastructureConfigurationsResponse (Prelude.Maybe [InfrastructureConfigurationSummary])
listInfrastructureConfigurationsResponse_infrastructureConfigurationSummaryList :: Lens'
  ListInfrastructureConfigurationsResponse
  (Maybe [InfrastructureConfigurationSummary])
listInfrastructureConfigurationsResponse_infrastructureConfigurationSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurationsResponse' {Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList :: Maybe [InfrastructureConfigurationSummary]
$sel:infrastructureConfigurationSummaryList:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse
-> Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList} -> Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList) (\s :: ListInfrastructureConfigurationsResponse
s@ListInfrastructureConfigurationsResponse' {} Maybe [InfrastructureConfigurationSummary]
a -> ListInfrastructureConfigurationsResponse
s {$sel:infrastructureConfigurationSummaryList:ListInfrastructureConfigurationsResponse' :: Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList = Maybe [InfrastructureConfigurationSummary]
a} :: ListInfrastructureConfigurationsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The next token used for paginated responses. When this is not empty,
-- there are additional elements that the service has not included in this
-- request. Use this token with the next request to retrieve additional
-- objects.
listInfrastructureConfigurationsResponse_nextToken :: Lens.Lens' ListInfrastructureConfigurationsResponse (Prelude.Maybe Prelude.Text)
listInfrastructureConfigurationsResponse_nextToken :: Lens' ListInfrastructureConfigurationsResponse (Maybe Text)
listInfrastructureConfigurationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInfrastructureConfigurationsResponse
s@ListInfrastructureConfigurationsResponse' {} Maybe Text
a -> ListInfrastructureConfigurationsResponse
s {$sel:nextToken:ListInfrastructureConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInfrastructureConfigurationsResponse)

-- | The request ID that uniquely identifies this request.
listInfrastructureConfigurationsResponse_requestId :: Lens.Lens' ListInfrastructureConfigurationsResponse (Prelude.Maybe Prelude.Text)
listInfrastructureConfigurationsResponse_requestId :: Lens' ListInfrastructureConfigurationsResponse (Maybe Text)
listInfrastructureConfigurationsResponse_requestId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInfrastructureConfigurationsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListInfrastructureConfigurationsResponse
s@ListInfrastructureConfigurationsResponse' {} Maybe Text
a -> ListInfrastructureConfigurationsResponse
s {$sel:requestId:ListInfrastructureConfigurationsResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListInfrastructureConfigurationsResponse)

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

instance
  Prelude.NFData
    ListInfrastructureConfigurationsResponse
  where
  rnf :: ListInfrastructureConfigurationsResponse -> ()
rnf ListInfrastructureConfigurationsResponse' {Int
Maybe [InfrastructureConfigurationSummary]
Maybe Text
httpStatus :: Int
requestId :: Maybe Text
nextToken :: Maybe Text
infrastructureConfigurationSummaryList :: Maybe [InfrastructureConfigurationSummary]
$sel:httpStatus:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse -> Int
$sel:requestId:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse -> Maybe Text
$sel:nextToken:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse -> Maybe Text
$sel:infrastructureConfigurationSummaryList:ListInfrastructureConfigurationsResponse' :: ListInfrastructureConfigurationsResponse
-> Maybe [InfrastructureConfigurationSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [InfrastructureConfigurationSummary]
infrastructureConfigurationSummaryList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
requestId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus