{-# 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.Route53Resolver.ListFirewallRuleGroupAssociations
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the firewall rule group associations that you have defined.
-- Each association enables DNS filtering for a VPC with one rule group.
--
-- A single call might return only a partial list of the associations. For
-- information, see @MaxResults@.
--
-- This operation returns paginated results.
module Amazonka.Route53Resolver.ListFirewallRuleGroupAssociations
  ( -- * Creating a Request
    ListFirewallRuleGroupAssociations (..),
    newListFirewallRuleGroupAssociations,

    -- * Request Lenses
    listFirewallRuleGroupAssociations_status,
    listFirewallRuleGroupAssociations_firewallRuleGroupId,
    listFirewallRuleGroupAssociations_priority,
    listFirewallRuleGroupAssociations_vpcId,
    listFirewallRuleGroupAssociations_nextToken,
    listFirewallRuleGroupAssociations_maxResults,

    -- * Destructuring the Response
    ListFirewallRuleGroupAssociationsResponse (..),
    newListFirewallRuleGroupAssociationsResponse,

    -- * Response Lenses
    listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations,
    listFirewallRuleGroupAssociationsResponse_nextToken,
    listFirewallRuleGroupAssociationsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53Resolver.Types

-- | /See:/ 'newListFirewallRuleGroupAssociations' smart constructor.
data ListFirewallRuleGroupAssociations = ListFirewallRuleGroupAssociations'
  { -- | The association @Status@ setting that you want DNS Firewall to filter on
    -- for the list. If you don\'t specify this, then DNS Firewall returns all
    -- associations, regardless of status.
    ListFirewallRuleGroupAssociations
-> Maybe FirewallRuleGroupAssociationStatus
status :: Prelude.Maybe FirewallRuleGroupAssociationStatus,
    -- | The unique identifier of the firewall rule group that you want to
    -- retrieve the associations for. Leave this blank to retrieve associations
    -- for any rule group.
    ListFirewallRuleGroupAssociations -> Maybe Text
firewallRuleGroupId :: Prelude.Maybe Prelude.Text,
    -- | The setting that determines the processing order of the rule group among
    -- the rule groups that are associated with a single VPC. DNS Firewall
    -- filters VPC traffic starting from the rule group with the lowest numeric
    -- priority setting.
    ListFirewallRuleGroupAssociations -> Maybe Int
priority :: Prelude.Maybe Prelude.Int,
    -- | The unique identifier of the VPC that you want to retrieve the
    -- associations for. Leave this blank to retrieve associations for any VPC.
    ListFirewallRuleGroupAssociations -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | For the first call to this list request, omit this value.
    --
    -- When you request a list of objects, Resolver returns at most the number
    -- of objects specified in @MaxResults@. If more objects are available for
    -- retrieval, Resolver returns a @NextToken@ value in the response. To
    -- retrieve the next batch of objects, use the token that was returned for
    -- the prior request in your next request.
    ListFirewallRuleGroupAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of objects that you want Resolver to return for this
    -- request. If more objects are available, in the response, Resolver
    -- provides a @NextToken@ value that you can use in a subsequent call to
    -- get the next batch of objects.
    --
    -- If you don\'t specify a value for @MaxResults@, Resolver returns up to
    -- 100 objects.
    ListFirewallRuleGroupAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations -> Bool
(ListFirewallRuleGroupAssociations
 -> ListFirewallRuleGroupAssociations -> Bool)
-> (ListFirewallRuleGroupAssociations
    -> ListFirewallRuleGroupAssociations -> Bool)
-> Eq ListFirewallRuleGroupAssociations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations -> Bool
$c/= :: ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations -> Bool
== :: ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations -> Bool
$c== :: ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations -> Bool
Prelude.Eq, ReadPrec [ListFirewallRuleGroupAssociations]
ReadPrec ListFirewallRuleGroupAssociations
Int -> ReadS ListFirewallRuleGroupAssociations
ReadS [ListFirewallRuleGroupAssociations]
(Int -> ReadS ListFirewallRuleGroupAssociations)
-> ReadS [ListFirewallRuleGroupAssociations]
-> ReadPrec ListFirewallRuleGroupAssociations
-> ReadPrec [ListFirewallRuleGroupAssociations]
-> Read ListFirewallRuleGroupAssociations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallRuleGroupAssociations]
$creadListPrec :: ReadPrec [ListFirewallRuleGroupAssociations]
readPrec :: ReadPrec ListFirewallRuleGroupAssociations
$creadPrec :: ReadPrec ListFirewallRuleGroupAssociations
readList :: ReadS [ListFirewallRuleGroupAssociations]
$creadList :: ReadS [ListFirewallRuleGroupAssociations]
readsPrec :: Int -> ReadS ListFirewallRuleGroupAssociations
$creadsPrec :: Int -> ReadS ListFirewallRuleGroupAssociations
Prelude.Read, Int -> ListFirewallRuleGroupAssociations -> ShowS
[ListFirewallRuleGroupAssociations] -> ShowS
ListFirewallRuleGroupAssociations -> String
(Int -> ListFirewallRuleGroupAssociations -> ShowS)
-> (ListFirewallRuleGroupAssociations -> String)
-> ([ListFirewallRuleGroupAssociations] -> ShowS)
-> Show ListFirewallRuleGroupAssociations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallRuleGroupAssociations] -> ShowS
$cshowList :: [ListFirewallRuleGroupAssociations] -> ShowS
show :: ListFirewallRuleGroupAssociations -> String
$cshow :: ListFirewallRuleGroupAssociations -> String
showsPrec :: Int -> ListFirewallRuleGroupAssociations -> ShowS
$cshowsPrec :: Int -> ListFirewallRuleGroupAssociations -> ShowS
Prelude.Show, (forall x.
 ListFirewallRuleGroupAssociations
 -> Rep ListFirewallRuleGroupAssociations x)
-> (forall x.
    Rep ListFirewallRuleGroupAssociations x
    -> ListFirewallRuleGroupAssociations)
-> Generic ListFirewallRuleGroupAssociations
forall x.
Rep ListFirewallRuleGroupAssociations x
-> ListFirewallRuleGroupAssociations
forall x.
ListFirewallRuleGroupAssociations
-> Rep ListFirewallRuleGroupAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFirewallRuleGroupAssociations x
-> ListFirewallRuleGroupAssociations
$cfrom :: forall x.
ListFirewallRuleGroupAssociations
-> Rep ListFirewallRuleGroupAssociations x
Prelude.Generic)

