{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53Resolver.Types.FirewallRuleGroupAssociation 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 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 Amazon Resource Name (ARN) of the firewall rule group association.
    FirewallRuleGroupAssociation -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | 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,
    -- | 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 unique identifier of the firewall rule group.
    FirewallRuleGroupAssociation -> Maybe Text
firewallRuleGroupId :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the association.
    FirewallRuleGroupAssociation -> Maybe Text
id :: 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,
    -- | 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 name of the association.
    FirewallRuleGroupAssociation -> Maybe Text
name :: 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 current status of the association.
    FirewallRuleGroupAssociation
-> Maybe FirewallRuleGroupAssociationStatus
status :: Prelude.Maybe FirewallRuleGroupAssociationStatus,
    -- | Additional information about the status of the response, if available.
    FirewallRuleGroupAssociation -> Maybe Text
statusMessage :: 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
  }
  deriving (FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
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]
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
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.
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:
--
-- 'arn', 'firewallRuleGroupAssociation_arn' - The Amazon Resource Name (ARN) of the firewall rule group association.
--
-- 'creationTime', 'firewallRuleGroupAssociation_creationTime' - The date and time that the association was created, in Unix time format
-- and Coordinated Universal Time (UTC).
--
-- '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.
--
-- 'firewallRuleGroupId', 'firewallRuleGroupAssociation_firewallRuleGroupId' - The unique identifier of the firewall rule group.
--
-- 'id', 'firewallRuleGroupAssociation_id' - The identifier for the association.
--
-- '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).
--
-- 'mutationProtection', 'firewallRuleGroupAssociation_mutationProtection' - If enabled, this setting disallows modification or removal of the
-- association, to help prevent against accidentally altering DNS firewall
-- protections.
--
-- 'name', 'firewallRuleGroupAssociation_name' - The name of the association.
--
-- '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.
--
-- 'status', 'firewallRuleGroupAssociation_status' - The current status of the association.
--
-- 'statusMessage', 'firewallRuleGroupAssociation_statusMessage' - Additional information about the status of the response, if available.
--
-- 'vpcId', 'firewallRuleGroupAssociation_vpcId' - The unique identifier of the VPC that is associated with the rule group.
newFirewallRuleGroupAssociation ::
  FirewallRuleGroupAssociation
newFirewallRuleGroupAssociation :: FirewallRuleGroupAssociation
newFirewallRuleGroupAssociation =
  FirewallRuleGroupAssociation'
    { $sel:arn:FirewallRuleGroupAssociation' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:FirewallRuleGroupAssociation' :: Maybe Text
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:creatorRequestId:FirewallRuleGroupAssociation' :: Maybe Text
creatorRequestId = forall a. Maybe a
Prelude.Nothing,
      $sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: Maybe Text
firewallRuleGroupId = forall a. Maybe a
Prelude.Nothing,
      $sel:id:FirewallRuleGroupAssociation' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:managedOwnerName:FirewallRuleGroupAssociation' :: Maybe Text
managedOwnerName = forall a. Maybe a
Prelude.Nothing,
      $sel:modificationTime:FirewallRuleGroupAssociation' :: Maybe Text
modificationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:mutationProtection:FirewallRuleGroupAssociation' :: Maybe MutationProtectionStatus
mutationProtection = forall a. Maybe a
Prelude.Nothing,
      $sel:name:FirewallRuleGroupAssociation' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:priority:FirewallRuleGroupAssociation' :: Maybe Int
priority = forall a. Maybe a
Prelude.Nothing,
      $sel:status:FirewallRuleGroupAssociation' :: Maybe FirewallRuleGroupAssociationStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:FirewallRuleGroupAssociation' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:FirewallRuleGroupAssociation' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the firewall rule group association.
firewallRuleGroupAssociation_arn :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_arn :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_arn = 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 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 :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_creationTime = 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)

-- | 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 :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_creatorRequestId = 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 unique identifier of the firewall rule group.
firewallRuleGroupAssociation_firewallRuleGroupId :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_firewallRuleGroupId :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_firewallRuleGroupId = 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 identifier for the association.
firewallRuleGroupAssociation_id :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_id :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_id = 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)

