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