-- |
-- Create a value of 'ListFirewallRuleGroupAssociations' 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:
--
-- 'status', 'listFirewallRuleGroupAssociations_status' - The association @Status@ setting that you want DNS Firewall to filter on
-- for the list. If you don\'t specify this, then DNS Firewall returns all
-- associations, regardless of status.
--
-- 'firewallRuleGroupId', 'listFirewallRuleGroupAssociations_firewallRuleGroupId' - The unique identifier of the firewall rule group that you want to
-- retrieve the associations for. Leave this blank to retrieve associations
-- for any rule group.
--
-- 'priority', 'listFirewallRuleGroupAssociations_priority' - The setting that determines the processing order of the rule group among
-- the rule groups that are associated with a single VPC. DNS Firewall
-- filters VPC traffic starting from the rule group with the lowest numeric
-- priority setting.
--
-- 'vpcId', 'listFirewallRuleGroupAssociations_vpcId' - The unique identifier of the VPC that you want to retrieve the
-- associations for. Leave this blank to retrieve associations for any VPC.
--
-- 'nextToken', 'listFirewallRuleGroupAssociations_nextToken' - For the first call to this list request, omit this value.
--
-- When you request a list of objects, Resolver returns at most the number
-- of objects specified in @MaxResults@. If more objects are available for
-- retrieval, Resolver returns a @NextToken@ value in the response. To
-- retrieve the next batch of objects, use the token that was returned for
-- the prior request in your next request.
--
-- 'maxResults', 'listFirewallRuleGroupAssociations_maxResults' - The maximum number of objects that you want Resolver to return for this
-- request. If more objects are available, in the response, Resolver
-- provides a @NextToken@ value that you can use in a subsequent call to
-- get the next batch of objects.
--
-- If you don\'t specify a value for @MaxResults@, Resolver returns up to
-- 100 objects.
newListFirewallRuleGroupAssociations ::
  ListFirewallRuleGroupAssociations
newListFirewallRuleGroupAssociations :: ListFirewallRuleGroupAssociations
newListFirewallRuleGroupAssociations =
  ListFirewallRuleGroupAssociations' :: Maybe FirewallRuleGroupAssociationStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> ListFirewallRuleGroupAssociations
