module Stratosphere.Redshift.EndpointAccess.VpcSecurityGroupProperty (
        VpcSecurityGroupProperty(..), mkVpcSecurityGroupProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcSecurityGroupProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-endpointaccess-vpcsecuritygroup.html>
    VpcSecurityGroupProperty {VpcSecurityGroupProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-endpointaccess-vpcsecuritygroup.html#cfn-redshift-endpointaccess-vpcsecuritygroup-status>
                              VpcSecurityGroupProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-redshift-endpointaccess-vpcsecuritygroup.html#cfn-redshift-endpointaccess-vpcsecuritygroup-vpcsecuritygroupid>
                              VpcSecurityGroupProperty -> Maybe (Value Text)
vpcSecurityGroupId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool
(VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool)
-> (VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool)
-> Eq VpcSecurityGroupProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool
== :: VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool
$c/= :: VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool
/= :: VpcSecurityGroupProperty -> VpcSecurityGroupProperty -> Bool
Prelude.Eq, Int -> VpcSecurityGroupProperty -> ShowS
[VpcSecurityGroupProperty] -> ShowS
VpcSecurityGroupProperty -> String
(Int -> VpcSecurityGroupProperty -> ShowS)
-> (VpcSecurityGroupProperty -> String)
-> ([VpcSecurityGroupProperty] -> ShowS)
-> Show VpcSecurityGroupProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcSecurityGroupProperty -> ShowS
showsPrec :: Int -> VpcSecurityGroupProperty -> ShowS
$cshow :: VpcSecurityGroupProperty -> String
show :: VpcSecurityGroupProperty -> String
$cshowList :: [VpcSecurityGroupProperty] -> ShowS
showList :: [VpcSecurityGroupProperty] -> ShowS
Prelude.Show)
mkVpcSecurityGroupProperty :: VpcSecurityGroupProperty
mkVpcSecurityGroupProperty :: VpcSecurityGroupProperty
mkVpcSecurityGroupProperty
  = VpcSecurityGroupProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       vpcSecurityGroupId :: Maybe (Value Text)
vpcSecurityGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcSecurityGroupProperty where
  toResourceProperties :: VpcSecurityGroupProperty -> ResourceProperties
toResourceProperties VpcSecurityGroupProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcSecurityGroupProperty -> ()
status :: VpcSecurityGroupProperty -> Maybe (Value Text)
vpcSecurityGroupId :: VpcSecurityGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
vpcSecurityGroupId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Redshift::EndpointAccess.VpcSecurityGroup",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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 -> 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
"Status" (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)
status,
                            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
"VpcSecurityGroupId" (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)
vpcSecurityGroupId])}
instance JSON.ToJSON VpcSecurityGroupProperty where
  toJSON :: VpcSecurityGroupProperty -> Value
toJSON VpcSecurityGroupProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcSecurityGroupProperty -> ()
status :: VpcSecurityGroupProperty -> Maybe (Value Text)
vpcSecurityGroupId :: VpcSecurityGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
vpcSecurityGroupId :: 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 -> 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
"Status" (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)
status,
               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
"VpcSecurityGroupId" (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)
vpcSecurityGroupId]))
instance Property "Status" VpcSecurityGroupProperty where
  type PropertyType "Status" VpcSecurityGroupProperty = Value Prelude.Text
  set :: PropertyType "Status" VpcSecurityGroupProperty
-> VpcSecurityGroupProperty -> VpcSecurityGroupProperty
set PropertyType "Status" VpcSecurityGroupProperty
newValue VpcSecurityGroupProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcSecurityGroupProperty -> ()
status :: VpcSecurityGroupProperty -> Maybe (Value Text)
vpcSecurityGroupId :: VpcSecurityGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
vpcSecurityGroupId :: Maybe (Value Text)
..}
    = VpcSecurityGroupProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" VpcSecurityGroupProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
vpcSecurityGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
vpcSecurityGroupId :: Maybe (Value Text)
..}
instance Property "VpcSecurityGroupId" VpcSecurityGroupProperty where
  type PropertyType "VpcSecurityGroupId" VpcSecurityGroupProperty = Value Prelude.Text
  set :: PropertyType "VpcSecurityGroupId" VpcSecurityGroupProperty
-> VpcSecurityGroupProperty -> VpcSecurityGroupProperty
set PropertyType "VpcSecurityGroupId" VpcSecurityGroupProperty
newValue VpcSecurityGroupProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcSecurityGroupProperty -> ()
status :: VpcSecurityGroupProperty -> Maybe (Value Text)
vpcSecurityGroupId :: VpcSecurityGroupProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
vpcSecurityGroupId :: Maybe (Value Text)
..}
    = VpcSecurityGroupProperty
        {vpcSecurityGroupId :: Maybe (Value Text)
vpcSecurityGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcSecurityGroupId" VpcSecurityGroupProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}