stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/Instance/EnaSrdUdpSpecificationProperty.hs
module Stratosphere.EC2.Instance.EnaSrdUdpSpecificationProperty (
EnaSrdUdpSpecificationProperty(..),
mkEnaSrdUdpSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnaSrdUdpSpecificationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-enasrdudpspecification.html>
EnaSrdUdpSpecificationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-enasrdudpspecification.html#cfn-ec2-instance-enasrdudpspecification-enasrdudpenabled>
enaSrdUdpEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (Prelude.Eq, Prelude.Show)
mkEnaSrdUdpSpecificationProperty :: EnaSrdUdpSpecificationProperty
mkEnaSrdUdpSpecificationProperty
= EnaSrdUdpSpecificationProperty
{haddock_workaround_ = (), enaSrdUdpEnabled = Prelude.Nothing}
instance ToResourceProperties EnaSrdUdpSpecificationProperty where
toResourceProperties EnaSrdUdpSpecificationProperty {..}
= ResourceProperties
{awsType = "AWS::EC2::Instance.EnaSrdUdpSpecification",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "EnaSrdUdpEnabled" Prelude.<$> enaSrdUdpEnabled])}
instance JSON.ToJSON EnaSrdUdpSpecificationProperty where
toJSON EnaSrdUdpSpecificationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "EnaSrdUdpEnabled" Prelude.<$> enaSrdUdpEnabled]))
instance Property "EnaSrdUdpEnabled" EnaSrdUdpSpecificationProperty where
type PropertyType "EnaSrdUdpEnabled" EnaSrdUdpSpecificationProperty = Value Prelude.Bool
set newValue EnaSrdUdpSpecificationProperty {..}
= EnaSrdUdpSpecificationProperty
{enaSrdUdpEnabled = Prelude.pure newValue, ..}