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