{-# 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.FMS.ListResourceSetResources
-- 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 an array of resources that are currently associated to a
-- resource set.
module Amazonka.FMS.ListResourceSetResources
  ( -- * Creating a Request
    ListResourceSetResources (..),
    newListResourceSetResources,

    -- * Request Lenses
    listResourceSetResources_maxResults,
    listResourceSetResources_nextToken,
    listResourceSetResources_identifier,

    -- * Destructuring the Response
    ListResourceSetResourcesResponse (..),
    newListResourceSetResourcesResponse,

    -- * Response Lenses
    listResourceSetResourcesResponse_nextToken,
    listResourceSetResourcesResponse_httpStatus,
    listResourceSetResourcesResponse_items,
  )
where

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

-- | /See:/ 'newListResourceSetResources' smart constructor.
data ListResourceSetResources = ListResourceSetResources'
  { -- | The maximum number of objects that you want Firewall Manager to return
    -- for this request. If more objects are available, in the response,
    -- Firewall Manager provides a @NextToken@ value that you can use in a
    -- subsequent call to get the next batch of objects.
    ListResourceSetResources -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | When you request a list of objects with a @MaxResults@ setting, if the
    -- number of objects that are still available for retrieval exceeds the
    -- maximum you requested, Firewall Manager returns a @NextToken@ value in
    -- the response. To retrieve the next batch of objects, use the token
    -- returned from the prior request in your next request.
    ListResourceSetResources -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A unique identifier for the resource set, used in a TODO to refer to the
    -- resource set.
    ListResourceSetResources -> Text
identifier :: Prelude.Text
  }
  deriving (ListResourceSetResources -> ListResourceSetResources -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceSetResources -> ListResourceSetResources -> Bool
$c/= :: ListResourceSetResources -> ListResourceSetResources -> Bool
== :: ListResourceSetResources -> ListResourceSetResources -> Bool
$c== :: ListResourceSetResources -> ListResourceSetResources -> Bool
Prelude.Eq, ReadPrec [ListResourceSetResources]
ReadPrec ListResourceSetResources
Int -> ReadS ListResourceSetResources
ReadS [ListResourceSetResources]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceSetResources]
$creadListPrec :: ReadPrec [ListResourceSetResources]
readPrec :: ReadPrec ListResourceSetResources
$creadPrec :: ReadPrec ListResourceSetResources
readList :: ReadS [ListResourceSetResources]
$creadList :: ReadS [ListResourceSetResources]
readsPrec :: Int -> ReadS ListResourceSetResources
$creadsPrec :: Int -> ReadS ListResourceSetResources
Prelude.Read, Int -> ListResourceSetResources -> ShowS
[ListResourceSetResources] -> ShowS
ListResourceSetResources -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceSetResources] -> ShowS
$cshowList :: [ListResourceSetResources] -> ShowS
show :: ListResourceSetResources -> String
$cshow :: ListResourceSetResources -> String
showsPrec :: Int -> ListResourceSetResources -> ShowS
$cshowsPrec :: Int -> ListResourceSetResources -> ShowS
Prelude.Show, forall x.
Rep ListResourceSetResources x -> ListResourceSetResources
forall x.
ListResourceSetResources -> Rep ListResourceSetResources x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourceSetResources x -> ListResourceSetResources
$cfrom :: forall x.
ListResourceSetResources -> Rep ListResourceSetResources x
Prelude.Generic)

-- |
-- Create a value of 'ListResourceSetResources' 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:
--
-- 'maxResults', 'listResourceSetResources_maxResults' - The maximum number of objects that you want Firewall Manager to return
-- for this request. If more objects are available, in the response,
-- Firewall Manager provides a @NextToken@ value that you can use in a
-- subsequent call to get the next batch of objects.
--
-- 'nextToken', 'listResourceSetResources_nextToken' - When you request a list of objects with a @MaxResults@ setting, if the
-- number of objects that are still available for retrieval exceeds the
-- maximum you requested, Firewall Manager returns a @NextToken@ value in
-- the response. To retrieve the next batch of objects, use the token
-- returned from the prior request in your next request.
--
-- 'identifier', 'listResourceSetResources_identifier' - A unique identifier for the resource set, used in a TODO to refer to the
-- resource set.
newListResourceSetResources ::
  -- | 'identifier'
  Prelude.Text ->
  ListResourceSetResources
newListResourceSetResources :: Text -> ListResourceSetResources
newListResourceSetResources Text
pIdentifier_ =
  ListResourceSetResources'
    { $sel:maxResults:ListResourceSetResources' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListResourceSetResources' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:identifier:ListResourceSetResources' :: Text
identifier = Text
pIdentifier_
    }

