packages feed

stratosphere-datasync-1.0.0: gen/Stratosphere/DataSync/LocationFSxOpenZFS/NFSProperty.hs

module Stratosphere.DataSync.LocationFSxOpenZFS.NFSProperty (
        module Exports, NFSProperty(..), mkNFSProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataSync.LocationFSxOpenZFS.MountOptionsProperty as Exports
import Stratosphere.ResourceProperties
data NFSProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationfsxopenzfs-nfs.html>
    NFSProperty {haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-locationfsxopenzfs-nfs.html#cfn-datasync-locationfsxopenzfs-nfs-mountoptions>
                 mountOptions :: MountOptionsProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkNFSProperty :: MountOptionsProperty -> NFSProperty
mkNFSProperty mountOptions
  = NFSProperty
      {haddock_workaround_ = (), mountOptions = mountOptions}
instance ToResourceProperties NFSProperty where
  toResourceProperties NFSProperty {..}
    = ResourceProperties
        {awsType = "AWS::DataSync::LocationFSxOpenZFS.NFS",
         supportsTags = Prelude.False,
         properties = ["MountOptions" JSON..= mountOptions]}
instance JSON.ToJSON NFSProperty where
  toJSON NFSProperty {..}
    = JSON.object ["MountOptions" JSON..= mountOptions]
instance Property "MountOptions" NFSProperty where
  type PropertyType "MountOptions" NFSProperty = MountOptionsProperty
  set newValue NFSProperty {..}
    = NFSProperty {mountOptions = newValue, ..}