module Stratosphere.Glue.TableOptimizer.IcebergConfigurationProperty (
        IcebergConfigurationProperty(..), mkIcebergConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IcebergConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-tableoptimizer-tableoptimizerconfiguration-orphanfiledeletionconfiguration-icebergconfiguration.html>
    IcebergConfigurationProperty {IcebergConfigurationProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-tableoptimizer-tableoptimizerconfiguration-orphanfiledeletionconfiguration-icebergconfiguration.html#cfn-glue-tableoptimizer-tableoptimizerconfiguration-orphanfiledeletionconfiguration-icebergconfiguration-location>
                                  IcebergConfigurationProperty -> Maybe (Value Text)
location :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-tableoptimizer-tableoptimizerconfiguration-orphanfiledeletionconfiguration-icebergconfiguration.html#cfn-glue-tableoptimizer-tableoptimizerconfiguration-orphanfiledeletionconfiguration-icebergconfiguration-orphanfileretentionperiodindays>
                                  IcebergConfigurationProperty -> Maybe (Value Integer)
orphanFileRetentionPeriodInDays :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (IcebergConfigurationProperty
-> IcebergConfigurationProperty -> Bool
(IcebergConfigurationProperty
 -> IcebergConfigurationProperty -> Bool)
-> (IcebergConfigurationProperty
    -> IcebergConfigurationProperty -> Bool)
-> Eq IcebergConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IcebergConfigurationProperty
-> IcebergConfigurationProperty -> Bool
== :: IcebergConfigurationProperty
-> IcebergConfigurationProperty -> Bool
$c/= :: IcebergConfigurationProperty
-> IcebergConfigurationProperty -> Bool
/= :: IcebergConfigurationProperty
-> IcebergConfigurationProperty -> Bool
Prelude.Eq, Int -> IcebergConfigurationProperty -> ShowS
[IcebergConfigurationProperty] -> ShowS
IcebergConfigurationProperty -> String
(Int -> IcebergConfigurationProperty -> ShowS)
-> (IcebergConfigurationProperty -> String)
-> ([IcebergConfigurationProperty] -> ShowS)
-> Show IcebergConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IcebergConfigurationProperty -> ShowS
showsPrec :: Int -> IcebergConfigurationProperty -> ShowS
$cshow :: IcebergConfigurationProperty -> String
show :: IcebergConfigurationProperty -> String
$cshowList :: [IcebergConfigurationProperty] -> ShowS
showList :: [IcebergConfigurationProperty] -> ShowS
Prelude.Show)
mkIcebergConfigurationProperty :: IcebergConfigurationProperty
mkIcebergConfigurationProperty :: IcebergConfigurationProperty
mkIcebergConfigurationProperty
  = IcebergConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), location :: Maybe (Value Text)
location = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
orphanFileRetentionPeriodInDays = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IcebergConfigurationProperty where
  toResourceProperties :: IcebergConfigurationProperty -> ResourceProperties
toResourceProperties IcebergConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IcebergConfigurationProperty -> ()
location :: IcebergConfigurationProperty -> Maybe (Value Text)
orphanFileRetentionPeriodInDays :: IcebergConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
location :: Maybe (Value Text)
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::TableOptimizer.IcebergConfiguration",
         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 -> 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
"Location" (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)
location,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrphanFileRetentionPeriodInDays"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
orphanFileRetentionPeriodInDays])}
instance JSON.ToJSON IcebergConfigurationProperty where
  toJSON :: IcebergConfigurationProperty -> Value
toJSON IcebergConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IcebergConfigurationProperty -> ()
location :: IcebergConfigurationProperty -> Maybe (Value Text)
orphanFileRetentionPeriodInDays :: IcebergConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
location :: Maybe (Value Text)
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
..}
    = [(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
"Location" (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)
location,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OrphanFileRetentionPeriodInDays"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
orphanFileRetentionPeriodInDays]))
instance Property "Location" IcebergConfigurationProperty where
  type PropertyType "Location" IcebergConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Location" IcebergConfigurationProperty
-> IcebergConfigurationProperty -> IcebergConfigurationProperty
set PropertyType "Location" IcebergConfigurationProperty
newValue IcebergConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IcebergConfigurationProperty -> ()
location :: IcebergConfigurationProperty -> Maybe (Value Text)
orphanFileRetentionPeriodInDays :: IcebergConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
location :: Maybe (Value Text)
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
..}
    = IcebergConfigurationProperty
        {location :: Maybe (Value Text)
location = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Location" IcebergConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
..}
instance Property "OrphanFileRetentionPeriodInDays" IcebergConfigurationProperty where
  type PropertyType "OrphanFileRetentionPeriodInDays" IcebergConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "OrphanFileRetentionPeriodInDays" IcebergConfigurationProperty
-> IcebergConfigurationProperty -> IcebergConfigurationProperty
set PropertyType
  "OrphanFileRetentionPeriodInDays" IcebergConfigurationProperty
newValue IcebergConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: IcebergConfigurationProperty -> ()
location :: IcebergConfigurationProperty -> Maybe (Value Text)
orphanFileRetentionPeriodInDays :: IcebergConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
location :: Maybe (Value Text)
orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
..}
    = IcebergConfigurationProperty
        {orphanFileRetentionPeriodInDays :: Maybe (Value Integer)
orphanFileRetentionPeriodInDays = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OrphanFileRetentionPeriodInDays" IcebergConfigurationProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
location :: Maybe (Value Text)
haddock_workaround_ :: ()
location :: Maybe (Value Text)
..}