-- | The maximum number of objects that you want Firewall Manager to return
-- for this request. If more objects are available, in the response,
-- Firewall Manager provides a @NextToken@ value that you can use in a
-- subsequent call to get the next batch of objects.
listResourceSetResources_maxResults :: Lens.Lens' ListResourceSetResources (Prelude.Maybe Prelude.Natural)
listResourceSetResources_maxResults :: Lens' ListResourceSetResources (Maybe Natural)
listResourceSetResources_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceSetResources' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResourceSetResources' :: ListResourceSetResources -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResourceSetResources
s@ListResourceSetResources' {} Maybe Natural
a -> ListResourceSetResources
s {$sel:maxResults:ListResourceSetResources' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResourceSetResources)

-- | When you request a list of objects with a @MaxResults@ setting, if the
-- number of objects that are still available for retrieval exceeds the
-- maximum you requested, Firewall Manager returns a @NextToken@ value in
-- the response. To retrieve the next batch of objects, use the token
-- returned from the prior request in your next request.
listResourceSetResources_nextToken :: Lens.Lens' ListResourceSetResources (Prelude.Maybe Prelude.Text)
listResourceSetResources_nextToken :: Lens' ListResourceSetResources (Maybe Text)
listResourceSetResources_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceSetResources' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceSetResources' :: ListResourceSetResources -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceSetResources
s@ListResourceSetResources' {} Maybe Text
a -> ListResourceSetResources
s {$sel:nextToken:ListResourceSetResources' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceSetResources)

-- | A unique identifier for the resource set, used in a TODO to refer to the
-- resource set.
listResourceSetResources_identifier :: Lens.Lens' ListResourceSetResources Prelude.Text
listResourceSetResources_identifier :: Lens' ListResourceSetResources Text
listResourceSetResources_identifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceSetResources' {Text
identifier :: Text
$sel:identifier:ListResourceSetResources' :: ListResourceSetResources -> Text
identifier} -> Text
identifier) (\s :: ListResourceSetResources
s@ListResourceSetResources' {} Text
a -> ListResourceSetResources
s {$sel:identifier:ListResourceSetResources' :: Text
identifier = Text
a} :: ListResourceSetResources)

instance Core.AWSRequest ListResourceSetResources where
  type
    AWSResponse ListResourceSetResources =
      ListResourceSetResourcesResponse
  request :: (Service -> Service)
-> ListResourceSetResources -> Request ListResourceSetResources
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 ListResourceSetResources
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListResourceSetResources)))
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 Text -> Int -> [Resource] -> ListResourceSetResourcesResponse
ListResourceSetResourcesResponse'
            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
"NextToken")
            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))
            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
"Items" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ListResourceSetResources where
  hashWithSalt :: Int -> ListResourceSetResources -> Int
hashWithSalt Int
_salt ListResourceSetResources' {Maybe Natural
Maybe Text
Text
identifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:identifier:ListResourceSetResources' :: ListResourceSetResources -> Text
$sel:nextToken:ListResourceSetResources' :: ListResourceSetResources -> Maybe Text
$sel:maxResults:ListResourceSetResources' :: ListResourceSetResources -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
identifier

instance Prelude.NFData ListResourceSetResources where
  rnf :: ListResourceSetResources -> ()
rnf ListResourceSetResources' {Maybe Natural
Maybe Text
Text
identifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:identifier:ListResourceSetResources' :: ListResourceSetResources -> Text
$sel:nextToken:ListResourceSetResources' :: ListResourceSetResources -> Maybe Text
$sel:maxResults:ListResourceSetResources' :: ListResourceSetResources -> Maybe Natural
..} =
    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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
identifier

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

instance Data.ToJSON ListResourceSetResources where
  toJSON :: ListResourceSetResources -> Value
toJSON ListResourceSetResources' {Maybe Natural
Maybe Text
Text
identifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:identifier:ListResourceSetResources' :: ListResourceSetResources -> Text
$sel:nextToken:ListResourceSetResources' :: ListResourceSetResources -> Maybe Text
$sel:maxResults:ListResourceSetResources' :: ListResourceSetResources -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (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,
            forall a. a -> Maybe a
Prelude.Just (Key
"Identifier" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
identifier)
          ]
      )

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

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

