{-# 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.ListSafetyRules
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- List the safety rules (the assertion rules and gating rules) that
-- you\'ve defined for the routing controls in a control panel.
--
-- This operation returns paginated results.
module Amazonka.Route53RecoveryControlConfig.ListSafetyRules
  ( -- * Creating a Request
    ListSafetyRules (..),
    newListSafetyRules,

    -- * Request Lenses
    listSafetyRules_maxResults,
    listSafetyRules_nextToken,
    listSafetyRules_controlPanelArn,

    -- * Destructuring the Response
    ListSafetyRulesResponse (..),
    newListSafetyRulesResponse,

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

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

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

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

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

instance Core.AWSPager ListSafetyRules where
  page :: ListSafetyRules
-> AWSResponse ListSafetyRules -> Maybe ListSafetyRules
page ListSafetyRules
rq AWSResponse ListSafetyRules
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSafetyRules
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSafetyRulesResponse (Maybe Text)
listSafetyRulesResponse_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 ListSafetyRules
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSafetyRulesResponse (Maybe [Rule])
listSafetyRulesResponse_safetyRules
            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.$ ListSafetyRules
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSafetyRules (Maybe Text)
listSafetyRules_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSafetyRules
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSafetyRulesResponse (Maybe Text)
listSafetyRulesResponse_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 ListSafetyRules where
  type
    AWSResponse ListSafetyRules =
      ListSafetyRulesResponse
  request :: (Service -> Service) -> ListSafetyRules -> Request ListSafetyRules
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 ListSafetyRules
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListSafetyRules)))
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 [Rule] -> Int -> ListSafetyRulesResponse
ListSafetyRulesResponse'
            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
"SafetyRules" 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 ListSafetyRules where
  hashWithSalt :: Int -> ListSafetyRules -> Int
hashWithSalt Int
_salt ListSafetyRules' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListSafetyRules' :: ListSafetyRules -> Text
$sel:nextToken:ListSafetyRules' :: ListSafetyRules -> Maybe Text
$sel:maxResults:ListSafetyRules' :: ListSafetyRules -> 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 ListSafetyRules where
  rnf :: ListSafetyRules -> ()
rnf ListSafetyRules' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListSafetyRules' :: ListSafetyRules -> Text
$sel:nextToken:ListSafetyRules' :: ListSafetyRules -> Maybe Text
$sel:maxResults:ListSafetyRules' :: ListSafetyRules -> 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 ListSafetyRules where
  toHeaders :: ListSafetyRules -> 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 ListSafetyRules where
  toPath :: ListSafetyRules -> ByteString
toPath ListSafetyRules' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListSafetyRules' :: ListSafetyRules -> Text
$sel:nextToken:ListSafetyRules' :: ListSafetyRules -> Maybe Text
$sel:maxResults:ListSafetyRules' :: ListSafetyRules -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/controlpanel/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
controlPanelArn,
        ByteString
"/safetyrules"
      ]

instance Data.ToQuery ListSafetyRules where
  toQuery :: ListSafetyRules -> QueryString