-- | 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 :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_managedOwnerName = 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 :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_modificationTime = 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)

-- | 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 :: Lens' FirewallRuleGroupAssociation (Maybe MutationProtectionStatus)
firewallRuleGroupAssociation_mutationProtection = 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 name of the association.
firewallRuleGroupAssociation_name :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_name :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_name = 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 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 :: Lens' FirewallRuleGroupAssociation (Maybe Int)
firewallRuleGroupAssociation_priority = 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 current status of the association.
firewallRuleGroupAssociation_status :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe FirewallRuleGroupAssociationStatus)
firewallRuleGroupAssociation_status :: Lens'
  FirewallRuleGroupAssociation
  (Maybe FirewallRuleGroupAssociationStatus)
firewallRuleGroupAssociation_status = 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)

-- | Additional information about the status of the response, if available.
firewallRuleGroupAssociation_statusMessage :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_statusMessage :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_statusMessage = 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 unique identifier of the VPC that is associated with the rule group.
firewallRuleGroupAssociation_vpcId :: Lens.Lens' FirewallRuleGroupAssociation (Prelude.Maybe Prelude.Text)
firewallRuleGroupAssociation_vpcId :: Lens' FirewallRuleGroupAssociation (Maybe Text)
firewallRuleGroupAssociation_vpcId = 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)

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

instance
  Prelude.Hashable
    FirewallRuleGroupAssociation
  where
  hashWithSalt :: Int -> FirewallRuleGroupAssociation -> Int
hashWithSalt Int
_salt FirewallRuleGroupAssociation' {Maybe Int
Maybe Text
Maybe FirewallRuleGroupAssociationStatus
Maybe MutationProtectionStatus
vpcId :: Maybe Text
statusMessage :: Maybe Text
status :: Maybe FirewallRuleGroupAssociationStatus
priority :: Maybe Int
name :: Maybe Text
mutationProtection :: Maybe MutationProtectionStatus
modificationTime :: Maybe Text
managedOwnerName :: Maybe Text
id :: Maybe Text
firewallRuleGroupId :: Maybe Text
creatorRequestId :: Maybe Text
creationTime :: Maybe Text
arn :: Maybe Text
$sel:vpcId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:statusMessage:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:status:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation
-> Maybe FirewallRuleGroupAssociationStatus
$sel:priority:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Int
$sel:name:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:mutationProtection:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe MutationProtectionStatus
$sel:modificationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:managedOwnerName:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:id:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:creatorRequestId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:creationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:arn:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creatorRequestId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
firewallRuleGroupId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
managedOwnerName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
modificationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MutationProtectionStatus
mutationProtection
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
priority
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FirewallRuleGroupAssociationStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId

instance Prelude.NFData FirewallRuleGroupAssociation where
  rnf :: FirewallRuleGroupAssociation -> ()
rnf FirewallRuleGroupAssociation' {Maybe Int
Maybe Text
Maybe FirewallRuleGroupAssociationStatus
Maybe MutationProtectionStatus
vpcId :: Maybe Text
statusMessage :: Maybe Text
status :: Maybe FirewallRuleGroupAssociationStatus
priority :: Maybe Int
name :: Maybe Text
mutationProtection :: Maybe MutationProtectionStatus
modificationTime :: Maybe Text
managedOwnerName :: Maybe Text
id :: Maybe Text
firewallRuleGroupId :: Maybe Text
creatorRequestId :: Maybe Text
creationTime :: Maybe Text
arn :: Maybe Text
$sel:vpcId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:statusMessage:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:status:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation
-> Maybe FirewallRuleGroupAssociationStatus
$sel:priority:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Int
$sel:name:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:mutationProtection:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe MutationProtectionStatus
$sel:modificationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:managedOwnerName:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:id:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:firewallRuleGroupId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:creatorRequestId:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:creationTime:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
$sel:arn:FirewallRuleGroupAssociation' :: FirewallRuleGroupAssociation -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creatorRequestId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
firewallRuleGroupId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
managedOwnerName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
modificationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MutationProtectionStatus
mutationProtection
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
priority
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FirewallRuleGroupAssociationStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId