module Stratosphere.EVS.Environment.HostInfoForCreateProperty (
        HostInfoForCreateProperty(..), mkHostInfoForCreateProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HostInfoForCreateProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html>
    HostInfoForCreateProperty {HostInfoForCreateProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html#cfn-evs-environment-hostinfoforcreate-dedicatedhostid>
                               HostInfoForCreateProperty -> Maybe (Value Text)
dedicatedHostId :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html#cfn-evs-environment-hostinfoforcreate-hostname>
                               HostInfoForCreateProperty -> Value Text
hostName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html#cfn-evs-environment-hostinfoforcreate-instancetype>
                               HostInfoForCreateProperty -> Value Text
instanceType :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html#cfn-evs-environment-hostinfoforcreate-keyname>
                               HostInfoForCreateProperty -> Value Text
keyName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evs-environment-hostinfoforcreate.html#cfn-evs-environment-hostinfoforcreate-placementgroupid>
                               HostInfoForCreateProperty -> Maybe (Value Text)
placementGroupId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool
(HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool)
-> (HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool)
-> Eq HostInfoForCreateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool
== :: HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool
$c/= :: HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool
/= :: HostInfoForCreateProperty -> HostInfoForCreateProperty -> Bool
Prelude.Eq, Int -> HostInfoForCreateProperty -> ShowS
[HostInfoForCreateProperty] -> ShowS
HostInfoForCreateProperty -> String
(Int -> HostInfoForCreateProperty -> ShowS)
-> (HostInfoForCreateProperty -> String)
-> ([HostInfoForCreateProperty] -> ShowS)
-> Show HostInfoForCreateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HostInfoForCreateProperty -> ShowS
showsPrec :: Int -> HostInfoForCreateProperty -> ShowS
$cshow :: HostInfoForCreateProperty -> String
show :: HostInfoForCreateProperty -> String
$cshowList :: [HostInfoForCreateProperty] -> ShowS
showList :: [HostInfoForCreateProperty] -> ShowS
Prelude.Show)
mkHostInfoForCreateProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> HostInfoForCreateProperty
mkHostInfoForCreateProperty :: Value Text -> Value Text -> Value Text -> HostInfoForCreateProperty
mkHostInfoForCreateProperty Value Text
hostName Value Text
instanceType Value Text
keyName
  = HostInfoForCreateProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), hostName :: Value Text
hostName = Value Text
hostName,
       instanceType :: Value Text
instanceType = Value Text
instanceType, keyName :: Value Text
keyName = Value Text
keyName,
       dedicatedHostId :: Maybe (Value Text)
dedicatedHostId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       placementGroupId :: Maybe (Value Text)
placementGroupId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HostInfoForCreateProperty where
  toResourceProperties :: HostInfoForCreateProperty -> ResourceProperties
toResourceProperties HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EVS::Environment.HostInfoForCreate",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"HostName" 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
hostName, Key
"InstanceType" 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
instanceType,
                            Key
"KeyName" 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
keyName]
                           ([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
"DedicatedHostId" (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)
dedicatedHostId,
                               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
"PlacementGroupId" (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)
placementGroupId]))}
instance JSON.ToJSON HostInfoForCreateProperty where
  toJSON :: HostInfoForCreateProperty -> Value
toJSON HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (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
"HostName" 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
hostName, Key
"InstanceType" 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
instanceType,
               Key
"KeyName" 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
keyName]
              ([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
"DedicatedHostId" (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)
dedicatedHostId,
                  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
"PlacementGroupId" (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)
placementGroupId])))
instance Property "DedicatedHostId" HostInfoForCreateProperty where
  type PropertyType "DedicatedHostId" HostInfoForCreateProperty = Value Prelude.Text
  set :: PropertyType "DedicatedHostId" HostInfoForCreateProperty
-> HostInfoForCreateProperty -> HostInfoForCreateProperty
set PropertyType "DedicatedHostId" HostInfoForCreateProperty
newValue HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = HostInfoForCreateProperty
        {dedicatedHostId :: Maybe (Value Text)
dedicatedHostId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DedicatedHostId" HostInfoForCreateProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
instance Property "HostName" HostInfoForCreateProperty where
  type PropertyType "HostName" HostInfoForCreateProperty = Value Prelude.Text
  set :: PropertyType "HostName" HostInfoForCreateProperty
-> HostInfoForCreateProperty -> HostInfoForCreateProperty
set PropertyType "HostName" HostInfoForCreateProperty
newValue HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = HostInfoForCreateProperty {hostName :: Value Text
hostName = PropertyType "HostName" HostInfoForCreateProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
instance Property "InstanceType" HostInfoForCreateProperty where
  type PropertyType "InstanceType" HostInfoForCreateProperty = Value Prelude.Text
  set :: PropertyType "InstanceType" HostInfoForCreateProperty
-> HostInfoForCreateProperty -> HostInfoForCreateProperty
set PropertyType "InstanceType" HostInfoForCreateProperty
newValue HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = HostInfoForCreateProperty {instanceType :: Value Text
instanceType = PropertyType "InstanceType" HostInfoForCreateProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
instance Property "KeyName" HostInfoForCreateProperty where
  type PropertyType "KeyName" HostInfoForCreateProperty = Value Prelude.Text
  set :: PropertyType "KeyName" HostInfoForCreateProperty
-> HostInfoForCreateProperty -> HostInfoForCreateProperty
set PropertyType "KeyName" HostInfoForCreateProperty
newValue HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = HostInfoForCreateProperty {keyName :: Value Text
keyName = PropertyType "KeyName" HostInfoForCreateProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
placementGroupId :: Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
placementGroupId :: Maybe (Value Text)
..}
instance Property "PlacementGroupId" HostInfoForCreateProperty where
  type PropertyType "PlacementGroupId" HostInfoForCreateProperty = Value Prelude.Text
  set :: PropertyType "PlacementGroupId" HostInfoForCreateProperty
-> HostInfoForCreateProperty -> HostInfoForCreateProperty
set PropertyType "PlacementGroupId" HostInfoForCreateProperty
newValue HostInfoForCreateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HostInfoForCreateProperty -> ()
dedicatedHostId :: HostInfoForCreateProperty -> Maybe (Value Text)
hostName :: HostInfoForCreateProperty -> Value Text
instanceType :: HostInfoForCreateProperty -> Value Text
keyName :: HostInfoForCreateProperty -> Value Text
placementGroupId :: HostInfoForCreateProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
placementGroupId :: Maybe (Value Text)
..}
    = HostInfoForCreateProperty
        {placementGroupId :: Maybe (Value Text)
placementGroupId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PlacementGroupId" HostInfoForCreateProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
haddock_workaround_ :: ()
dedicatedHostId :: Maybe (Value Text)
hostName :: Value Text
instanceType :: Value Text
keyName :: Value Text
..}