-- | /See:/ 'newListResourceSetResourcesResponse' smart constructor.
data ListResourceSetResourcesResponse = ListResourceSetResourcesResponse'
  { -- | When you request a list of objects with a @MaxResults@ setting, if the
    -- number of objects that are still available for retrieval exceeds the
    -- maximum you requested, Firewall Manager returns a @NextToken@ value in
    -- the response. To retrieve the next batch of objects, use the token
    -- returned from the prior request in your next request.
    ListResourceSetResourcesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListResourceSetResourcesResponse -> Int
httpStatus :: Prelude.Int,
    -- | An array of the associated resources\' uniform resource identifiers
    -- (URI).
    ListResourceSetResourcesResponse -> [Resource]
items :: [Resource]
  }
  deriving (ListResourceSetResourcesResponse
-> ListResourceSetResourcesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceSetResourcesResponse
-> ListResourceSetResourcesResponse -> Bool
$c/= :: ListResourceSetResourcesResponse
-> ListResourceSetResourcesResponse -> Bool
== :: ListResourceSetResourcesResponse
-> ListResourceSetResourcesResponse -> Bool
$c== :: ListResourceSetResourcesResponse
-> ListResourceSetResourcesResponse -> Bool
Prelude.Eq, ReadPrec [ListResourceSetResourcesResponse]
ReadPrec ListResourceSetResourcesResponse
Int -> ReadS ListResourceSetResourcesResponse
ReadS [ListResourceSetResourcesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceSetResourcesResponse]
$creadListPrec :: ReadPrec [ListResourceSetResourcesResponse]
readPrec :: ReadPrec ListResourceSetResourcesResponse
$creadPrec :: ReadPrec ListResourceSetResourcesResponse
readList :: ReadS [ListResourceSetResourcesResponse]
$creadList :: ReadS [ListResourceSetResourcesResponse]
readsPrec :: Int -> ReadS ListResourceSetResourcesResponse
$creadsPrec :: Int -> ReadS ListResourceSetResourcesResponse
Prelude.Read, Int -> ListResourceSetResourcesResponse -> ShowS
[ListResourceSetResourcesResponse] -> ShowS
ListResourceSetResourcesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceSetResourcesResponse] -> ShowS
$cshowList :: [ListResourceSetResourcesResponse] -> ShowS
show :: ListResourceSetResourcesResponse -> String
$cshow :: ListResourceSetResourcesResponse -> String
showsPrec :: Int -> ListResourceSetResourcesResponse -> ShowS
$cshowsPrec :: Int -> ListResourceSetResourcesResponse -> ShowS
Prelude.Show, forall x.
Rep ListResourceSetResourcesResponse x
-> ListResourceSetResourcesResponse
forall x.
ListResourceSetResourcesResponse
-> Rep ListResourceSetResourcesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourceSetResourcesResponse x
-> ListResourceSetResourcesResponse
$cfrom :: forall x.
ListResourceSetResourcesResponse
-> Rep ListResourceSetResourcesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListResourceSetResourcesResponse' 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', 'listResourceSetResourcesResponse_nextToken' - When you request a list of objects with a @MaxResults@ setting, if the
-- number of objects that are still available for retrieval exceeds the
-- maximum you requested, Firewall Manager returns a @NextToken@ value in
-- the response. To retrieve the next batch of objects, use the token
-- returned from the prior request in your next request.
--
-- 'httpStatus', 'listResourceSetResourcesResponse_httpStatus' - The response's http status code.
--
-- 'items', 'listResourceSetResourcesResponse_items' - An array of the associated resources\' uniform resource identifiers
-- (URI).
newListResourceSetResourcesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListResourceSetResourcesResponse
newListResourceSetResourcesResponse :: Int -> ListResourceSetResourcesResponse
newListResourceSetResourcesResponse Int
pHttpStatus_ =
  ListResourceSetResourcesResponse'
    { $sel:nextToken:ListResourceSetResourcesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListResourceSetResourcesResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:items:ListResourceSetResourcesResponse' :: [Resource]
items = forall a. Monoid a => a
Prelude.mempty
    }

-- | When you request a list of objects with a @MaxResults@ setting, if the
-- number of objects that are still available for retrieval exceeds the
-- maximum you requested, Firewall Manager returns a @NextToken@ value in
-- the response. To retrieve the next batch of objects, use the token
-- returned from the prior request in your next request.
listResourceSetResourcesResponse_nextToken :: Lens.Lens' ListResourceSetResourcesResponse (Prelude.Maybe Prelude.Text)
listResourceSetResourcesResponse_nextToken :: Lens' ListResourceSetResourcesResponse (Maybe Text)
listResourceSetResourcesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceSetResourcesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceSetResourcesResponse' :: ListResourceSetResourcesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceSetResourcesResponse
s@ListResourceSetResourcesResponse' {} Maybe Text
a -> ListResourceSetResourcesResponse
s {$sel:nextToken:ListResourceSetResourcesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceSetResourcesResponse)

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

-- | An array of the associated resources\' uniform resource identifiers
-- (URI).
listResourceSetResourcesResponse_items :: Lens.Lens' ListResourceSetResourcesResponse [Resource]
listResourceSetResourcesResponse_items :: Lens' ListResourceSetResourcesResponse [Resource]
listResourceSetResourcesResponse_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceSetResourcesResponse' {[Resource]
items :: [Resource]
$sel:items:ListResourceSetResourcesResponse' :: ListResourceSetResourcesResponse -> [Resource]
items} -> [Resource]
items) (\s :: ListResourceSetResourcesResponse
s@ListResourceSetResourcesResponse' {} [Resource]
a -> ListResourceSetResourcesResponse
s {$sel:items:ListResourceSetResourcesResponse' :: [Resource]
items = [Resource]
a} :: ListResourceSetResourcesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListResourceSetResourcesResponse
  where
  rnf :: ListResourceSetResourcesResponse -> ()
rnf ListResourceSetResourcesResponse' {Int
[Resource]
Maybe Text
items :: [Resource]
httpStatus :: Int
nextToken :: Maybe Text
$sel:items:ListResourceSetResourcesResponse' :: ListResourceSetResourcesResponse -> [Resource]
$sel:httpStatus:ListResourceSetResourcesResponse' :: ListResourceSetResourcesResponse -> Int
$sel:nextToken:ListResourceSetResourcesResponse' :: ListResourceSetResourcesResponse -> Maybe Text
..} =
    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 Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [Resource]
items