{-# 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.Route53RecoveryControlConfig.ListRoutingControls
-- 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 routing controls for a control panel. A routing
-- control is an Amazon Route 53 Application Recovery Controller construct
-- that has one of two states: ON and OFF. You can map the routing control
-- state to the state of an Amazon Route 53 health check, which can be used
-- to control routing.
--
-- This operation returns paginated results.
module Amazonka.Route53RecoveryControlConfig.ListRoutingControls
  ( -- * Creating a Request
    ListRoutingControls (..),
    newListRoutingControls,

    -- * Request Lenses
    listRoutingControls_maxResults,
    listRoutingControls_nextToken,
    listRoutingControls_controlPanelArn,

    -- * Destructuring the Response
    ListRoutingControlsResponse (..),
    newListRoutingControlsResponse,

    -- * Response Lenses
    listRoutingControlsResponse_nextToken,
    listRoutingControlsResponse_routingControls,
    listRoutingControlsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListRoutingControls' smart constructor.
data ListRoutingControls = ListRoutingControls'
  { -- | The number of objects that you want to return with this call.
    ListRoutingControls -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token that identifies which batch of results you want to see.
    ListRoutingControls -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the control panel.
    ListRoutingControls -> Text
controlPanelArn :: Prelude.Text
  }
  deriving (ListRoutingControls -> ListRoutingControls -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingControls -> ListRoutingControls -> Bool
$c/= :: ListRoutingControls -> ListRoutingControls -> Bool
== :: ListRoutingControls -> ListRoutingControls -> Bool
$c== :: ListRoutingControls -> ListRoutingControls -> Bool
Prelude.Eq, ReadPrec [ListRoutingControls]
ReadPrec ListRoutingControls
Int -> ReadS ListRoutingControls
ReadS [ListRoutingControls]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingControls]
$creadListPrec :: ReadPrec [ListRoutingControls]
readPrec :: ReadPrec ListRoutingControls
$creadPrec :: ReadPrec ListRoutingControls
readList :: ReadS [ListRoutingControls]
$creadList :: ReadS [ListRoutingControls]
readsPrec :: Int -> ReadS ListRoutingControls
$creadsPrec :: Int -> ReadS ListRoutingControls
Prelude.Read, Int -> ListRoutingControls -> ShowS
[ListRoutingControls] -> ShowS
ListRoutingControls -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingControls] -> ShowS
$cshowList :: [ListRoutingControls] -> ShowS
show :: ListRoutingControls -> String
$cshow :: ListRoutingControls -> String
showsPrec :: Int -> ListRoutingControls -> ShowS
$cshowsPrec :: Int -> ListRoutingControls -> ShowS
Prelude.Show, forall x. Rep ListRoutingControls x -> ListRoutingControls
forall x. ListRoutingControls -> Rep ListRoutingControls x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutingControls x -> ListRoutingControls
$cfrom :: forall x. ListRoutingControls -> Rep ListRoutingControls x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutingControls' 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', 'listRoutingControls_maxResults' - The number of objects that you want to return with this call.
--
-- 'nextToken', 'listRoutingControls_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'controlPanelArn', 'listRoutingControls_controlPanelArn' - The Amazon Resource Name (ARN) of the control panel.
newListRoutingControls ::
  -- | 'controlPanelArn'
  Prelude.Text ->
  ListRoutingControls
newListRoutingControls :: Text -> ListRoutingControls
newListRoutingControls Text
pControlPanelArn_ =
  ListRoutingControls'
    { $sel:maxResults:ListRoutingControls' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListRoutingControls' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:controlPanelArn:ListRoutingControls' :: Text
controlPanelArn = Text
pControlPanelArn_
    }

-- | The number of objects that you want to return with this call.
listRoutingControls_maxResults :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Natural)
listRoutingControls_maxResults :: Lens' ListRoutingControls (Maybe Natural)
listRoutingControls_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRoutingControls
s@ListRoutingControls' {} Maybe Natural
a -> ListRoutingControls
s {$sel:maxResults:ListRoutingControls' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRoutingControls)

-- | The token that identifies which batch of results you want to see.
listRoutingControls_nextToken :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Text)
listRoutingControls_nextToken :: Lens' ListRoutingControls (Maybe Text)
listRoutingControls_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingControls
s@ListRoutingControls' {} Maybe Text
a -> ListRoutingControls
s {$sel:nextToken:ListRoutingControls' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingControls)

-- | The Amazon Resource Name (ARN) of the control panel.
listRoutingControls_controlPanelArn :: Lens.Lens' ListRoutingControls Prelude.Text
listRoutingControls_controlPanelArn :: Lens' ListRoutingControls Text
listRoutingControls_controlPanelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Text
controlPanelArn :: Text
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
controlPanelArn} -> Text
controlPanelArn) (\s :: ListRoutingControls
s@ListRoutingControls' {} Text
a -> ListRoutingControls
s {$sel:controlPanelArn:ListRoutingControls' :: Text
controlPanelArn = Text
a} :: ListRoutingControls)

instance Core.AWSPager ListRoutingControls where
  page :: ListRoutingControls
-> AWSResponse ListRoutingControls -> Maybe ListRoutingControls
page ListRoutingControls
rq AWSResponse ListRoutingControls
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRoutingControls
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingControlsResponse (Maybe Text)
listRoutingControlsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRoutingControls
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingControlsResponse (Maybe [RoutingControl])
listRoutingControlsResponse_routingControls
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListRoutingControls
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListRoutingControls (Maybe Text)
listRoutingControls_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutingControls
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingControlsResponse (Maybe Text)
listRoutingControlsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListRoutingControls where
  type
    AWSResponse ListRoutingControls =
      ListRoutingControlsResponse
  request :: (Service -> Service)
