module Stratosphere.CleanRooms.Membership.ProtectedJobS3OutputConfigurationInputProperty (
ProtectedJobS3OutputConfigurationInputProperty(..),
mkProtectedJobS3OutputConfigurationInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProtectedJobS3OutputConfigurationInputProperty
=
ProtectedJobS3OutputConfigurationInputProperty {ProtectedJobS3OutputConfigurationInputProperty -> ()
haddock_workaround_ :: (),
ProtectedJobS3OutputConfigurationInputProperty -> Value Text
bucket :: (Value Prelude.Text),
ProtectedJobS3OutputConfigurationInputProperty
-> Maybe (Value Text)
keyPrefix :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool
(ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool)
-> (ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool)
-> Eq ProtectedJobS3OutputConfigurationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool
== :: ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool
$c/= :: ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool
/= :: ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty -> Bool
Prelude.Eq, Int -> ProtectedJobS3OutputConfigurationInputProperty -> ShowS
[ProtectedJobS3OutputConfigurationInputProperty] -> ShowS
ProtectedJobS3OutputConfigurationInputProperty -> String
(Int -> ProtectedJobS3OutputConfigurationInputProperty -> ShowS)
-> (ProtectedJobS3OutputConfigurationInputProperty -> String)
-> ([ProtectedJobS3OutputConfigurationInputProperty] -> ShowS)
-> Show ProtectedJobS3OutputConfigurationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProtectedJobS3OutputConfigurationInputProperty -> ShowS
showsPrec :: Int -> ProtectedJobS3OutputConfigurationInputProperty -> ShowS
$cshow :: ProtectedJobS3OutputConfigurationInputProperty -> String
show :: ProtectedJobS3OutputConfigurationInputProperty -> String
$cshowList :: [ProtectedJobS3OutputConfigurationInputProperty] -> ShowS
showList :: [ProtectedJobS3OutputConfigurationInputProperty] -> ShowS
Prelude.Show)
mkProtectedJobS3OutputConfigurationInputProperty ::
Value Prelude.Text
-> ProtectedJobS3OutputConfigurationInputProperty
mkProtectedJobS3OutputConfigurationInputProperty :: Value Text -> ProtectedJobS3OutputConfigurationInputProperty
mkProtectedJobS3OutputConfigurationInputProperty Value Text
bucket
= ProtectedJobS3OutputConfigurationInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket,
keyPrefix :: Maybe (Value Text)
keyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProtectedJobS3OutputConfigurationInputProperty where
toResourceProperties :: ProtectedJobS3OutputConfigurationInputProperty
-> ResourceProperties
toResourceProperties
ProtectedJobS3OutputConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedJobS3OutputConfigurationInputProperty -> ()
bucket :: ProtectedJobS3OutputConfigurationInputProperty -> Value Text
keyPrefix :: ProtectedJobS3OutputConfigurationInputProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRooms::Membership.ProtectedJobS3OutputConfigurationInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([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
"KeyPrefix" (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)
keyPrefix]))}
instance JSON.ToJSON ProtectedJobS3OutputConfigurationInputProperty where
toJSON :: ProtectedJobS3OutputConfigurationInputProperty -> Value
toJSON ProtectedJobS3OutputConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedJobS3OutputConfigurationInputProperty -> ()
bucket :: ProtectedJobS3OutputConfigurationInputProperty -> Value Text
keyPrefix :: ProtectedJobS3OutputConfigurationInputProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([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
"KeyPrefix" (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)
keyPrefix])))
instance Property "Bucket" ProtectedJobS3OutputConfigurationInputProperty where
type PropertyType "Bucket" ProtectedJobS3OutputConfigurationInputProperty = Value Prelude.Text
set :: PropertyType
"Bucket" ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty
set PropertyType
"Bucket" ProtectedJobS3OutputConfigurationInputProperty
newValue ProtectedJobS3OutputConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedJobS3OutputConfigurationInputProperty -> ()
bucket :: ProtectedJobS3OutputConfigurationInputProperty -> Value Text
keyPrefix :: ProtectedJobS3OutputConfigurationInputProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
..}
= ProtectedJobS3OutputConfigurationInputProperty
{bucket :: Value Text
bucket = PropertyType
"Bucket" ProtectedJobS3OutputConfigurationInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
..}
instance Property "KeyPrefix" ProtectedJobS3OutputConfigurationInputProperty where
type PropertyType "KeyPrefix" ProtectedJobS3OutputConfigurationInputProperty = Value Prelude.Text
set :: PropertyType
"KeyPrefix" ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty
-> ProtectedJobS3OutputConfigurationInputProperty
set PropertyType
"KeyPrefix" ProtectedJobS3OutputConfigurationInputProperty
newValue ProtectedJobS3OutputConfigurationInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedJobS3OutputConfigurationInputProperty -> ()
bucket :: ProtectedJobS3OutputConfigurationInputProperty -> Value Text
keyPrefix :: ProtectedJobS3OutputConfigurationInputProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
..}
= ProtectedJobS3OutputConfigurationInputProperty
{keyPrefix :: Maybe (Value Text)
keyPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"KeyPrefix" ProtectedJobS3OutputConfigurationInputProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
..}