module Stratosphere.SageMaker.FeatureGroup.OfflineStoreConfigProperty (
        module Exports, OfflineStoreConfigProperty(..),
        mkOfflineStoreConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.FeatureGroup.DataCatalogConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.FeatureGroup.S3StorageConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OfflineStoreConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html>
    OfflineStoreConfigProperty {OfflineStoreConfigProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html#cfn-sagemaker-featuregroup-offlinestoreconfig-datacatalogconfig>
                                OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
dataCatalogConfig :: (Prelude.Maybe DataCatalogConfigProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html#cfn-sagemaker-featuregroup-offlinestoreconfig-disablegluetablecreation>
                                OfflineStoreConfigProperty -> Maybe (Value Bool)
disableGlueTableCreation :: (Prelude.Maybe (Value Prelude.Bool)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html#cfn-sagemaker-featuregroup-offlinestoreconfig-s3storageconfig>
                                OfflineStoreConfigProperty -> S3StorageConfigProperty
s3StorageConfig :: S3StorageConfigProperty,
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-offlinestoreconfig.html#cfn-sagemaker-featuregroup-offlinestoreconfig-tableformat>
                                OfflineStoreConfigProperty -> Maybe (Value Text)
tableFormat :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool
(OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool)
-> (OfflineStoreConfigProperty
    -> OfflineStoreConfigProperty -> Bool)
-> Eq OfflineStoreConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool
== :: OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool
$c/= :: OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool
/= :: OfflineStoreConfigProperty -> OfflineStoreConfigProperty -> Bool
Prelude.Eq, Int -> OfflineStoreConfigProperty -> ShowS
[OfflineStoreConfigProperty] -> ShowS
OfflineStoreConfigProperty -> String
(Int -> OfflineStoreConfigProperty -> ShowS)
-> (OfflineStoreConfigProperty -> String)
-> ([OfflineStoreConfigProperty] -> ShowS)
-> Show OfflineStoreConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OfflineStoreConfigProperty -> ShowS
showsPrec :: Int -> OfflineStoreConfigProperty -> ShowS
$cshow :: OfflineStoreConfigProperty -> String
show :: OfflineStoreConfigProperty -> String
$cshowList :: [OfflineStoreConfigProperty] -> ShowS
showList :: [OfflineStoreConfigProperty] -> ShowS
Prelude.Show)
mkOfflineStoreConfigProperty ::
  S3StorageConfigProperty -> OfflineStoreConfigProperty
mkOfflineStoreConfigProperty :: S3StorageConfigProperty -> OfflineStoreConfigProperty
mkOfflineStoreConfigProperty S3StorageConfigProperty
s3StorageConfig
  = OfflineStoreConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3StorageConfig :: S3StorageConfigProperty
s3StorageConfig = S3StorageConfigProperty
s3StorageConfig,
       dataCatalogConfig :: Maybe DataCatalogConfigProperty
dataCatalogConfig = Maybe DataCatalogConfigProperty
forall a. Maybe a
Prelude.Nothing,
       disableGlueTableCreation :: Maybe (Value Bool)
disableGlueTableCreation = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       tableFormat :: Maybe (Value Text)
tableFormat = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OfflineStoreConfigProperty where
  toResourceProperties :: OfflineStoreConfigProperty -> ResourceProperties
toResourceProperties OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::FeatureGroup.OfflineStoreConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"S3StorageConfig" Key -> S3StorageConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3StorageConfigProperty
s3StorageConfig]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> DataCatalogConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataCatalogConfig" (DataCatalogConfigProperty -> (Key, Value))
-> Maybe DataCatalogConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataCatalogConfigProperty
dataCatalogConfig,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableGlueTableCreation"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableGlueTableCreation,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableFormat" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableFormat]))}
instance JSON.ToJSON OfflineStoreConfigProperty where
  toJSON :: OfflineStoreConfigProperty -> Value
