content: module Stratosphere.EC2.LaunchTemplate.EnaSrdSpecificationProperty (
          module Exports, EnaSrdSpecificationProperty(..),
          mkEnaSrdSpecificationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.EC2.LaunchTemplate.EnaSrdUdpSpecificationProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data EnaSrdSpecificationProperty
    = EnaSrdSpecificationProperty {enaSrdEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                   enaSrdUdpSpecification :: (Prelude.Maybe EnaSrdUdpSpecificationProperty)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkEnaSrdSpecificationProperty :: EnaSrdSpecificationProperty
  mkEnaSrdSpecificationProperty
    = EnaSrdSpecificationProperty
        {enaSrdEnabled = Prelude.Nothing,
         enaSrdUdpSpecification = Prelude.Nothing}
  instance ToResourceProperties EnaSrdSpecificationProperty where
    toResourceProperties EnaSrdSpecificationProperty {..}
      = ResourceProperties
          {awsType = "AWS::EC2::LaunchTemplate.EnaSrdSpecification",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "EnaSrdEnabled" Prelude.<$> enaSrdEnabled,
                              (JSON..=) "EnaSrdUdpSpecification"
                                Prelude.<$> enaSrdUdpSpecification])}
  instance JSON.ToJSON EnaSrdSpecificationProperty where
    toJSON EnaSrdSpecificationProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "EnaSrdEnabled" Prelude.<$> enaSrdEnabled,
                 (JSON..=) "EnaSrdUdpSpecification"
                   Prelude.<$> enaSrdUdpSpecification]))
  instance Property "EnaSrdEnabled" EnaSrdSpecificationProperty where
    type PropertyType "EnaSrdEnabled" EnaSrdSpecificationProperty = Value Prelude.Bool
    set newValue EnaSrdSpecificationProperty {..}
      = EnaSrdSpecificationProperty
          {enaSrdEnabled = Prelude.pure newValue, ..}
  instance Property "EnaSrdUdpSpecification" EnaSrdSpecificationProperty where
    type PropertyType "EnaSrdUdpSpecification" EnaSrdSpecificationProperty = EnaSrdUdpSpecificationProperty
    set newValue EnaSrdSpecificationProperty {..}
      = EnaSrdSpecificationProperty
          {enaSrdUdpSpecification = Prelude.pure newValue, ..}