module Stratosphere.Route53Resolver.FirewallRuleGroupAssociation (
FirewallRuleGroupAssociation(..), mkFirewallRuleGroupAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data FirewallRuleGroupAssociation
=
FirewallRuleGroupAssociation {FirewallRuleGroupAssociation -> ()
haddock_workaround_ :: (),
FirewallRuleGroupAssociation -> Value Text
firewallRuleGroupId :: (Value Prelude.Text),
FirewallRuleGroupAssociation -> Maybe (Value Text)
mutationProtection :: (Prelude.Maybe (Value Prelude.Text)),
FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
FirewallRuleGroupAssociation -> Value Integer
priority :: (Value Prelude.Integer),
FirewallRuleGroupAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
FirewallRuleGroupAssociation -> Value Text
vpcId :: (Value Prelude.Text)}
deriving stock (FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
(FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool)
-> (FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool)
-> Eq FirewallRuleGroupAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
== :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
$c/= :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
/= :: FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> Bool
Prelude.Eq, 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
$cshowsPrec :: Int -> FirewallRuleGroupAssociation -> ShowS
showsPrec :: Int -> FirewallRuleGroupAssociation -> ShowS
$cshow :: FirewallRuleGroupAssociation -> String
show :: FirewallRuleGroupAssociation -> String
$cshowList :: [FirewallRuleGroupAssociation] -> ShowS
showList :: [FirewallRuleGroupAssociation] -> ShowS
Prelude.Show)
mkFirewallRuleGroupAssociation ::
Value Prelude.Text
-> Value Prelude.Integer
-> Value Prelude.Text -> FirewallRuleGroupAssociation
mkFirewallRuleGroupAssociation :: Value Text
-> Value Integer -> Value Text -> FirewallRuleGroupAssociation
mkFirewallRuleGroupAssociation Value Text
firewallRuleGroupId Value Integer
priority Value Text
vpcId
= FirewallRuleGroupAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (),
firewallRuleGroupId :: Value Text
firewallRuleGroupId = Value Text
firewallRuleGroupId, priority :: Value Integer
priority = Value Integer
priority,
vpcId :: Value Text
vpcId = Value Text
vpcId, mutationProtection :: Maybe (Value Text)
mutationProtection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FirewallRuleGroupAssociation where
toResourceProperties :: FirewallRuleGroupAssociation -> ResourceProperties
toResourceProperties FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53Resolver::FirewallRuleGroupAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FirewallRuleGroupId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
firewallRuleGroupId,
Key
"Priority" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
priority, Key
"VpcId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutationProtection" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
mutationProtection,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON FirewallRuleGroupAssociation where
toJSON :: FirewallRuleGroupAssociation -> Value
toJSON FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FirewallRuleGroupId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
firewallRuleGroupId,
Key
"Priority" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
priority, Key
"VpcId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
vpcId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutationProtection" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
mutationProtection,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "FirewallRuleGroupId" FirewallRuleGroupAssociation where
type PropertyType "FirewallRuleGroupId" FirewallRuleGroupAssociation = Value Prelude.Text
set :: PropertyType "FirewallRuleGroupId" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "FirewallRuleGroupId" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation {firewallRuleGroupId :: Value Text
firewallRuleGroupId = PropertyType "FirewallRuleGroupId" FirewallRuleGroupAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "MutationProtection" FirewallRuleGroupAssociation where
type PropertyType "MutationProtection" FirewallRuleGroupAssociation = Value Prelude.Text
set :: PropertyType "MutationProtection" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "MutationProtection" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation
{mutationProtection :: Maybe (Value Text)
mutationProtection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MutationProtection" FirewallRuleGroupAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Name" FirewallRuleGroupAssociation where
type PropertyType "Name" FirewallRuleGroupAssociation = Value Prelude.Text
set :: PropertyType "Name" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "Name" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" FirewallRuleGroupAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Priority" FirewallRuleGroupAssociation where
type PropertyType "Priority" FirewallRuleGroupAssociation = Value Prelude.Integer
set :: PropertyType "Priority" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "Priority" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation {priority :: Value Integer
priority = PropertyType "Priority" FirewallRuleGroupAssociation
Value Integer
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Tags" FirewallRuleGroupAssociation where
type PropertyType "Tags" FirewallRuleGroupAssociation = [Tag]
set :: PropertyType "Tags" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "Tags" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" FirewallRuleGroupAssociation
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
vpcId :: Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
vpcId :: Value Text
..}
instance Property "VpcId" FirewallRuleGroupAssociation where
type PropertyType "VpcId" FirewallRuleGroupAssociation = Value Prelude.Text
set :: PropertyType "VpcId" FirewallRuleGroupAssociation
-> FirewallRuleGroupAssociation -> FirewallRuleGroupAssociation
set PropertyType "VpcId" FirewallRuleGroupAssociation
newValue FirewallRuleGroupAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: FirewallRuleGroupAssociation -> ()
firewallRuleGroupId :: FirewallRuleGroupAssociation -> Value Text
mutationProtection :: FirewallRuleGroupAssociation -> Maybe (Value Text)
name :: FirewallRuleGroupAssociation -> Maybe (Value Text)
priority :: FirewallRuleGroupAssociation -> Value Integer
tags :: FirewallRuleGroupAssociation -> Maybe [Tag]
vpcId :: FirewallRuleGroupAssociation -> Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
vpcId :: Value Text
..}
= FirewallRuleGroupAssociation {vpcId :: Value Text
vpcId = PropertyType "VpcId" FirewallRuleGroupAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
haddock_workaround_ :: ()
firewallRuleGroupId :: Value Text
mutationProtection :: Maybe (Value Text)
name :: Maybe (Value Text)
priority :: Value Integer
tags :: Maybe [Tag]
..}