module Stratosphere.EC2.NetworkInterfaceAttachment.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.NetworkInterfaceAttachment.EnaSrdUdpSpecificationProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data EnaSrdSpecificationProperty = -- | See: EnaSrdSpecificationProperty {haddock_workaround_ :: (), -- | See: enaSrdEnabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: enaSrdUdpSpecification :: (Prelude.Maybe EnaSrdUdpSpecificationProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkEnaSrdSpecificationProperty :: EnaSrdSpecificationProperty mkEnaSrdSpecificationProperty = EnaSrdSpecificationProperty {haddock_workaround_ = (), enaSrdEnabled = Prelude.Nothing, enaSrdUdpSpecification = Prelude.Nothing} instance ToResourceProperties EnaSrdSpecificationProperty where toResourceProperties EnaSrdSpecificationProperty {..} = ResourceProperties {awsType = "AWS::EC2::NetworkInterfaceAttachment.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, ..}