module Stratosphere.VpcLattice.ServiceNetworkVpcAssociation (
        ServiceNetworkVpcAssociation(..), mkServiceNetworkVpcAssociation
    ) 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 ServiceNetworkVpcAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html>
    ServiceNetworkVpcAssociation {ServiceNetworkVpcAssociation -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-securitygroupids>
                                  ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-servicenetworkidentifier>
                                  ServiceNetworkVpcAssociation -> Maybe (Value Text)
serviceNetworkIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-tags>
                                  ServiceNetworkVpcAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-servicenetworkvpcassociation.html#cfn-vpclattice-servicenetworkvpcassociation-vpcidentifier>
                                  ServiceNetworkVpcAssociation -> Maybe (Value Text)
vpcIdentifier :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> Bool
(ServiceNetworkVpcAssociation
 -> ServiceNetworkVpcAssociation -> Bool)
-> (ServiceNetworkVpcAssociation
    -> ServiceNetworkVpcAssociation -> Bool)
-> Eq ServiceNetworkVpcAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> Bool
== :: ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> Bool
$c/= :: ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> Bool
/= :: ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> Bool
Prelude.Eq, Int -> ServiceNetworkVpcAssociation -> ShowS
[ServiceNetworkVpcAssociation] -> ShowS
ServiceNetworkVpcAssociation -> String
(Int -> ServiceNetworkVpcAssociation -> ShowS)
-> (ServiceNetworkVpcAssociation -> String)
-> ([ServiceNetworkVpcAssociation] -> ShowS)
-> Show ServiceNetworkVpcAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceNetworkVpcAssociation -> ShowS
showsPrec :: Int -> ServiceNetworkVpcAssociation -> ShowS
$cshow :: ServiceNetworkVpcAssociation -> String
show :: ServiceNetworkVpcAssociation -> String
$cshowList :: [ServiceNetworkVpcAssociation] -> ShowS
showList :: [ServiceNetworkVpcAssociation] -> ShowS
Prelude.Show)
mkServiceNetworkVpcAssociation :: ServiceNetworkVpcAssociation
mkServiceNetworkVpcAssociation :: ServiceNetworkVpcAssociation
mkServiceNetworkVpcAssociation
  = ServiceNetworkVpcAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       serviceNetworkIdentifier :: Maybe (Value Text)
serviceNetworkIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
       vpcIdentifier :: Maybe (Value Text)
vpcIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceNetworkVpcAssociation where
  toResourceProperties :: ServiceNetworkVpcAssociation -> ResourceProperties
toResourceProperties ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::VpcLattice::ServiceNetworkVpcAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> ValueList 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
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
                            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
"ServiceNetworkIdentifier"
                              (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)
serviceNetworkIdentifier,
                            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,
                            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
"VpcIdentifier" (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)
vpcIdentifier])}
instance JSON.ToJSON ServiceNetworkVpcAssociation where
  toJSON :: ServiceNetworkVpcAssociation -> Value
toJSON ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> ValueList 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
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
               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
"ServiceNetworkIdentifier"
                 (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)
serviceNetworkIdentifier,
               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,
               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
"VpcIdentifier" (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)
vpcIdentifier]))
instance Property "SecurityGroupIds" ServiceNetworkVpcAssociation where
  type PropertyType "SecurityGroupIds" ServiceNetworkVpcAssociation = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> ServiceNetworkVpcAssociation
set PropertyType "SecurityGroupIds" ServiceNetworkVpcAssociation
newValue ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = ServiceNetworkVpcAssociation
        {securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" ServiceNetworkVpcAssociation
ValueList Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
instance Property "ServiceNetworkIdentifier" ServiceNetworkVpcAssociation where
  type PropertyType "ServiceNetworkIdentifier" ServiceNetworkVpcAssociation = Value Prelude.Text
  set :: PropertyType
  "ServiceNetworkIdentifier" ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> ServiceNetworkVpcAssociation
set PropertyType
  "ServiceNetworkIdentifier" ServiceNetworkVpcAssociation
newValue ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = ServiceNetworkVpcAssociation
        {serviceNetworkIdentifier :: Maybe (Value Text)
serviceNetworkIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ServiceNetworkIdentifier" ServiceNetworkVpcAssociation
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
instance Property "Tags" ServiceNetworkVpcAssociation where
  type PropertyType "Tags" ServiceNetworkVpcAssociation = [Tag]
  set :: PropertyType "Tags" ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> ServiceNetworkVpcAssociation
set PropertyType "Tags" ServiceNetworkVpcAssociation
newValue ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = ServiceNetworkVpcAssociation {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" ServiceNetworkVpcAssociation
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
vpcIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
vpcIdentifier :: Maybe (Value Text)
..}
instance Property "VpcIdentifier" ServiceNetworkVpcAssociation where
  type PropertyType "VpcIdentifier" ServiceNetworkVpcAssociation = Value Prelude.Text
  set :: PropertyType "VpcIdentifier" ServiceNetworkVpcAssociation
-> ServiceNetworkVpcAssociation -> ServiceNetworkVpcAssociation
set PropertyType "VpcIdentifier" ServiceNetworkVpcAssociation
newValue ServiceNetworkVpcAssociation {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ServiceNetworkVpcAssociation -> ()
securityGroupIds :: ServiceNetworkVpcAssociation -> Maybe (ValueList Text)
serviceNetworkIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
tags :: ServiceNetworkVpcAssociation -> Maybe [Tag]
vpcIdentifier :: ServiceNetworkVpcAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
vpcIdentifier :: Maybe (Value Text)
..}
    = ServiceNetworkVpcAssociation
        {vpcIdentifier :: Maybe (Value Text)
vpcIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcIdentifier" ServiceNetworkVpcAssociation
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
serviceNetworkIdentifier :: Maybe (Value Text)
tags :: Maybe [Tag]
..}