module Stratosphere.DataZone.Connection.AthenaPropertiesInputProperty (
AthenaPropertiesInputProperty(..), mkAthenaPropertiesInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AthenaPropertiesInputProperty
=
AthenaPropertiesInputProperty {AthenaPropertiesInputProperty -> ()
haddock_workaround_ :: (),
AthenaPropertiesInputProperty -> Value Text
workgroupName :: (Value Prelude.Text)}
deriving stock (AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool
(AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool)
-> (AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool)
-> Eq AthenaPropertiesInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool
== :: AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool
$c/= :: AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool
/= :: AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> Bool
Prelude.Eq, Int -> AthenaPropertiesInputProperty -> ShowS
[AthenaPropertiesInputProperty] -> ShowS
AthenaPropertiesInputProperty -> String
(Int -> AthenaPropertiesInputProperty -> ShowS)
-> (AthenaPropertiesInputProperty -> String)
-> ([AthenaPropertiesInputProperty] -> ShowS)
-> Show AthenaPropertiesInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AthenaPropertiesInputProperty -> ShowS
showsPrec :: Int -> AthenaPropertiesInputProperty -> ShowS
$cshow :: AthenaPropertiesInputProperty -> String
show :: AthenaPropertiesInputProperty -> String
$cshowList :: [AthenaPropertiesInputProperty] -> ShowS
showList :: [AthenaPropertiesInputProperty] -> ShowS
Prelude.Show)
mkAthenaPropertiesInputProperty ::
Value Prelude.Text -> AthenaPropertiesInputProperty
mkAthenaPropertiesInputProperty :: Value Text -> AthenaPropertiesInputProperty
mkAthenaPropertiesInputProperty Value Text
workgroupName
= AthenaPropertiesInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), workgroupName :: Value Text
workgroupName = Value Text
workgroupName}
instance ToResourceProperties AthenaPropertiesInputProperty where
toResourceProperties :: AthenaPropertiesInputProperty -> ResourceProperties
toResourceProperties AthenaPropertiesInputProperty {()
Value Text
haddock_workaround_ :: AthenaPropertiesInputProperty -> ()
workgroupName :: AthenaPropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
workgroupName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.AthenaPropertiesInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"WorkgroupName" 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..= Value Text
workgroupName]}
instance JSON.ToJSON AthenaPropertiesInputProperty where
toJSON :: AthenaPropertiesInputProperty -> Value
toJSON AthenaPropertiesInputProperty {()
Value Text
haddock_workaround_ :: AthenaPropertiesInputProperty -> ()
workgroupName :: AthenaPropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
workgroupName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"WorkgroupName" 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..= Value Text
workgroupName]
instance Property "WorkgroupName" AthenaPropertiesInputProperty where
type PropertyType "WorkgroupName" AthenaPropertiesInputProperty = Value Prelude.Text
set :: PropertyType "WorkgroupName" AthenaPropertiesInputProperty
-> AthenaPropertiesInputProperty -> AthenaPropertiesInputProperty
set PropertyType "WorkgroupName" AthenaPropertiesInputProperty
newValue AthenaPropertiesInputProperty {()
Value Text
haddock_workaround_ :: AthenaPropertiesInputProperty -> ()
workgroupName :: AthenaPropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
workgroupName :: Value Text
..}
= AthenaPropertiesInputProperty {workgroupName :: Value Text
workgroupName = PropertyType "WorkgroupName" AthenaPropertiesInputProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}