stratosphere-datasync-1.0.0: gen/Stratosphere/DataSync/LocationFSxONTAP/NfsMountOptionsProperty.hs
module Stratosphere.DataSync.LocationFSxONTAP.NfsMountOptionsProperty (
NfsMountOptionsProperty(..), mkNfsMountOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NfsMountOptionsProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationfsxontap-nfsmountoptions.html>
NfsMountOptionsProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationfsxontap-nfsmountoptions.html#cfn-datasync-locationfsxontap-nfsmountoptions-version>
version :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkNfsMountOptionsProperty :: NfsMountOptionsProperty
mkNfsMountOptionsProperty
= NfsMountOptionsProperty
{haddock_workaround_ = (), version = Prelude.Nothing}
instance ToResourceProperties NfsMountOptionsProperty where
toResourceProperties NfsMountOptionsProperty {..}
= ResourceProperties
{awsType = "AWS::DataSync::LocationFSxONTAP.NfsMountOptions",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Version" Prelude.<$> version])}
instance JSON.ToJSON NfsMountOptionsProperty where
toJSON NfsMountOptionsProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Version" Prelude.<$> version]))
instance Property "Version" NfsMountOptionsProperty where
type PropertyType "Version" NfsMountOptionsProperty = Value Prelude.Text
set newValue NfsMountOptionsProperty {..}
= NfsMountOptionsProperty {version = Prelude.pure newValue, ..}