module Stratosphere.IoTAnalytics.Datastore (
        module Exports, Datastore(..), mkDatastore
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Datastore.DatastorePartitionsProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Datastore.DatastoreStorageProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Datastore.FileFormatConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Datastore.RetentionPeriodProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Datastore
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html>
    Datastore {Datastore -> ()
haddock_workaround_ :: (),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-datastorename>
               Datastore -> Maybe (Value Text)
datastoreName :: (Prelude.Maybe (Value Prelude.Text)),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-datastorepartitions>
               Datastore -> Maybe DatastorePartitionsProperty
datastorePartitions :: (Prelude.Maybe DatastorePartitionsProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-datastorestorage>
               Datastore -> Maybe DatastoreStorageProperty
datastoreStorage :: (Prelude.Maybe DatastoreStorageProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-fileformatconfiguration>
               Datastore -> Maybe FileFormatConfigurationProperty
fileFormatConfiguration :: (Prelude.Maybe FileFormatConfigurationProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-retentionperiod>
               Datastore -> Maybe RetentionPeriodProperty
retentionPeriod :: (Prelude.Maybe RetentionPeriodProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-datastore.html#cfn-iotanalytics-datastore-tags>
               Datastore -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Datastore -> Datastore -> Bool
(Datastore -> Datastore -> Bool)
-> (Datastore -> Datastore -> Bool) -> Eq Datastore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Datastore -> Datastore -> Bool
== :: Datastore -> Datastore -> Bool
$c/= :: Datastore -> Datastore -> Bool
/= :: Datastore -> Datastore -> Bool
Prelude.Eq, Int -> Datastore -> ShowS
[Datastore] -> ShowS
Datastore -> String
(Int -> Datastore -> ShowS)
-> (Datastore -> String)
-> ([Datastore] -> ShowS)
-> Show Datastore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Datastore -> ShowS
showsPrec :: Int -> Datastore -> ShowS
$cshow :: Datastore -> String
show :: Datastore -> String
$cshowList :: [Datastore] -> ShowS
showList :: [Datastore] -> ShowS
Prelude.Show)
mkDatastore :: Datastore
mkDatastore :: Datastore
mkDatastore
  = Datastore
      {haddock_workaround_ :: ()
haddock_workaround_ = (), datastoreName :: Maybe (Value Text)
datastoreName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       datastorePartitions :: Maybe DatastorePartitionsProperty
datastorePartitions = Maybe DatastorePartitionsProperty
forall a. Maybe a
Prelude.Nothing,
       datastoreStorage :: Maybe DatastoreStorageProperty
datastoreStorage = Maybe DatastoreStorageProperty
forall a. Maybe a
Prelude.Nothing,
       fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
fileFormatConfiguration = Maybe FileFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       retentionPeriod :: Maybe RetentionPeriodProperty
retentionPeriod = Maybe RetentionPeriodProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Datastore where
  toResourceProperties :: Datastore -> ResourceProperties
toResourceProperties Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Datastore",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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 -> 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
"DatastoreName" (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)
datastoreName,
                            Key -> DatastorePartitionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatastorePartitions" (DatastorePartitionsProperty -> (Key, Value))
-> Maybe DatastorePartitionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatastorePartitionsProperty
datastorePartitions,
                            Key -> DatastoreStorageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatastoreStorage" (DatastoreStorageProperty -> (Key, Value))
-> Maybe DatastoreStorageProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatastoreStorageProperty
datastoreStorage,
                            Key -> FileFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FileFormatConfiguration"
                              (FileFormatConfigurationProperty -> (Key, Value))
-> Maybe FileFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FileFormatConfigurationProperty
fileFormatConfiguration,
                            Key -> RetentionPeriodProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetentionPeriod" (RetentionPeriodProperty -> (Key, Value))
-> Maybe RetentionPeriodProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RetentionPeriodProperty
retentionPeriod,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON Datastore where
  toJSON :: Datastore -> Value
toJSON Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = [(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 -> 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
"DatastoreName" (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)
datastoreName,
               Key -> DatastorePartitionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatastorePartitions" (DatastorePartitionsProperty -> (Key, Value))
-> Maybe DatastorePartitionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatastorePartitionsProperty
datastorePartitions,
               Key -> DatastoreStorageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatastoreStorage" (DatastoreStorageProperty -> (Key, Value))
-> Maybe DatastoreStorageProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatastoreStorageProperty
datastoreStorage,
               Key -> FileFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FileFormatConfiguration"
                 (FileFormatConfigurationProperty -> (Key, Value))
-> Maybe FileFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FileFormatConfigurationProperty
fileFormatConfiguration,
               Key -> RetentionPeriodProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetentionPeriod" (RetentionPeriodProperty -> (Key, Value))
-> Maybe RetentionPeriodProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RetentionPeriodProperty
retentionPeriod,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "DatastoreName" Datastore where
  type PropertyType "DatastoreName" Datastore = Value Prelude.Text
  set :: PropertyType "DatastoreName" Datastore -> Datastore -> Datastore
set PropertyType "DatastoreName" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {datastoreName :: Maybe (Value Text)
datastoreName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatastoreName" Datastore
Value Text
newValue, Maybe [Tag]
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: ()
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
instance Property "DatastorePartitions" Datastore where
  type PropertyType "DatastorePartitions" Datastore = DatastorePartitionsProperty
  set :: PropertyType "DatastorePartitions" Datastore
-> Datastore -> Datastore
set PropertyType "DatastorePartitions" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {datastorePartitions :: Maybe DatastorePartitionsProperty
datastorePartitions = DatastorePartitionsProperty -> Maybe DatastorePartitionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatastorePartitions" Datastore
DatastorePartitionsProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
instance Property "DatastoreStorage" Datastore where
  type PropertyType "DatastoreStorage" Datastore = DatastoreStorageProperty
  set :: PropertyType "DatastoreStorage" Datastore -> Datastore -> Datastore
set PropertyType "DatastoreStorage" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {datastoreStorage :: Maybe DatastoreStorageProperty
datastoreStorage = DatastoreStorageProperty -> Maybe DatastoreStorageProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatastoreStorage" Datastore
DatastoreStorageProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
instance Property "FileFormatConfiguration" Datastore where
  type PropertyType "FileFormatConfiguration" Datastore = FileFormatConfigurationProperty
  set :: PropertyType "FileFormatConfiguration" Datastore
-> Datastore -> Datastore
set PropertyType "FileFormatConfiguration" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
fileFormatConfiguration = FileFormatConfigurationProperty
-> Maybe FileFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FileFormatConfiguration" Datastore
FileFormatConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
instance Property "RetentionPeriod" Datastore where
  type PropertyType "RetentionPeriod" Datastore = RetentionPeriodProperty
  set :: PropertyType "RetentionPeriod" Datastore -> Datastore -> Datastore
set PropertyType "RetentionPeriod" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {retentionPeriod :: Maybe RetentionPeriodProperty
retentionPeriod = RetentionPeriodProperty -> Maybe RetentionPeriodProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RetentionPeriod" Datastore
RetentionPeriodProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" Datastore where
  type PropertyType "Tags" Datastore = [Tag]
  set :: PropertyType "Tags" Datastore -> Datastore -> Datastore
set PropertyType "Tags" Datastore
newValue Datastore {Maybe [Tag]
Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: Datastore -> ()
datastoreName :: Datastore -> Maybe (Value Text)
datastorePartitions :: Datastore -> Maybe DatastorePartitionsProperty
datastoreStorage :: Datastore -> Maybe DatastoreStorageProperty
fileFormatConfiguration :: Datastore -> Maybe FileFormatConfigurationProperty
retentionPeriod :: Datastore -> Maybe RetentionPeriodProperty
tags :: Datastore -> Maybe [Tag]
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
tags :: Maybe [Tag]
..}
    = Datastore {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Datastore
newValue, Maybe (Value Text)
Maybe DatastoreStorageProperty
Maybe RetentionPeriodProperty
Maybe FileFormatConfigurationProperty
Maybe DatastorePartitionsProperty
()
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
haddock_workaround_ :: ()
datastoreName :: Maybe (Value Text)
datastorePartitions :: Maybe DatastorePartitionsProperty
datastoreStorage :: Maybe DatastoreStorageProperty
fileFormatConfiguration :: Maybe FileFormatConfigurationProperty
retentionPeriod :: Maybe RetentionPeriodProperty
..}