-> ListRoutingControls -> Request ListRoutingControls
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListRoutingControls
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListRoutingControls)))
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
-> Maybe [RoutingControl] -> Int -> ListRoutingControlsResponse
ListRoutingControlsResponse'
            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.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RoutingControls"
                            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRoutingControls where
  hashWithSalt :: Int -> ListRoutingControls -> Int
hashWithSalt Int
_salt ListRoutingControls' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> 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
controlPanelArn

instance Prelude.NFData ListRoutingControls where
  rnf :: ListRoutingControls -> ()
rnf ListRoutingControls' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> 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
controlPanelArn

instance Data.ToHeaders ListRoutingControls where
  toHeaders :: ListRoutingControls -> 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.ToPath ListRoutingControls where
  toPath :: ListRoutingControls -> ByteString
toPath ListRoutingControls' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/controlpanel/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
controlPanelArn,
        ByteString
"/routingcontrols"
      ]

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

-- | /See:/ 'newListRoutingControlsResponse' smart constructor.
data ListRoutingControlsResponse = ListRoutingControlsResponse'
  { -- | The token that identifies which batch of results you want to see.
    ListRoutingControlsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array of routing controls.
    ListRoutingControlsResponse -> Maybe [RoutingControl]
routingControls :: Prelude.Maybe [RoutingControl],
    -- | The response's http status code.
    ListRoutingControlsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
$c/= :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
== :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
$c== :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
Prelude.Eq, ReadPrec [ListRoutingControlsResponse]
ReadPrec ListRoutingControlsResponse
Int -> ReadS ListRoutingControlsResponse
ReadS [ListRoutingControlsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingControlsResponse]
$creadListPrec :: ReadPrec [ListRoutingControlsResponse]
readPrec :: ReadPrec ListRoutingControlsResponse
$creadPrec :: ReadPrec ListRoutingControlsResponse
readList :: ReadS [ListRoutingControlsResponse]
$creadList :: ReadS [ListRoutingControlsResponse]
readsPrec :: Int -> ReadS ListRoutingControlsResponse
$creadsPrec :: Int -> ReadS ListRoutingControlsResponse
Prelude.Read, Int -> ListRoutingControlsResponse -> ShowS
[ListRoutingControlsResponse] -> ShowS
ListRoutingControlsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingControlsResponse] -> ShowS
$cshowList :: [ListRoutingControlsResponse] -> ShowS
show :: ListRoutingControlsResponse -> String
$cshow :: ListRoutingControlsResponse -> String
showsPrec :: Int -> ListRoutingControlsResponse -> ShowS
$cshowsPrec :: Int -> ListRoutingControlsResponse -> ShowS
Prelude.Show, forall x.
Rep ListRoutingControlsResponse x -> ListRoutingControlsResponse
forall x.
ListRoutingControlsResponse -> Rep ListRoutingControlsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRoutingControlsResponse x -> ListRoutingControlsResponse
$cfrom :: forall x.
ListRoutingControlsResponse -> Rep ListRoutingControlsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutingControlsResponse' 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', 'listRoutingControlsResponse_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'routingControls', 'listRoutingControlsResponse_routingControls' - An array of routing controls.
--
-- 'httpStatus', 'listRoutingControlsResponse_httpStatus' - The response's http status code.
newListRoutingControlsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRoutingControlsResponse
newListRoutingControlsResponse :: Int -> ListRoutingControlsResponse
newListRoutingControlsResponse Int
pHttpStatus_ =
  ListRoutingControlsResponse'
    { $sel:nextToken:ListRoutingControlsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:routingControls:ListRoutingControlsResponse' :: Maybe [RoutingControl]
routingControls = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRoutingControlsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token that identifies which batch of results you want to see.
listRoutingControlsResponse_nextToken :: Lens.Lens' ListRoutingControlsResponse (Prelude.Maybe Prelude.Text)
listRoutingControlsResponse_nextToken :: Lens' ListRoutingControlsResponse (Maybe Text)
listRoutingControlsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControlsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingControlsResponse' :: ListRoutingControlsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingControlsResponse
s@ListRoutingControlsResponse' {} Maybe Text
a -> ListRoutingControlsResponse
s {$sel:nextToken:ListRoutingControlsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingControlsResponse)

-- | An array of routing controls.
listRoutingControlsResponse_routingControls :: Lens.Lens' ListRoutingControlsResponse (Prelude.Maybe [RoutingControl])
listRoutingControlsResponse_routingControls :: Lens' ListRoutingControlsResponse (Maybe [RoutingControl])
listRoutingControlsResponse_routingControls = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControlsResponse' {Maybe [RoutingControl]
routingControls :: Maybe [RoutingControl]
$sel:routingControls:ListRoutingControlsResponse' :: ListRoutingControlsResponse -> Maybe [RoutingControl]
routingControls} -> Maybe [RoutingControl]
routingControls) (\s :: ListRoutingControlsResponse
s@ListRoutingControlsResponse' {} Maybe [RoutingControl]
a -> ListRoutingControlsResponse
s {$sel:routingControls:ListRoutingControlsResponse' :: Maybe [RoutingControl]
routingControls = Maybe [RoutingControl]
a} :: ListRoutingControlsResponse) 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 response's http status code.
listRoutingControlsResponse_httpStatus :: Lens.Lens' ListRoutingControlsResponse Prelude.Int
listRoutingControlsResponse_httpStatus :: Lens' ListRoutingControlsResponse Int
listRoutingControlsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControlsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRoutingControlsResponse' :: ListRoutingControlsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRoutingControlsResponse
s@ListRoutingControlsResponse' {} Int
a -> ListRoutingControlsResponse
s {$sel:httpStatus:ListRoutingControlsResponse' :: Int
httpStatus = Int
a} :: ListRoutingControlsResponse)

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