module Stratosphere.SageMaker.Domain.CustomFileSystemConfigProperty (
        module Exports, CustomFileSystemConfigProperty(..),
        mkCustomFileSystemConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.Domain.EFSFileSystemConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.Domain.FSxLustreFileSystemConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.Domain.S3FileSystemConfigProperty as Exports
import Stratosphere.ResourceProperties
data CustomFileSystemConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-customfilesystemconfig.html>
    CustomFileSystemConfigProperty {CustomFileSystemConfigProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-customfilesystemconfig.html#cfn-sagemaker-domain-customfilesystemconfig-efsfilesystemconfig>
                                    CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
eFSFileSystemConfig :: (Prelude.Maybe EFSFileSystemConfigProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-customfilesystemconfig.html#cfn-sagemaker-domain-customfilesystemconfig-fsxlustrefilesystemconfig>
                                    CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
fSxLustreFileSystemConfig :: (Prelude.Maybe FSxLustreFileSystemConfigProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-customfilesystemconfig.html#cfn-sagemaker-domain-customfilesystemconfig-s3filesystemconfig>
                                    CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
s3FileSystemConfig :: (Prelude.Maybe S3FileSystemConfigProperty)}
  deriving stock (CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> Bool
(CustomFileSystemConfigProperty
 -> CustomFileSystemConfigProperty -> Bool)
-> (CustomFileSystemConfigProperty
    -> CustomFileSystemConfigProperty -> Bool)
-> Eq CustomFileSystemConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> Bool
== :: CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> Bool
$c/= :: CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> Bool
/= :: CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> Bool
Prelude.Eq, Int -> CustomFileSystemConfigProperty -> ShowS
[CustomFileSystemConfigProperty] -> ShowS
CustomFileSystemConfigProperty -> String
(Int -> CustomFileSystemConfigProperty -> ShowS)
-> (CustomFileSystemConfigProperty -> String)
-> ([CustomFileSystemConfigProperty] -> ShowS)
-> Show CustomFileSystemConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomFileSystemConfigProperty -> ShowS
showsPrec :: Int -> CustomFileSystemConfigProperty -> ShowS
$cshow :: CustomFileSystemConfigProperty -> String
show :: CustomFileSystemConfigProperty -> String
$cshowList :: [CustomFileSystemConfigProperty] -> ShowS
showList :: [CustomFileSystemConfigProperty] -> ShowS
Prelude.Show)
mkCustomFileSystemConfigProperty :: CustomFileSystemConfigProperty
mkCustomFileSystemConfigProperty :: CustomFileSystemConfigProperty
mkCustomFileSystemConfigProperty
  = CustomFileSystemConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
eFSFileSystemConfig = Maybe EFSFileSystemConfigProperty
forall a. Maybe a
Prelude.Nothing,
       fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
fSxLustreFileSystemConfig = Maybe FSxLustreFileSystemConfigProperty
forall a. Maybe a
Prelude.Nothing,
       s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
s3FileSystemConfig = Maybe S3FileSystemConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomFileSystemConfigProperty where
  toResourceProperties :: CustomFileSystemConfigProperty -> ResourceProperties
toResourceProperties CustomFileSystemConfigProperty {Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: CustomFileSystemConfigProperty -> ()
eFSFileSystemConfig :: CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::Domain.CustomFileSystemConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> EFSFileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EFSFileSystemConfig" (EFSFileSystemConfigProperty -> (Key, Value))
-> Maybe EFSFileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EFSFileSystemConfigProperty
eFSFileSystemConfig,
                            Key -> FSxLustreFileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FSxLustreFileSystemConfig"
                              (FSxLustreFileSystemConfigProperty -> (Key, Value))
-> Maybe FSxLustreFileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FSxLustreFileSystemConfigProperty
fSxLustreFileSystemConfig,
                            Key -> S3FileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3FileSystemConfig" (S3FileSystemConfigProperty -> (Key, Value))
-> Maybe S3FileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3FileSystemConfigProperty
s3FileSystemConfig])}
instance JSON.ToJSON CustomFileSystemConfigProperty where
  toJSON :: CustomFileSystemConfigProperty -> Value
toJSON CustomFileSystemConfigProperty {Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: CustomFileSystemConfigProperty -> ()
eFSFileSystemConfig :: CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> EFSFileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EFSFileSystemConfig" (EFSFileSystemConfigProperty -> (Key, Value))
-> Maybe EFSFileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EFSFileSystemConfigProperty
eFSFileSystemConfig,
               Key -> FSxLustreFileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FSxLustreFileSystemConfig"
                 (FSxLustreFileSystemConfigProperty -> (Key, Value))
-> Maybe FSxLustreFileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FSxLustreFileSystemConfigProperty
fSxLustreFileSystemConfig,
               Key -> S3FileSystemConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3FileSystemConfig" (S3FileSystemConfigProperty -> (Key, Value))
-> Maybe S3FileSystemConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3FileSystemConfigProperty
s3FileSystemConfig]))
instance Property "EFSFileSystemConfig" CustomFileSystemConfigProperty where
  type PropertyType "EFSFileSystemConfig" CustomFileSystemConfigProperty = EFSFileSystemConfigProperty
  set :: PropertyType "EFSFileSystemConfig" CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> CustomFileSystemConfigProperty