toJSON OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"S3StorageConfig" Key -> S3StorageConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3StorageConfigProperty
s3StorageConfig]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> DataCatalogConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataCatalogConfig" (DataCatalogConfigProperty -> (Key, Value))
-> Maybe DataCatalogConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataCatalogConfigProperty
dataCatalogConfig,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableGlueTableCreation"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableGlueTableCreation,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableFormat" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableFormat])))
instance Property "DataCatalogConfig" OfflineStoreConfigProperty where
  type PropertyType "DataCatalogConfig" OfflineStoreConfigProperty = DataCatalogConfigProperty
  set :: PropertyType "DataCatalogConfig" OfflineStoreConfigProperty
-> OfflineStoreConfigProperty -> OfflineStoreConfigProperty
set PropertyType "DataCatalogConfig" OfflineStoreConfigProperty
newValue OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = OfflineStoreConfigProperty
        {dataCatalogConfig :: Maybe DataCatalogConfigProperty
dataCatalogConfig = DataCatalogConfigProperty -> Maybe DataCatalogConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataCatalogConfig" OfflineStoreConfigProperty
DataCatalogConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
S3StorageConfigProperty
haddock_workaround_ :: ()
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
instance Property "DisableGlueTableCreation" OfflineStoreConfigProperty where
  type PropertyType "DisableGlueTableCreation" OfflineStoreConfigProperty = Value Prelude.Bool
  set :: PropertyType "DisableGlueTableCreation" OfflineStoreConfigProperty
-> OfflineStoreConfigProperty -> OfflineStoreConfigProperty
set PropertyType "DisableGlueTableCreation" OfflineStoreConfigProperty
newValue OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = OfflineStoreConfigProperty
        {disableGlueTableCreation :: Maybe (Value Bool)
disableGlueTableCreation = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisableGlueTableCreation" OfflineStoreConfigProperty
Value Bool
newValue, Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
instance Property "S3StorageConfig" OfflineStoreConfigProperty where
  type PropertyType "S3StorageConfig" OfflineStoreConfigProperty = S3StorageConfigProperty
  set :: PropertyType "S3StorageConfig" OfflineStoreConfigProperty
-> OfflineStoreConfigProperty -> OfflineStoreConfigProperty
set PropertyType "S3StorageConfig" OfflineStoreConfigProperty
newValue OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = OfflineStoreConfigProperty {s3StorageConfig :: S3StorageConfigProperty
s3StorageConfig = PropertyType "S3StorageConfig" OfflineStoreConfigProperty
S3StorageConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
tableFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
tableFormat :: Maybe (Value Text)
..}
instance Property "TableFormat" OfflineStoreConfigProperty where
  type PropertyType "TableFormat" OfflineStoreConfigProperty = Value Prelude.Text
  set :: PropertyType "TableFormat" OfflineStoreConfigProperty
-> OfflineStoreConfigProperty -> OfflineStoreConfigProperty
set PropertyType "TableFormat" OfflineStoreConfigProperty
newValue OfflineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: OfflineStoreConfigProperty -> ()
dataCatalogConfig :: OfflineStoreConfigProperty -> Maybe DataCatalogConfigProperty
disableGlueTableCreation :: OfflineStoreConfigProperty -> Maybe (Value Bool)
s3StorageConfig :: OfflineStoreConfigProperty -> S3StorageConfigProperty
tableFormat :: OfflineStoreConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
tableFormat :: Maybe (Value Text)
..}
    = OfflineStoreConfigProperty
        {tableFormat :: Maybe (Value Text)
tableFormat = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableFormat" OfflineStoreConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe DataCatalogConfigProperty
()
S3StorageConfigProperty
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
haddock_workaround_ :: ()
dataCatalogConfig :: Maybe DataCatalogConfigProperty
disableGlueTableCreation :: Maybe (Value Bool)
s3StorageConfig :: S3StorageConfigProperty
..}