ListFirewallRuleGroupAssociations'
    { $sel:status:ListFirewallRuleGroupAssociations' :: Maybe FirewallRuleGroupAssociationStatus
status =
        Maybe FirewallRuleGroupAssociationStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:firewallRuleGroupId:ListFirewallRuleGroupAssociations' :: Maybe Text
firewallRuleGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:priority:ListFirewallRuleGroupAssociations' :: Maybe Int
priority = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:ListFirewallRuleGroupAssociations' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListFirewallRuleGroupAssociations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListFirewallRuleGroupAssociations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The association @Status@ setting that you want DNS Firewall to filter on
-- for the list. If you don\'t specify this, then DNS Firewall returns all
-- associations, regardless of status.
listFirewallRuleGroupAssociations_status :: Lens.Lens' ListFirewallRuleGroupAssociations (Prelude.Maybe FirewallRuleGroupAssociationStatus)
listFirewallRuleGroupAssociations_status :: (Maybe FirewallRuleGroupAssociationStatus
 -> f (Maybe FirewallRuleGroupAssociationStatus))
-> ListFirewallRuleGroupAssociations
-> f ListFirewallRuleGroupAssociations
listFirewallRuleGroupAssociations_status = (ListFirewallRuleGroupAssociations
 -> Maybe FirewallRuleGroupAssociationStatus)
-> (ListFirewallRuleGroupAssociations
    -> Maybe FirewallRuleGroupAssociationStatus
    -> ListFirewallRuleGroupAssociations)
-> Lens
     ListFirewallRuleGroupAssociations
     ListFirewallRuleGroupAssociations
     (Maybe FirewallRuleGroupAssociationStatus)
     (Maybe FirewallRuleGroupAssociationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociations' {Maybe FirewallRuleGroupAssociationStatus
status :: Maybe FirewallRuleGroupAssociationStatus
$sel:status:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations
-> Maybe FirewallRuleGroupAssociationStatus
status} -> Maybe FirewallRuleGroupAssociationStatus
status) (\s :: ListFirewallRuleGroupAssociations
s@ListFirewallRuleGroupAssociations' {} Maybe FirewallRuleGroupAssociationStatus
a -> ListFirewallRuleGroupAssociations
s {$sel:status:ListFirewallRuleGroupAssociations' :: Maybe FirewallRuleGroupAssociationStatus
status = Maybe FirewallRuleGroupAssociationStatus
a} :: ListFirewallRuleGroupAssociations)

-- | The unique identifier of the firewall rule group that you want to
-- retrieve the associations for. Leave this blank to retrieve associations
-- for any rule group.
listFirewallRuleGroupAssociations_firewallRuleGroupId :: Lens.Lens' ListFirewallRuleGroupAssociations (Prelude.Maybe Prelude.Text)
listFirewallRuleGroupAssociations_firewallRuleGroupId :: (Maybe Text -> f (Maybe Text))
-> ListFirewallRuleGroupAssociations
-> f ListFirewallRuleGroupAssociations
listFirewallRuleGroupAssociations_firewallRuleGroupId = (ListFirewallRuleGroupAssociations -> Maybe Text)
-> (ListFirewallRuleGroupAssociations
    -> Maybe Text -> ListFirewallRuleGroupAssociations)
-> Lens
     ListFirewallRuleGroupAssociations
     ListFirewallRuleGroupAssociations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociations' {Maybe Text
firewallRuleGroupId :: Maybe Text
$sel:firewallRuleGroupId:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
firewallRuleGroupId} -> Maybe Text
firewallRuleGroupId) (\s :: ListFirewallRuleGroupAssociations
s@ListFirewallRuleGroupAssociations' {} Maybe Text
a -> ListFirewallRuleGroupAssociations
s {$sel:firewallRuleGroupId:ListFirewallRuleGroupAssociations' :: Maybe Text
firewallRuleGroupId = Maybe Text
a} :: ListFirewallRuleGroupAssociations)

-- | The setting that determines the processing order of the rule group among
-- the rule groups that are associated with a single VPC. DNS Firewall
-- filters VPC traffic starting from the rule group with the lowest numeric
-- priority setting.
listFirewallRuleGroupAssociations_priority :: Lens.Lens' ListFirewallRuleGroupAssociations (Prelude.Maybe Prelude.Int)
listFirewallRuleGroupAssociations_priority :: (Maybe Int -> f (Maybe Int))
-> ListFirewallRuleGroupAssociations
-> f ListFirewallRuleGroupAssociations
listFirewallRuleGroupAssociations_priority = (ListFirewallRuleGroupAssociations -> Maybe Int)
-> (ListFirewallRuleGroupAssociations
    -> Maybe Int -> ListFirewallRuleGroupAssociations)
