module Stratosphere.EC2.SubnetNetworkAclAssociation (
        SubnetNetworkAclAssociation(..), mkSubnetNetworkAclAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubnetNetworkAclAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetnetworkaclassociation.html>
    SubnetNetworkAclAssociation {SubnetNetworkAclAssociation -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetnetworkaclassociation.html#cfn-ec2-subnetnetworkaclassociation-networkaclid>
                                 SubnetNetworkAclAssociation -> Value Text
networkAclId :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetnetworkaclassociation.html#cfn-ec2-subnetnetworkaclassociation-subnetid>
                                 SubnetNetworkAclAssociation -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation -> Bool
(SubnetNetworkAclAssociation
 -> SubnetNetworkAclAssociation -> Bool)
-> (SubnetNetworkAclAssociation
    -> SubnetNetworkAclAssociation -> Bool)
-> Eq SubnetNetworkAclAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation -> Bool
== :: SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation -> Bool
$c/= :: SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation -> Bool
/= :: SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation -> Bool
Prelude.Eq, Int -> SubnetNetworkAclAssociation -> ShowS
[SubnetNetworkAclAssociation] -> ShowS
SubnetNetworkAclAssociation -> String
(Int -> SubnetNetworkAclAssociation -> ShowS)
-> (SubnetNetworkAclAssociation -> String)
-> ([SubnetNetworkAclAssociation] -> ShowS)
-> Show SubnetNetworkAclAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubnetNetworkAclAssociation -> ShowS
showsPrec :: Int -> SubnetNetworkAclAssociation -> ShowS
$cshow :: SubnetNetworkAclAssociation -> String
show :: SubnetNetworkAclAssociation -> String
$cshowList :: [SubnetNetworkAclAssociation] -> ShowS
showList :: [SubnetNetworkAclAssociation] -> ShowS
Prelude.Show)
mkSubnetNetworkAclAssociation ::
  Value Prelude.Text
  -> Value Prelude.Text -> SubnetNetworkAclAssociation
mkSubnetNetworkAclAssociation :: Value Text -> Value Text -> SubnetNetworkAclAssociation
mkSubnetNetworkAclAssociation Value Text
networkAclId Value Text
subnetId
  = SubnetNetworkAclAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (), networkAclId :: Value Text
networkAclId = Value Text
networkAclId,
       subnetId :: Value Text
subnetId = Value Text
subnetId}
instance ToResourceProperties SubnetNetworkAclAssociation where
  toResourceProperties :: SubnetNetworkAclAssociation -> ResourceProperties
toResourceProperties SubnetNetworkAclAssociation {()
Value Text
haddock_workaround_ :: SubnetNetworkAclAssociation -> ()
networkAclId :: SubnetNetworkAclAssociation -> Value Text
subnetId :: SubnetNetworkAclAssociation -> Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::SubnetNetworkAclAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"NetworkAclId" 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
networkAclId,
                       Key
"SubnetId" 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
subnetId]}
instance JSON.ToJSON SubnetNetworkAclAssociation where
  toJSON :: SubnetNetworkAclAssociation -> Value
toJSON SubnetNetworkAclAssociation {()
Value Text
haddock_workaround_ :: SubnetNetworkAclAssociation -> ()
networkAclId :: SubnetNetworkAclAssociation -> Value Text
subnetId :: SubnetNetworkAclAssociation -> Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
subnetId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"NetworkAclId" 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
networkAclId, Key
"SubnetId" 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
subnetId]
instance Property "NetworkAclId" SubnetNetworkAclAssociation where
  type PropertyType "NetworkAclId" SubnetNetworkAclAssociation = Value Prelude.Text
  set :: PropertyType "NetworkAclId" SubnetNetworkAclAssociation
-> SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation
set PropertyType "NetworkAclId" SubnetNetworkAclAssociation
newValue SubnetNetworkAclAssociation {()
Value Text
haddock_workaround_ :: SubnetNetworkAclAssociation -> ()
networkAclId :: SubnetNetworkAclAssociation -> Value Text
subnetId :: SubnetNetworkAclAssociation -> Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
subnetId :: Value Text
..}
    = SubnetNetworkAclAssociation {networkAclId :: Value Text
networkAclId = PropertyType "NetworkAclId" SubnetNetworkAclAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
..}
instance Property "SubnetId" SubnetNetworkAclAssociation where
  type PropertyType "SubnetId" SubnetNetworkAclAssociation = Value Prelude.Text
  set :: PropertyType "SubnetId" SubnetNetworkAclAssociation
-> SubnetNetworkAclAssociation -> SubnetNetworkAclAssociation
set PropertyType "SubnetId" SubnetNetworkAclAssociation
newValue SubnetNetworkAclAssociation {()
Value Text
haddock_workaround_ :: SubnetNetworkAclAssociation -> ()
networkAclId :: SubnetNetworkAclAssociation -> Value Text
subnetId :: SubnetNetworkAclAssociation -> Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
subnetId :: Value Text
..}
    = SubnetNetworkAclAssociation {subnetId :: Value Text
subnetId = PropertyType "SubnetId" SubnetNetworkAclAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
haddock_workaround_ :: ()
networkAclId :: Value Text
..}