toQuery ListSafetyRules' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:controlPanelArn:ListSafetyRules' :: ListSafetyRules -> Text
$sel:nextToken:ListSafetyRules' :: ListSafetyRules -> Maybe Text
$sel:maxResults:ListSafetyRules' :: ListSafetyRules -> 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:/ 'newListSafetyRulesResponse' smart constructor.
data ListSafetyRulesResponse = ListSafetyRulesResponse'
  { -- | The token that identifies which batch of results you want to see.
    ListSafetyRulesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The list of safety rules in a control panel.
    ListSafetyRulesResponse -> Maybe [Rule]
safetyRules :: Prelude.Maybe [Rule],
    -- | The response's http status code.
    ListSafetyRulesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSafetyRulesResponse -> ListSafetyRulesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSafetyRulesResponse -> ListSafetyRulesResponse -> Bool
$c/= :: ListSafetyRulesResponse -> ListSafetyRulesResponse -> Bool
== :: ListSafetyRulesResponse -> ListSafetyRulesResponse -> Bool
$c== :: ListSafetyRulesResponse -> ListSafetyRulesResponse -> Bool
Prelude.Eq, ReadPrec [ListSafetyRulesResponse]
ReadPrec ListSafetyRulesResponse
Int -> ReadS ListSafetyRulesResponse
ReadS [ListSafetyRulesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSafetyRulesResponse]
$creadListPrec :: ReadPrec [ListSafetyRulesResponse]
readPrec :: ReadPrec ListSafetyRulesResponse
$creadPrec :: ReadPrec ListSafetyRulesResponse
readList :: ReadS [ListSafetyRulesResponse]
$creadList :: ReadS [ListSafetyRulesResponse]
readsPrec :: Int -> ReadS ListSafetyRulesResponse
$creadsPrec :: Int -> ReadS ListSafetyRulesResponse
Prelude.Read, Int -> ListSafetyRulesResponse -> ShowS
[ListSafetyRulesResponse] -> ShowS
ListSafetyRulesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSafetyRulesResponse] -> ShowS
$cshowList :: [ListSafetyRulesResponse] -> ShowS
show :: ListSafetyRulesResponse -> String
$cshow :: ListSafetyRulesResponse -> String
showsPrec :: Int -> ListSafetyRulesResponse -> ShowS
$cshowsPrec :: Int -> ListSafetyRulesResponse -> ShowS
Prelude.Show, forall x. Rep ListSafetyRulesResponse x -> ListSafetyRulesResponse
forall x. ListSafetyRulesResponse -> Rep ListSafetyRulesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSafetyRulesResponse x -> ListSafetyRulesResponse
$cfrom :: forall x. ListSafetyRulesResponse -> Rep ListSafetyRulesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSafetyRulesResponse' 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', 'listSafetyRulesResponse_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'safetyRules', 'listSafetyRulesResponse_safetyRules' - The list of safety rules in a control panel.
--
-- 'httpStatus', 'listSafetyRulesResponse_httpStatus' - The response's http status code.
newListSafetyRulesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSafetyRulesResponse
newListSafetyRulesResponse :: Int -> ListSafetyRulesResponse
newListSafetyRulesResponse Int
pHttpStatus_ =
  ListSafetyRulesResponse'
    { $sel:nextToken:ListSafetyRulesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:safetyRules:ListSafetyRulesResponse' :: Maybe [Rule]
safetyRules = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSafetyRulesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | The list of safety rules in a control panel.
listSafetyRulesResponse_safetyRules :: Lens.Lens' ListSafetyRulesResponse (Prelude.Maybe [Rule])
listSafetyRulesResponse_safetyRules :: Lens' ListSafetyRulesResponse (Maybe [Rule])
listSafetyRulesResponse_safetyRules = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSafetyRulesResponse' {Maybe [Rule]
safetyRules :: Maybe [Rule]
$sel:safetyRules:ListSafetyRulesResponse' :: ListSafetyRulesResponse -> Maybe [Rule]
safetyRules} -> Maybe [Rule]
safetyRules) (\s :: ListSafetyRulesResponse
s@ListSafetyRulesResponse' {} Maybe [Rule]
a -> ListSafetyRulesResponse
s {$sel:safetyRules:ListSafetyRulesResponse' :: Maybe [Rule]
safetyRules = Maybe [Rule]
a} :: ListSafetyRulesResponse) 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.
listSafetyRulesResponse_httpStatus :: Lens.Lens' ListSafetyRulesResponse Prelude.Int
listSafetyRulesResponse_httpStatus :: Lens' ListSafetyRulesResponse Int
listSafetyRulesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSafetyRulesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSafetyRulesResponse' :: ListSafetyRulesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSafetyRulesResponse
s@ListSafetyRulesResponse' {} Int
a -> ListSafetyRulesResponse
s {$sel:httpStatus:ListSafetyRulesResponse' :: Int
httpStatus = Int
a} :: ListSafetyRulesResponse)

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