-> Lens
     ListFirewallRuleGroupAssociations
     ListFirewallRuleGroupAssociations
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociations' {Maybe Int
priority :: Maybe Int
$sel:priority:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Int
priority} -> Maybe Int
priority) (\s :: ListFirewallRuleGroupAssociations
s@ListFirewallRuleGroupAssociations' {} Maybe Int
a -> ListFirewallRuleGroupAssociations
s {$sel:priority:ListFirewallRuleGroupAssociations' :: Maybe Int
priority = Maybe Int
a} :: ListFirewallRuleGroupAssociations)

-- | The unique identifier of the VPC that you want to retrieve the
-- associations for. Leave this blank to retrieve associations for any VPC.
listFirewallRuleGroupAssociations_vpcId :: Lens.Lens' ListFirewallRuleGroupAssociations (Prelude.Maybe Prelude.Text)
listFirewallRuleGroupAssociations_vpcId :: (Maybe Text -> f (Maybe Text))
-> ListFirewallRuleGroupAssociations
-> f ListFirewallRuleGroupAssociations
listFirewallRuleGroupAssociations_vpcId = (ListFirewallRuleGroupAssociations -> Maybe Text)
-> (ListFirewallRuleGroupAssociations
    -> Maybe Text -> ListFirewallRuleGroupAssociations)
-> Lens
     ListFirewallRuleGroupAssociations
     ListFirewallRuleGroupAssociations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociations' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: ListFirewallRuleGroupAssociations
s@ListFirewallRuleGroupAssociations' {} Maybe Text
a -> ListFirewallRuleGroupAssociations
s {$sel:vpcId:ListFirewallRuleGroupAssociations' :: Maybe Text
vpcId = Maybe Text
a} :: ListFirewallRuleGroupAssociations)

-- | For the first call to this list request, omit this value.
--
-- When you request a list of objects, Resolver returns at most the number
-- of objects specified in @MaxResults@. If more objects are available for
-- retrieval, Resolver returns a @NextToken@ value in the response. To
-- retrieve the next batch of objects, use the token that was returned for
-- the prior request in your next request.
listFirewallRuleGroupAssociations_nextToken :: Lens.Lens' ListFirewallRuleGroupAssociations (Prelude.Maybe Prelude.Text)
listFirewallRuleGroupAssociations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallRuleGroupAssociations
-> f ListFirewallRuleGroupAssociations
listFirewallRuleGroupAssociations_nextToken = (ListFirewallRuleGroupAssociations -> Maybe Text)
-> (ListFirewallRuleGroupAssociations
    -> Maybe Text -> ListFirewallRuleGroupAssociations)
-> Lens
     ListFirewallRuleGroupAssociations
     ListFirewallRuleGroupAssociations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallRuleGroupAssociations
s@ListFirewallRuleGroupAssociations' {} Maybe Text
a -> ListFirewallRuleGroupAssociations
s {$sel:nextToken:ListFirewallRuleGroupAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallRuleGroupAssociations)

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

instance
  Core.AWSPager
    ListFirewallRuleGroupAssociations
  where
  page :: ListFirewallRuleGroupAssociations
-> AWSResponse ListFirewallRuleGroupAssociations
-> Maybe ListFirewallRuleGroupAssociations
page ListFirewallRuleGroupAssociations
rq AWSResponse ListFirewallRuleGroupAssociations
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFirewallRuleGroupAssociations
ListFirewallRuleGroupAssociationsResponse
rs
            ListFirewallRuleGroupAssociationsResponse
-> Getting
     (First Text) ListFirewallRuleGroupAssociationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallRuleGroupAssociationsResponse
-> Const (First Text) ListFirewallRuleGroupAssociationsResponse
Lens' ListFirewallRuleGroupAssociationsResponse (Maybe Text)
listFirewallRuleGroupAssociationsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListFirewallRuleGroupAssociationsResponse
 -> Const (First Text) ListFirewallRuleGroupAssociationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) ListFirewallRuleGroupAssociationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListFirewallRuleGroupAssociations
forall a. Maybe a
Prelude.Nothing
    | Maybe [FirewallRuleGroupAssociation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListFirewallRuleGroupAssociations
ListFirewallRuleGroupAssociationsResponse
rs
            ListFirewallRuleGroupAssociationsResponse
-> Getting
     (First [FirewallRuleGroupAssociation])
     ListFirewallRuleGroupAssociationsResponse
     [FirewallRuleGroupAssociation]
-> Maybe [FirewallRuleGroupAssociation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [FirewallRuleGroupAssociation]
 -> Const
      (First [FirewallRuleGroupAssociation])
      (Maybe [FirewallRuleGroupAssociation]))
-> ListFirewallRuleGroupAssociationsResponse
-> Const
     (First [FirewallRuleGroupAssociation])
     ListFirewallRuleGroupAssociationsResponse
Lens'
  ListFirewallRuleGroupAssociationsResponse
  (Maybe [FirewallRuleGroupAssociation])
listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations
              ((Maybe [FirewallRuleGroupAssociation]
  -> Const
       (First [FirewallRuleGroupAssociation])
       (Maybe [FirewallRuleGroupAssociation]))
 -> ListFirewallRuleGroupAssociationsResponse
 -> Const
      (First [FirewallRuleGroupAssociation])
      ListFirewallRuleGroupAssociationsResponse)
-> (([FirewallRuleGroupAssociation]
     -> Const
          (First [FirewallRuleGroupAssociation])
          [FirewallRuleGroupAssociation])
    -> Maybe [FirewallRuleGroupAssociation]
    -> Const
         (First [FirewallRuleGroupAssociation])
         (Maybe [FirewallRuleGroupAssociation]))
-> Getting
     (First [FirewallRuleGroupAssociation])
     ListFirewallRuleGroupAssociationsResponse
     [FirewallRuleGroupAssociation]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FirewallRuleGroupAssociation]
 -> Const
      (First [FirewallRuleGroupAssociation])
      [FirewallRuleGroupAssociation])
-> Maybe [FirewallRuleGroupAssociation]
-> Const
     (First [FirewallRuleGroupAssociation])
     (Maybe [FirewallRuleGroupAssociation])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListFirewallRuleGroupAssociations
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListFirewallRuleGroupAssociations
-> Maybe ListFirewallRuleGroupAssociations
forall a. a -> Maybe a
Prelude.Just (ListFirewallRuleGroupAssociations
 -> Maybe ListFirewallRuleGroupAssociations)
-> ListFirewallRuleGroupAssociations
-> Maybe ListFirewallRuleGroupAssociations
forall a b. (a -> b) -> a -> b
Prelude.$
        ListFirewallRuleGroupAssociations
rq
          ListFirewallRuleGroupAssociations
-> (ListFirewallRuleGroupAssociations
    -> ListFirewallRuleGroupAssociations)
-> ListFirewallRuleGroupAssociations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListFirewallRuleGroupAssociations
-> Identity ListFirewallRuleGroupAssociations
Lens
  ListFirewallRuleGroupAssociations
  ListFirewallRuleGroupAssociations
  (Maybe Text)
  (Maybe Text)
listFirewallRuleGroupAssociations_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListFirewallRuleGroupAssociations
 -> Identity ListFirewallRuleGroupAssociations)
-> Maybe Text
-> ListFirewallRuleGroupAssociations
-> ListFirewallRuleGroupAssociations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFirewallRuleGroupAssociations
ListFirewallRuleGroupAssociationsResponse
rs
          ListFirewallRuleGroupAssociationsResponse
-> Getting
     (First Text) ListFirewallRuleGroupAssociationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallRuleGroupAssociationsResponse
-> Const (First Text) ListFirewallRuleGroupAssociationsResponse
Lens' ListFirewallRuleGroupAssociationsResponse (Maybe Text)
listFirewallRuleGroupAssociationsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListFirewallRuleGroupAssociationsResponse
 -> Const (First Text) ListFirewallRuleGroupAssociationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) ListFirewallRuleGroupAssociationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    ListFirewallRuleGroupAssociations
  where
  type
    AWSResponse ListFirewallRuleGroupAssociations =
      ListFirewallRuleGroupAssociationsResponse
  request :: ListFirewallRuleGroupAssociations
