{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.FirewallRuleGroupAssociation
-- 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)
module Amazonka.Route53Resolver.Types.FirewallRuleGroupAssociation where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53Resolver.Types.FirewallRuleGroupAssociationStatus
import Amazonka.Route53Resolver.Types.MutationProtectionStatus

-- | An association between a firewall rule group and a VPC, which enables
-- DNS filtering for the VPC.
--
-- /See:/ 'newFirewallRuleGroupAssociation' smart constructor.
data FirewallRuleGroupAssociation = FirewallRuleGroupAssociation'
  { -- | The date and time that the association was created, in Unix time format
    -- and Coordinated Universal Time (UTC).
    FirewallRuleGroupAssociation -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
    -- | The current status of the association.
    FirewallRuleGroupAssociation
-> Maybe FirewallRuleGroupAssociationStatus
status :: Prelude.Maybe FirewallRuleGroupAssociationStatus,
    -- | If enabled, this setting disallows modification or removal of the
    -- association, to help prevent against accidentally altering DNS firewall
    -- protections.
    FirewallRuleGroupAssociation -> Maybe MutationProtectionStatus
mutationProtection :: Prelude.Maybe MutationProtectionStatus,
    -- | The unique identifier of the firewall rule group.
    FirewallRuleGroupAssociation -> 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 rule group with the lowest numeric
    -- priority setting.
    FirewallRuleGroupAssociation -> Maybe Int
priority :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the firewall rule group association.
    FirewallRuleGroupAssociation -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the VPC that is associated with the rule group.
    FirewallRuleGroupAssociation -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
    -- | A unique string defined by you to identify the request. This allows you
    -- to retry failed requests without the risk of running the operation
    -- twice. This can be any unique string, for example, a timestamp.
    FirewallRuleGroupAssociation -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
    -- | The owner of the association, used only for associations that are not
    -- managed by you. If you use Firewall Manager to manage your DNS
    -- Firewalls, then this reports Firewall Manager as the managed owner.
    FirewallRuleGroupAssociation -> Maybe Text
managedOwnerName :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the association was last modified, in Unix time
    -- format and Coordinated Universal Time (UTC).
    FirewallRuleGroupAssociation -> Maybe Text
modificationTime :: Prelude.Maybe Prelude.Text,
    -- | Additional information about the status of the response, if available.
    FirewallRuleGroupAssociation -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The name of the association.
    FirewallRuleGroupAssociation -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the association.
    FirewallRuleGroupAssociation -> Maybe Text
id :: Prelude.Maybe Prelude.Text
  }
  deriving (FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
(FirewallRuleGroupAssociation
 -> FirewallRuleGroupAssociation -> Bool)
-> (FirewallRuleGroupAssociation
    -> FirewallRuleGroupAssociation -> Bool)
-> Eq FirewallRuleGroupAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
$c/= :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
== :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
$c== :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
Prelude.Eq, ReadPrec [FirewallRuleGroupAssociation]
ReadPrec FirewallRuleGroupAssociation
Int -> ReadS FirewallRuleGroupAssociation
ReadS [FirewallRuleGroupAssociation]
(Int -> ReadS FirewallRuleGroupAssociation)
-> ReadS [FirewallRuleGroupAssociation]
-> ReadPrec FirewallRuleGroupAssociation
-> ReadPrec [FirewallRuleGroupAssociation]
-> Read FirewallRuleGroupAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FirewallRuleGroupAssociation]
$creadListPrec :: ReadPrec [FirewallRuleGroupAssociation]
readPrec :: ReadPrec FirewallRuleGroupAssociation
$creadPrec :: ReadPrec FirewallRuleGroupAssociation
readList :: ReadS [FirewallRuleGroupAssociation]
$creadList :: ReadS [FirewallRuleGroupAssociation]
readsPrec :: Int -> ReadS FirewallRuleGroupAssociation
$creadsPrec :: Int -> ReadS FirewallRuleGroupAssociation
Prelude.Read, Int -> FirewallRuleGroupAssociation -> ShowS
[FirewallRuleGroupAssociation] -> ShowS
FirewallRuleGroupAssociation -> String
(Int -> FirewallRuleGroupAssociation -> ShowS)
-> (FirewallRuleGroupAssociation -> String)
-> ([FirewallRuleGroupAssociation] -> ShowS)
-> Show FirewallRuleGroupAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FirewallRuleGroupAssociation] -> ShowS
$cshowList :: [FirewallRuleGroupAssociation] -> ShowS
show :: FirewallRuleGroupAssociation -> String
$cshow :: FirewallRuleGroupAssociation -> String
showsPrec :: Int -> FirewallRuleGroupAssociation -> ShowS
$cshowsPrec :: Int -> FirewallRuleGroupAssociation -> ShowS
Prelude.Show, (forall x.
 FirewallRuleGroupAssociation -> Rep FirewallRuleGroupAssociation x)
