module Stratosphere.Glue.TableOptimizer.OrphanFileDeletionConfigurationProperty (
module Exports, OrphanFileDeletionConfigurationProperty(..),
mkOrphanFileDeletionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Glue.TableOptimizer.IcebergConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data OrphanFileDeletionConfigurationProperty
=
OrphanFileDeletionConfigurationProperty {OrphanFileDeletionConfigurationProperty -> ()
haddock_workaround_ :: (),
OrphanFileDeletionConfigurationProperty
-> Maybe IcebergConfigurationProperty
icebergConfiguration :: (Prelude.Maybe IcebergConfigurationProperty)}
deriving stock (OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool
(OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool)
-> (OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool)
-> Eq OrphanFileDeletionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool
== :: OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool
$c/= :: OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool
/= :: OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty -> Bool
Prelude.Eq, Int -> OrphanFileDeletionConfigurationProperty -> ShowS
[OrphanFileDeletionConfigurationProperty] -> ShowS
OrphanFileDeletionConfigurationProperty -> String
(Int -> OrphanFileDeletionConfigurationProperty -> ShowS)
-> (OrphanFileDeletionConfigurationProperty -> String)
-> ([OrphanFileDeletionConfigurationProperty] -> ShowS)
-> Show OrphanFileDeletionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OrphanFileDeletionConfigurationProperty -> ShowS
showsPrec :: Int -> OrphanFileDeletionConfigurationProperty -> ShowS
$cshow :: OrphanFileDeletionConfigurationProperty -> String
show :: OrphanFileDeletionConfigurationProperty -> String
$cshowList :: [OrphanFileDeletionConfigurationProperty] -> ShowS
showList :: [OrphanFileDeletionConfigurationProperty] -> ShowS
Prelude.Show)
mkOrphanFileDeletionConfigurationProperty ::
OrphanFileDeletionConfigurationProperty
mkOrphanFileDeletionConfigurationProperty :: OrphanFileDeletionConfigurationProperty
mkOrphanFileDeletionConfigurationProperty
= OrphanFileDeletionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), icebergConfiguration :: Maybe IcebergConfigurationProperty
icebergConfiguration = Maybe IcebergConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OrphanFileDeletionConfigurationProperty where
toResourceProperties :: OrphanFileDeletionConfigurationProperty -> ResourceProperties
toResourceProperties OrphanFileDeletionConfigurationProperty {Maybe IcebergConfigurationProperty
()
haddock_workaround_ :: OrphanFileDeletionConfigurationProperty -> ()
icebergConfiguration :: OrphanFileDeletionConfigurationProperty
-> Maybe IcebergConfigurationProperty
haddock_workaround_ :: ()
icebergConfiguration :: Maybe IcebergConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Glue::TableOptimizer.OrphanFileDeletionConfiguration",
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 -> IcebergConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IcebergConfiguration"
(IcebergConfigurationProperty -> (Key, Value))
-> Maybe IcebergConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IcebergConfigurationProperty
icebergConfiguration])}
instance JSON.ToJSON OrphanFileDeletionConfigurationProperty where
toJSON :: OrphanFileDeletionConfigurationProperty -> Value
toJSON OrphanFileDeletionConfigurationProperty {Maybe IcebergConfigurationProperty
()
haddock_workaround_ :: OrphanFileDeletionConfigurationProperty -> ()
icebergConfiguration :: OrphanFileDeletionConfigurationProperty
-> Maybe IcebergConfigurationProperty
haddock_workaround_ :: ()
icebergConfiguration :: Maybe IcebergConfigurationProperty
..}
= [(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 -> IcebergConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IcebergConfiguration"
(IcebergConfigurationProperty -> (Key, Value))
-> Maybe IcebergConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IcebergConfigurationProperty
icebergConfiguration]))
instance Property "IcebergConfiguration" OrphanFileDeletionConfigurationProperty where
type PropertyType "IcebergConfiguration" OrphanFileDeletionConfigurationProperty = IcebergConfigurationProperty
set :: PropertyType
"IcebergConfiguration" OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty
-> OrphanFileDeletionConfigurationProperty
set PropertyType
"IcebergConfiguration" OrphanFileDeletionConfigurationProperty
newValue OrphanFileDeletionConfigurationProperty {Maybe IcebergConfigurationProperty
()
haddock_workaround_ :: OrphanFileDeletionConfigurationProperty -> ()
icebergConfiguration :: OrphanFileDeletionConfigurationProperty
-> Maybe IcebergConfigurationProperty
haddock_workaround_ :: ()
icebergConfiguration :: Maybe IcebergConfigurationProperty
..}
= OrphanFileDeletionConfigurationProperty
{icebergConfiguration :: Maybe IcebergConfigurationProperty
icebergConfiguration = IcebergConfigurationProperty -> Maybe IcebergConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"IcebergConfiguration" OrphanFileDeletionConfigurationProperty
IcebergConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}