module Stratosphere.NetworkFirewall.VpcEndpointAssociation (
        module Exports, VpcEndpointAssociation(..),
        mkVpcEndpointAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.NetworkFirewall.VpcEndpointAssociation.SubnetMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data VpcEndpointAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html>
    VpcEndpointAssociation {VpcEndpointAssociation -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html#cfn-networkfirewall-vpcendpointassociation-description>
                            VpcEndpointAssociation -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html#cfn-networkfirewall-vpcendpointassociation-firewallarn>
                            VpcEndpointAssociation -> Value Text
firewallArn :: (Value Prelude.Text),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html#cfn-networkfirewall-vpcendpointassociation-subnetmapping>
                            VpcEndpointAssociation -> SubnetMappingProperty
subnetMapping :: SubnetMappingProperty,
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html#cfn-networkfirewall-vpcendpointassociation-tags>
                            VpcEndpointAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-vpcendpointassociation.html#cfn-networkfirewall-vpcendpointassociation-vpcid>
                            VpcEndpointAssociation -> Value Text
vpcId :: (Value Prelude.Text)}
  deriving stock (VpcEndpointAssociation -> VpcEndpointAssociation -> Bool
(VpcEndpointAssociation -> VpcEndpointAssociation -> Bool)
-> (VpcEndpointAssociation -> VpcEndpointAssociation -> Bool)
-> Eq VpcEndpointAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcEndpointAssociation -> VpcEndpointAssociation -> Bool
== :: VpcEndpointAssociation -> VpcEndpointAssociation -> Bool
$c/= :: VpcEndpointAssociation -> VpcEndpointAssociation -> Bool
/= :: VpcEndpointAssociation -> VpcEndpointAssociation -> Bool
Prelude.Eq, Int -> VpcEndpointAssociation -> ShowS
[VpcEndpointAssociation] -> ShowS
VpcEndpointAssociation -> String
(Int -> VpcEndpointAssociation -> ShowS)
-> (VpcEndpointAssociation -> String)
-> ([VpcEndpointAssociation] -> ShowS)
-> Show VpcEndpointAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcEndpointAssociation -> ShowS
showsPrec :: Int -> VpcEndpointAssociation -> ShowS
$cshow :: VpcEndpointAssociation -> String
show :: VpcEndpointAssociation -> String
$cshowList :: [VpcEndpointAssociation] -> ShowS
showList :: [VpcEndpointAssociation] -> ShowS
Prelude.Show)
mkVpcEndpointAssociation ::
  Value Prelude.Text
  -> SubnetMappingProperty
     -> Value Prelude.Text -> VpcEndpointAssociation
mkVpcEndpointAssociation :: Value Text
-> SubnetMappingProperty -> Value Text -> VpcEndpointAssociation
mkVpcEndpointAssociation Value Text
firewallArn SubnetMappingProperty
subnetMapping Value Text
vpcId
  = VpcEndpointAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (), firewallArn :: Value Text
firewallArn = Value Text
firewallArn,
       subnetMapping :: SubnetMappingProperty
subnetMapping = SubnetMappingProperty
subnetMapping, vpcId :: Value Text
vpcId = Value Text
vpcId,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcEndpointAssociation where
  toResourceProperties :: VpcEndpointAssociation -> ResourceProperties
toResourceProperties VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkFirewall::VpcEndpointAssociation",
         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
"FirewallArn" 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
firewallArn,
                            Key
"SubnetMapping" Key -> SubnetMappingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SubnetMappingProperty
subnetMapping, 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
"Description" (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)
description,
                               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 VpcEndpointAssociation where
  toJSON :: VpcEndpointAssociation -> Value
toJSON VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
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
"FirewallArn" 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
firewallArn,
               Key
"SubnetMapping" Key -> SubnetMappingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SubnetMappingProperty
subnetMapping, 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
"Description" (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)
description,
                  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 "Description" VpcEndpointAssociation where
  type PropertyType "Description" VpcEndpointAssociation = Value Prelude.Text
  set :: PropertyType "Description" VpcEndpointAssociation
-> VpcEndpointAssociation -> VpcEndpointAssociation
set PropertyType "Description" VpcEndpointAssociation
newValue VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = VpcEndpointAssociation {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" VpcEndpointAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: ()
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "FirewallArn" VpcEndpointAssociation where
  type PropertyType "FirewallArn" VpcEndpointAssociation = Value Prelude.Text
  set :: PropertyType "FirewallArn" VpcEndpointAssociation
-> VpcEndpointAssociation -> VpcEndpointAssociation
set PropertyType "FirewallArn" VpcEndpointAssociation
newValue VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = VpcEndpointAssociation {firewallArn :: Value Text
firewallArn = PropertyType "FirewallArn" VpcEndpointAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "SubnetMapping" VpcEndpointAssociation where
  type PropertyType "SubnetMapping" VpcEndpointAssociation = SubnetMappingProperty
  set :: PropertyType "SubnetMapping" VpcEndpointAssociation
-> VpcEndpointAssociation -> VpcEndpointAssociation
set PropertyType "SubnetMapping" VpcEndpointAssociation
newValue VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = VpcEndpointAssociation {subnetMapping :: SubnetMappingProperty
subnetMapping = PropertyType "SubnetMapping" VpcEndpointAssociation
SubnetMappingProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Tags" VpcEndpointAssociation where
  type PropertyType "Tags" VpcEndpointAssociation = [Tag]
  set :: PropertyType "Tags" VpcEndpointAssociation
-> VpcEndpointAssociation -> VpcEndpointAssociation
set PropertyType "Tags" VpcEndpointAssociation
newValue VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = VpcEndpointAssociation {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" VpcEndpointAssociation
newValue, Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
vpcId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
vpcId :: Value Text
..}
instance Property "VpcId" VpcEndpointAssociation where
  type PropertyType "VpcId" VpcEndpointAssociation = Value Prelude.Text
  set :: PropertyType "VpcId" VpcEndpointAssociation
-> VpcEndpointAssociation -> VpcEndpointAssociation
set PropertyType "VpcId" VpcEndpointAssociation
newValue VpcEndpointAssociation {Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: VpcEndpointAssociation -> ()
description :: VpcEndpointAssociation -> Maybe (Value Text)
firewallArn :: VpcEndpointAssociation -> Value Text
subnetMapping :: VpcEndpointAssociation -> SubnetMappingProperty
tags :: VpcEndpointAssociation -> Maybe [Tag]
vpcId :: VpcEndpointAssociation -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = VpcEndpointAssociation {vpcId :: Value Text
vpcId = PropertyType "VpcId" VpcEndpointAssociation
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
SubnetMappingProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
firewallArn :: Value Text
subnetMapping :: SubnetMappingProperty
tags :: Maybe [Tag]
..}