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