-> (forall x.
    Rep FirewallRuleGroupAssociation x -> FirewallRuleGroupAssociation)
-> Generic FirewallRuleGroupAssociation
forall x.
Rep FirewallRuleGroupAssociation x -> FirewallRuleGroupAssociation
forall x.
FirewallRuleGroupAssociation -> Rep FirewallRuleGroupAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FirewallRuleGroupAssociation x -> FirewallRuleGroupAssociation
$cfrom :: forall x.
FirewallRuleGroupAssociation -> Rep FirewallRuleGroupAssociation x
Prelude.Generic)

-- |
-- Create a value of 'FirewallRuleGroupAssociation' 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:
--
-- 'creationTime', 'firewallRuleGroupAssociation_creationTime' - The date and time that the association was created, in Unix time format
-- and Coordinated Universal Time (UTC).
--
-- 'status', 'firewallRuleGroupAssociation_status' - The current status of the association.
--
-- 'mutationProtection', 'firewallRuleGroupAssociation_mutationProtection' - If enabled, this setting disallows modification or removal of the
-- association, to help prevent against accidentally altering DNS firewall
-- protections.
--
-- 'firewallRuleGroupId', 'firewallRuleGroupAssociation_firewallRuleGroupId' - The unique identifier of the firewall rule group.
--
-- 'priority', 'firewallRuleGroupAssociation_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 rule group with the lowest numeric
-- priority setting.
--
-- 'arn', 'firewallRuleGroupAssociation_arn' - The Amazon Resource Name (ARN) of the firewall rule group association.
--
-- 'vpcId', 'firewallRuleGroupAssociation_vpcId' - The unique identifier of the VPC that is associated with the rule group.
--
-- 'creatorRequestId', 'firewallRuleGroupAssociation_creatorRequestId' - A unique string defined by you to identify the request. This allows you
-- to retry failed requests without the risk of running the operation
-- twice. This can be any unique string, for example, a timestamp.
--
-- 'managedOwnerName', 'firewallRuleGroupAssociation_managedOwnerName' - The owner of the association, used only for associations that are not
-- managed by you. If you use Firewall Manager to manage your DNS
-- Firewalls, then this reports Firewall Manager as the managed owner.
--
-- 'modificationTime', 'firewallRuleGroupAssociation_modificationTime' - The date and time that the association was last modified, in Unix time
-- format and Coordinated Universal Time (UTC).
--
-- 'statusMessage', 'firewallRuleGroupAssociation_statusMessage' - Additional information about the status of the response, if available.
--
-- 'name', 'firewallRuleGroupAssociation_name' - The name of the association.
--
-- 'id', 'firewallRuleGroupAssociation_id' - The identifier for the association.
newFirewallRuleGroupAssociation ::
  FirewallRuleGroupAssociation
newFirewallRuleGroupAssociation :: FirewallRuleGroupAssociation
newFirewallRuleGroupAssociation =
  FirewallRuleGroupAssociation' :: Maybe Text
-> Maybe FirewallRuleGroupAssociationStatus
-> Maybe MutationProtectionStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallRuleGroupAssociation
FirewallRuleGroupAssociation'
    { $sel:creationTime:FirewallRuleGroupAssociation' :: Maybe Text
creationTime =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:FirewallRuleGroupAssociation' :: Maybe FirewallRuleGroupAssociationStatus
status = Maybe FirewallRuleGroupAssociationStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:mutationProtection:FirewallRuleGroupAssociation' :: Maybe MutationProtectionStatus
mutationProtection = Maybe MutationProtectionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: Maybe Text
firewallRuleGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:priority:FirewallRuleGroupAssociation' :: Maybe Int
priority = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:FirewallRuleGroupAssociation' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:FirewallRuleGroupAssociation' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creatorRequestId:FirewallRuleGroupAssociation' :: Maybe Text
creatorRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:managedOwnerName:FirewallRuleGroupAssociation' :: Maybe Text
managedOwnerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:modificationTime:FirewallRuleGroupAssociation' :: Maybe Text
modificationTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:FirewallRuleGroupAssociation' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:FirewallRuleGroupAssociation' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:FirewallRuleGroupAssociation' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time that the association was created, in Unix time format
-- and Coordinated Universal Time (UTC).
firewallRuleGroupAssociation_creationTime :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_creationTime :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_creationTime = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:creationTime:FirewallRuleGroupAssociation' :: Maybe Text
creationTime = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The current status of the association.
firewallRuleGroupAssociation_status :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe FirewallRuleGroupAssociationStatus)
firewallRuleGroupAssociation_status :: (Maybe FirewallRuleGroupAssociationStatus
 -> f (Maybe FirewallRuleGroupAssociationStatus))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_status = (FirewallRuleGroupAssociation
 -> Maybe FirewallRuleGroupAssociationStatus)