set PropertyType "EFSFileSystemConfig" CustomFileSystemConfigProperty
newValue CustomFileSystemConfigProperty {Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: CustomFileSystemConfigProperty -> ()
eFSFileSystemConfig :: CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
    = CustomFileSystemConfigProperty
        {eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
eFSFileSystemConfig = EFSFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EFSFileSystemConfig" CustomFileSystemConfigProperty
EFSFileSystemConfigProperty
newValue, Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: ()
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
instance Property "FSxLustreFileSystemConfig" CustomFileSystemConfigProperty where
  type PropertyType "FSxLustreFileSystemConfig" CustomFileSystemConfigProperty = FSxLustreFileSystemConfigProperty
  set :: PropertyType
  "FSxLustreFileSystemConfig" CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> CustomFileSystemConfigProperty
set PropertyType
  "FSxLustreFileSystemConfig" CustomFileSystemConfigProperty
newValue CustomFileSystemConfigProperty {Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: CustomFileSystemConfigProperty -> ()
eFSFileSystemConfig :: CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
    = CustomFileSystemConfigProperty
        {fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
fSxLustreFileSystemConfig = FSxLustreFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FSxLustreFileSystemConfig" CustomFileSystemConfigProperty
FSxLustreFileSystemConfigProperty
newValue, Maybe EFSFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
instance Property "S3FileSystemConfig" CustomFileSystemConfigProperty where
  type PropertyType "S3FileSystemConfig" CustomFileSystemConfigProperty = S3FileSystemConfigProperty
  set :: PropertyType "S3FileSystemConfig" CustomFileSystemConfigProperty
-> CustomFileSystemConfigProperty -> CustomFileSystemConfigProperty
set PropertyType "S3FileSystemConfig" CustomFileSystemConfigProperty
newValue CustomFileSystemConfigProperty {Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
Maybe S3FileSystemConfigProperty
()
haddock_workaround_ :: CustomFileSystemConfigProperty -> ()
eFSFileSystemConfig :: CustomFileSystemConfigProperty -> Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: CustomFileSystemConfigProperty
-> Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: CustomFileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
..}
    = CustomFileSystemConfigProperty
        {s3FileSystemConfig :: Maybe S3FileSystemConfigProperty
s3FileSystemConfig = S3FileSystemConfigProperty -> Maybe S3FileSystemConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3FileSystemConfig" CustomFileSystemConfigProperty
S3FileSystemConfigProperty
newValue, Maybe EFSFileSystemConfigProperty
Maybe FSxLustreFileSystemConfigProperty
()
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
haddock_workaround_ :: ()
eFSFileSystemConfig :: Maybe EFSFileSystemConfigProperty
fSxLustreFileSystemConfig :: Maybe FSxLustreFileSystemConfigProperty
..}