-> Request ListFirewallRuleGroupAssociations
request = Service
-> ListFirewallRuleGroupAssociations
-> Request ListFirewallRuleGroupAssociations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListFirewallRuleGroupAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListFirewallRuleGroupAssociations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListFirewallRuleGroupAssociations))
-> Logger
-> Service
-> Proxy ListFirewallRuleGroupAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListFirewallRuleGroupAssociations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [FirewallRuleGroupAssociation]
-> Maybe Text -> Int -> ListFirewallRuleGroupAssociationsResponse
ListFirewallRuleGroupAssociationsResponse'
            (Maybe [FirewallRuleGroupAssociation]
 -> Maybe Text -> Int -> ListFirewallRuleGroupAssociationsResponse)
-> Either String (Maybe [FirewallRuleGroupAssociation])
-> Either
     String
     (Maybe Text -> Int -> ListFirewallRuleGroupAssociationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [FirewallRuleGroupAssociation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FirewallRuleGroupAssociations"
                            Either String (Maybe (Maybe [FirewallRuleGroupAssociation]))
-> Maybe [FirewallRuleGroupAssociation]
-> Either String (Maybe [FirewallRuleGroupAssociation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FirewallRuleGroupAssociation]
forall a. Monoid a => a
Prelude.mempty
                        )
              Either
  String
  (Maybe Text -> Int -> ListFirewallRuleGroupAssociationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListFirewallRuleGroupAssociationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
              Either String (Int -> ListFirewallRuleGroupAssociationsResponse)
-> Either String Int
-> Either String ListFirewallRuleGroupAssociationsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListFirewallRuleGroupAssociations

instance
  Prelude.NFData
    ListFirewallRuleGroupAssociations

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

instance
  Core.ToJSON
    ListFirewallRuleGroupAssociations
  where
  toJSON :: ListFirewallRuleGroupAssociations -> Value
toJSON ListFirewallRuleGroupAssociations' {Maybe Int
Maybe Natural
Maybe Text
Maybe FirewallRuleGroupAssociationStatus
maxResults :: Maybe Natural
nextToken :: Maybe Text
vpcId :: Maybe Text
priority :: Maybe Int
firewallRuleGroupId :: Maybe Text
status :: Maybe FirewallRuleGroupAssociationStatus
$sel:maxResults:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Natural
$sel:nextToken:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
$sel:vpcId:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
$sel:priority:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Int
$sel:firewallRuleGroupId:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations -> Maybe Text
$sel:status:ListFirewallRuleGroupAssociations' :: ListFirewallRuleGroupAssociations
-> Maybe FirewallRuleGroupAssociationStatus
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Status" Text -> FirewallRuleGroupAssociationStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (FirewallRuleGroupAssociationStatus -> Pair)
-> Maybe FirewallRuleGroupAssociationStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FirewallRuleGroupAssociationStatus
status,
            (Text
"FirewallRuleGroupId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
firewallRuleGroupId,
            (Text
"Priority" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
priority,
            (Text
"VpcId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vpcId,
            (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

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

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

-- | /See:/ 'newListFirewallRuleGroupAssociationsResponse' smart constructor.
data ListFirewallRuleGroupAssociationsResponse = ListFirewallRuleGroupAssociationsResponse'
  { -- | A list of your firewall rule group associations.
    --
    -- This might be a partial list of the associations that you have defined.
    -- For information, see @MaxResults@.
    ListFirewallRuleGroupAssociationsResponse
-> Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations :: Prelude.Maybe [FirewallRuleGroupAssociation],
    -- | If objects are still available for retrieval, Resolver returns this
    -- token in the response. To retrieve the next batch of objects, provide
    -- this token in your next request.
    ListFirewallRuleGroupAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFirewallRuleGroupAssociationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListFirewallRuleGroupAssociationsResponse
-> ListFirewallRuleGroupAssociationsResponse -> Bool
(ListFirewallRuleGroupAssociationsResponse
 -> ListFirewallRuleGroupAssociationsResponse -> Bool)
-> (ListFirewallRuleGroupAssociationsResponse
    -> ListFirewallRuleGroupAssociationsResponse -> Bool)
-> Eq ListFirewallRuleGroupAssociationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallRuleGroupAssociationsResponse
-> ListFirewallRuleGroupAssociationsResponse -> Bool
$c/= :: ListFirewallRuleGroupAssociationsResponse
-> ListFirewallRuleGroupAssociationsResponse -> Bool
== :: ListFirewallRuleGroupAssociationsResponse
-> ListFirewallRuleGroupAssociationsResponse -> Bool
$c== :: ListFirewallRuleGroupAssociationsResponse
-> ListFirewallRuleGroupAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [ListFirewallRuleGroupAssociationsResponse]
ReadPrec ListFirewallRuleGroupAssociationsResponse
Int -> ReadS ListFirewallRuleGroupAssociationsResponse
ReadS [ListFirewallRuleGroupAssociationsResponse]
(Int -> ReadS ListFirewallRuleGroupAssociationsResponse)
-> ReadS [ListFirewallRuleGroupAssociationsResponse]
-> ReadPrec ListFirewallRuleGroupAssociationsResponse
-> ReadPrec [ListFirewallRuleGroupAssociationsResponse]
-> Read ListFirewallRuleGroupAssociationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallRuleGroupAssociationsResponse]
$creadListPrec :: ReadPrec [ListFirewallRuleGroupAssociationsResponse]
readPrec :: ReadPrec ListFirewallRuleGroupAssociationsResponse
$creadPrec :: ReadPrec ListFirewallRuleGroupAssociationsResponse
readList :: ReadS [ListFirewallRuleGroupAssociationsResponse]
$creadList :: ReadS [ListFirewallRuleGroupAssociationsResponse]
readsPrec :: Int -> ReadS ListFirewallRuleGroupAssociationsResponse
$creadsPrec :: Int -> ReadS ListFirewallRuleGroupAssociationsResponse
Prelude.Read, Int -> ListFirewallRuleGroupAssociationsResponse -> ShowS
[ListFirewallRuleGroupAssociationsResponse] -> ShowS
ListFirewallRuleGroupAssociationsResponse -> String
(Int -> ListFirewallRuleGroupAssociationsResponse -> ShowS)
-> (ListFirewallRuleGroupAssociationsResponse -> String)
-> ([ListFirewallRuleGroupAssociationsResponse] -> ShowS)
-> Show ListFirewallRuleGroupAssociationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallRuleGroupAssociationsResponse] -> ShowS
$cshowList :: [ListFirewallRuleGroupAssociationsResponse] -> ShowS
show :: ListFirewallRuleGroupAssociationsResponse -> String
$cshow :: ListFirewallRuleGroupAssociationsResponse -> String
showsPrec :: Int -> ListFirewallRuleGroupAssociationsResponse -> ShowS
$cshowsPrec :: Int -> ListFirewallRuleGroupAssociationsResponse -> ShowS
Prelude.Show, (forall x.
 ListFirewallRuleGroupAssociationsResponse
 -> Rep ListFirewallRuleGroupAssociationsResponse x)
-> (forall x.
    Rep ListFirewallRuleGroupAssociationsResponse x
    -> ListFirewallRuleGroupAssociationsResponse)
-> Generic ListFirewallRuleGroupAssociationsResponse
forall x.
Rep ListFirewallRuleGroupAssociationsResponse x
-> ListFirewallRuleGroupAssociationsResponse
forall x.
ListFirewallRuleGroupAssociationsResponse
-> Rep ListFirewallRuleGroupAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFirewallRuleGroupAssociationsResponse x
-> ListFirewallRuleGroupAssociationsResponse
$cfrom :: forall x.
ListFirewallRuleGroupAssociationsResponse
-> Rep ListFirewallRuleGroupAssociationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFirewallRuleGroupAssociationsResponse' 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:
--
-- 'firewallRuleGroupAssociations', 'listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations' - A list of your firewall rule group associations.
--
-- This might be a partial list of the associations that you have defined.
-- For information, see @MaxResults@.
--
-- 'nextToken', 'listFirewallRuleGroupAssociationsResponse_nextToken' - If objects are still available for retrieval, Resolver returns this
-- token in the response. To retrieve the next batch of objects, provide
-- this token in your next request.
--
-- 'httpStatus', 'listFirewallRuleGroupAssociationsResponse_httpStatus' - The response's http status code.
newListFirewallRuleGroupAssociationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFirewallRuleGroupAssociationsResponse
newListFirewallRuleGroupAssociationsResponse :: Int -> ListFirewallRuleGroupAssociationsResponse
newListFirewallRuleGroupAssociationsResponse
  Int
pHttpStatus_ =
    ListFirewallRuleGroupAssociationsResponse' :: Maybe [FirewallRuleGroupAssociation]
-> Maybe Text -> Int -> ListFirewallRuleGroupAssociationsResponse
ListFirewallRuleGroupAssociationsResponse'
      { $sel:firewallRuleGroupAssociations:ListFirewallRuleGroupAssociationsResponse' :: Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations =
          Maybe [FirewallRuleGroupAssociation]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListFirewallRuleGroupAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListFirewallRuleGroupAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list of your firewall rule group associations.
--
-- This might be a partial list of the associations that you have defined.
-- For information, see @MaxResults@.
listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations :: Lens.Lens' ListFirewallRuleGroupAssociationsResponse (Prelude.Maybe [FirewallRuleGroupAssociation])
listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations :: (Maybe [FirewallRuleGroupAssociation]
 -> f (Maybe [FirewallRuleGroupAssociation]))
-> ListFirewallRuleGroupAssociationsResponse
-> f ListFirewallRuleGroupAssociationsResponse
listFirewallRuleGroupAssociationsResponse_firewallRuleGroupAssociations = (ListFirewallRuleGroupAssociationsResponse
 -> Maybe [FirewallRuleGroupAssociation])
-> (ListFirewallRuleGroupAssociationsResponse
    -> Maybe [FirewallRuleGroupAssociation]
    -> ListFirewallRuleGroupAssociationsResponse)
-> Lens'
     ListFirewallRuleGroupAssociationsResponse
     (Maybe [FirewallRuleGroupAssociation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociationsResponse' {Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations :: Maybe [FirewallRuleGroupAssociation]
$sel:firewallRuleGroupAssociations:ListFirewallRuleGroupAssociationsResponse' :: ListFirewallRuleGroupAssociationsResponse
-> Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations} -> Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations) (\s :: ListFirewallRuleGroupAssociationsResponse
s@ListFirewallRuleGroupAssociationsResponse' {} Maybe [FirewallRuleGroupAssociation]
a -> ListFirewallRuleGroupAssociationsResponse
s {$sel:firewallRuleGroupAssociations:ListFirewallRuleGroupAssociationsResponse' :: Maybe [FirewallRuleGroupAssociation]
firewallRuleGroupAssociations = Maybe [FirewallRuleGroupAssociation]
a} :: ListFirewallRuleGroupAssociationsResponse) ((Maybe [FirewallRuleGroupAssociation]
  -> f (Maybe [FirewallRuleGroupAssociation]))
 -> ListFirewallRuleGroupAssociationsResponse
 -> f ListFirewallRuleGroupAssociationsResponse)
-> ((Maybe [FirewallRuleGroupAssociation]
     -> f (Maybe [FirewallRuleGroupAssociation]))
    -> Maybe [FirewallRuleGroupAssociation]
    -> f (Maybe [FirewallRuleGroupAssociation]))
-> (Maybe [FirewallRuleGroupAssociation]
    -> f (Maybe [FirewallRuleGroupAssociation]))
-> ListFirewallRuleGroupAssociationsResponse
-> f ListFirewallRuleGroupAssociationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
-> Iso
     (Maybe [FirewallRuleGroupAssociation])
     (Maybe [FirewallRuleGroupAssociation])
     (Maybe [FirewallRuleGroupAssociation])
     (Maybe [FirewallRuleGroupAssociation])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
  [FirewallRuleGroupAssociation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If objects are still available for retrieval, Resolver returns this
-- token in the response. To retrieve the next batch of objects, provide
-- this token in your next request.
listFirewallRuleGroupAssociationsResponse_nextToken :: Lens.Lens' ListFirewallRuleGroupAssociationsResponse (Prelude.Maybe Prelude.Text)
listFirewallRuleGroupAssociationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallRuleGroupAssociationsResponse
-> f ListFirewallRuleGroupAssociationsResponse
listFirewallRuleGroupAssociationsResponse_nextToken = (ListFirewallRuleGroupAssociationsResponse -> Maybe Text)
-> (ListFirewallRuleGroupAssociationsResponse
    -> Maybe Text -> ListFirewallRuleGroupAssociationsResponse)
-> Lens' ListFirewallRuleGroupAssociationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallRuleGroupAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallRuleGroupAssociationsResponse' :: ListFirewallRuleGroupAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallRuleGroupAssociationsResponse
s@ListFirewallRuleGroupAssociationsResponse' {} Maybe Text
a -> ListFirewallRuleGroupAssociationsResponse
s {$sel:nextToken:ListFirewallRuleGroupAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallRuleGroupAssociationsResponse)

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

instance
  Prelude.NFData
    ListFirewallRuleGroupAssociationsResponse