-> (FirewallRuleGroupAssociation
    -> Maybe FirewallRuleGroupAssociationStatus
    -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe FirewallRuleGroupAssociationStatus)
     (Maybe FirewallRuleGroupAssociationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe FirewallRuleGroupAssociationStatus
status :: Maybe FirewallRuleGroupAssociationStatus
$sel:status:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation
-> Maybe FirewallRuleGroupAssociationStatus
status} -> Maybe FirewallRuleGroupAssociationStatus
status) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe FirewallRuleGroupAssociationStatus
a -> FirewallRuleGroupAssociation
s {$sel:status:FirewallRuleGroupAssociation' :: Maybe FirewallRuleGroupAssociationStatus
status = Maybe FirewallRuleGroupAssociationStatus
a} :: FirewallRuleGroupAssociation)

-- | If enabled, this setting disallows modification or removal of the
-- association, to help prevent against accidentally altering DNS firewall
-- protections.
firewallRuleGroupAssociation_mutationProtection :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe MutationProtectionStatus)
firewallRuleGroupAssociation_mutationProtection :: (Maybe MutationProtectionStatus
 -> f (Maybe MutationProtectionStatus))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_mutationProtection = (FirewallRuleGroupAssociation -> Maybe MutationProtectionStatus)
-> (FirewallRuleGroupAssociation
    -> Maybe MutationProtectionStatus -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe MutationProtectionStatus)
     (Maybe MutationProtectionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe MutationProtectionStatus
mutationProtection :: Maybe MutationProtectionStatus
$sel:mutationProtection:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe MutationProtectionStatus
mutationProtection} -> Maybe MutationProtectionStatus
mutationProtection) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe MutationProtectionStatus
a -> FirewallRuleGroupAssociation
s {$sel:mutationProtection:FirewallRuleGroupAssociation' :: Maybe MutationProtectionStatus
mutationProtection = Maybe MutationProtectionStatus
a} :: FirewallRuleGroupAssociation)

-- | The unique identifier of the firewall rule group.
firewallRuleGroupAssociation_firewallRuleGroupId :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_firewallRuleGroupId :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_firewallRuleGroupId = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
firewallRuleGroupId :: Maybe Text
$sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
firewallRuleGroupId} -> Maybe Text
firewallRuleGroupId) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: Maybe Text
firewallRuleGroupId = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | 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 rule group with the lowest numeric
-- priority setting.
firewallRuleGroupAssociation_priority :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Int)
firewallRuleGroupAssociation_priority :: (Maybe Int -> f (Maybe Int))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_priority = (FirewallRuleGroupAssociation -> Maybe Int)
-> (FirewallRuleGroupAssociation
    -> Maybe Int -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Int
priority :: Maybe Int
$sel:priority:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Int
priority} -> Maybe Int
priority) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Int
a -> FirewallRuleGroupAssociation
s {$sel:priority:FirewallRuleGroupAssociation' :: Maybe Int
priority = Maybe Int
a} :: FirewallRuleGroupAssociation)

-- | The Amazon Resource Name (ARN) of the firewall rule group association.
firewallRuleGroupAssociation_arn :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_arn :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_arn = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
arn :: Maybe Text
$sel:arn:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
arn} -> Maybe Text
arn) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:arn:FirewallRuleGroupAssociation' :: Maybe Text
arn = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The unique identifier of the VPC that is associated with the rule group.
firewallRuleGroupAssociation_vpcId :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_vpcId :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_vpcId = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:vpcId:FirewallRuleGroupAssociation' :: Maybe Text
vpcId = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | A unique string defined by you to identify the request. This allows you
-- to retry failed requests without the risk of running the operation
-- twice. This can be any unique string, for example, a timestamp.
firewallRuleGroupAssociation_creatorRequestId :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_creatorRequestId = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:creatorRequestId:FirewallRuleGroupAssociation' :: Maybe Text
creatorRequestId = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The owner of the association, used only for associations that are not
-- managed by you. If you use Firewall Manager to manage your DNS
-- Firewalls, then this reports Firewall Manager as the managed owner.
firewallRuleGroupAssociation_managedOwnerName :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_managedOwnerName :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_managedOwnerName = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
managedOwnerName :: Maybe Text
$sel:managedOwnerName:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
managedOwnerName} -> Maybe Text
managedOwnerName) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:managedOwnerName:FirewallRuleGroupAssociation' :: Maybe Text
managedOwnerName = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The date and time that the association was last modified, in Unix time
-- format and Coordinated Universal Time (UTC).
firewallRuleGroupAssociation_modificationTime :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_modificationTime :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_modificationTime = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
modificationTime :: Maybe Text
$sel:modificationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
modificationTime} -> Maybe Text
modificationTime) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:modificationTime:FirewallRuleGroupAssociation' :: Maybe Text
modificationTime = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | Additional information about the status of the response, if available.
firewallRuleGroupAssociation_statusMessage :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_statusMessage :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_statusMessage = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:statusMessage:FirewallRuleGroupAssociation' :: Maybe Text
statusMessage = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The name of the association.
firewallRuleGroupAssociation_name :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_name :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_name = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
name :: Maybe Text
$sel:name:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
name} -> Maybe Text
name) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:name:FirewallRuleGroupAssociation' :: Maybe Text
name = Maybe Text
a} :: FirewallRuleGroupAssociation)

-- | The identifier for the association.
firewallRuleGroupAssociation_id :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_id :: (Maybe Text -> f (Maybe Text))
-> FirewallRuleGroupAssociation -> f FirewallRuleGroupAssociation
firewallRuleGroupAssociation_id = (FirewallRuleGroupAssociation -> Maybe Text)
-> (FirewallRuleGroupAssociation
    -> Maybe Text -> FirewallRuleGroupAssociation)
-> Lens
     FirewallRuleGroupAssociation
     FirewallRuleGroupAssociation
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallRuleGroupAssociation' {Maybe Text
id :: Maybe Text
$sel:id:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
id} -> Maybe Text
id) (\s :: FirewallRuleGroupAssociation
s@FirewallRuleGroupAssociation' {} Maybe Text
a -> FirewallRuleGroupAssociation
s {$sel:id:FirewallRuleGroupAssociation' :: Maybe Text
id = Maybe Text
a} :: FirewallRuleGroupAssociation)

instance Core.FromJSON FirewallRuleGroupAssociation where
  parseJSON :: Value -> Parser FirewallRuleGroupAssociation
parseJSON =
    String
-> (Object -> Parser FirewallRuleGroupAssociation)
-> Value
-> Parser FirewallRuleGroupAssociation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"FirewallRuleGroupAssociation"
      ( \Object
x ->
          Maybe Text
-> Maybe FirewallRuleGroupAssociationStatus
-> Maybe MutationProtectionStatus
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallRuleGroupAssociation
FirewallRuleGroupAssociation'
            (Maybe Text
 -> Maybe FirewallRuleGroupAssociationStatus
 -> Maybe MutationProtectionStatus
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe FirewallRuleGroupAssociationStatus
      -> Maybe MutationProtectionStatus
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
            Parser
  (Maybe FirewallRuleGroupAssociationStatus
   -> Maybe MutationProtectionStatus
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe FirewallRuleGroupAssociationStatus)
-> Parser
     (Maybe MutationProtectionStatus
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FirewallRuleGroupAssociationStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe MutationProtectionStatus
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe MutationProtectionStatus)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MutationProtectionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MutationProtection")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FirewallRuleGroupId")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Priority")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatorRequestId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ManagedOwnerName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ModificationTime")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StatusMessage")
            Parser (Maybe Text -> Maybe Text -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> FirewallRuleGroupAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
            Parser (Maybe Text -> FirewallRuleGroupAssociation)
-> Parser (Maybe Text) -> Parser FirewallRuleGroupAssociation
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
      )

instance
  Prelude.Hashable
    FirewallRuleGroupAssociation

instance Prelude.NFData FirewallRuleGroupAssociation