module Stratosphere.CleanRooms.Membership.ProtectedQueryS3OutputConfigurationProperty (
        ProtectedQueryS3OutputConfigurationProperty(..),
        mkProtectedQueryS3OutputConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProtectedQueryS3OutputConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html>
    ProtectedQueryS3OutputConfigurationProperty {ProtectedQueryS3OutputConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html#cfn-cleanrooms-membership-protectedquerys3outputconfiguration-bucket>
                                                 ProtectedQueryS3OutputConfigurationProperty -> Value Text
bucket :: (Value Prelude.Text),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html#cfn-cleanrooms-membership-protectedquerys3outputconfiguration-keyprefix>
                                                 ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
keyPrefix :: (Prelude.Maybe (Value Prelude.Text)),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html#cfn-cleanrooms-membership-protectedquerys3outputconfiguration-resultformat>
                                                 ProtectedQueryS3OutputConfigurationProperty -> Value Text
resultFormat :: (Value Prelude.Text),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-membership-protectedquerys3outputconfiguration.html#cfn-cleanrooms-membership-protectedquerys3outputconfiguration-singlefileoutput>
                                                 ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
singleFileOutput :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty -> Bool
(ProtectedQueryS3OutputConfigurationProperty
 -> ProtectedQueryS3OutputConfigurationProperty -> Bool)
-> (ProtectedQueryS3OutputConfigurationProperty
    -> ProtectedQueryS3OutputConfigurationProperty -> Bool)
-> Eq ProtectedQueryS3OutputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty -> Bool
== :: ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty -> Bool
$c/= :: ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty -> Bool
/= :: ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty -> Bool
Prelude.Eq, Int -> ProtectedQueryS3OutputConfigurationProperty -> ShowS
[ProtectedQueryS3OutputConfigurationProperty] -> ShowS
ProtectedQueryS3OutputConfigurationProperty -> String
(Int -> ProtectedQueryS3OutputConfigurationProperty -> ShowS)
-> (ProtectedQueryS3OutputConfigurationProperty -> String)
-> ([ProtectedQueryS3OutputConfigurationProperty] -> ShowS)
-> Show ProtectedQueryS3OutputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProtectedQueryS3OutputConfigurationProperty -> ShowS
showsPrec :: Int -> ProtectedQueryS3OutputConfigurationProperty -> ShowS
$cshow :: ProtectedQueryS3OutputConfigurationProperty -> String
show :: ProtectedQueryS3OutputConfigurationProperty -> String
$cshowList :: [ProtectedQueryS3OutputConfigurationProperty] -> ShowS
showList :: [ProtectedQueryS3OutputConfigurationProperty] -> ShowS
Prelude.Show)
mkProtectedQueryS3OutputConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> ProtectedQueryS3OutputConfigurationProperty
mkProtectedQueryS3OutputConfigurationProperty :: Value Text
-> Value Text -> ProtectedQueryS3OutputConfigurationProperty
mkProtectedQueryS3OutputConfigurationProperty Value Text
bucket Value Text
resultFormat
  = ProtectedQueryS3OutputConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket,
       resultFormat :: Value Text
resultFormat = Value Text
resultFormat, keyPrefix :: Maybe (Value Text)
keyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       singleFileOutput :: Maybe (Value Bool)
singleFileOutput = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProtectedQueryS3OutputConfigurationProperty where
  toResourceProperties :: ProtectedQueryS3OutputConfigurationProperty -> ResourceProperties
toResourceProperties
    ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CleanRooms::Membership.ProtectedQueryS3OutputConfiguration",
         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, Key
"ResultFormat" 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
resultFormat]
                           ([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,
                               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
"SingleFileOutput" (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)
singleFileOutput]))}
instance JSON.ToJSON ProtectedQueryS3OutputConfigurationProperty where
  toJSON :: ProtectedQueryS3OutputConfigurationProperty -> Value
toJSON ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = [(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, Key
"ResultFormat" 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
resultFormat]
              ([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,
                  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
"SingleFileOutput" (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)
singleFileOutput])))
instance Property "Bucket" ProtectedQueryS3OutputConfigurationProperty where
  type PropertyType "Bucket" ProtectedQueryS3OutputConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Bucket" ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
set PropertyType "Bucket" ProtectedQueryS3OutputConfigurationProperty
newValue ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = ProtectedQueryS3OutputConfigurationProperty
        {bucket :: Value Text
bucket = PropertyType "Bucket" ProtectedQueryS3OutputConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
instance Property "KeyPrefix" ProtectedQueryS3OutputConfigurationProperty where
  type PropertyType "KeyPrefix" ProtectedQueryS3OutputConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "KeyPrefix" ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
set PropertyType
  "KeyPrefix" ProtectedQueryS3OutputConfigurationProperty
newValue ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = ProtectedQueryS3OutputConfigurationProperty
        {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" ProtectedQueryS3OutputConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
instance Property "ResultFormat" ProtectedQueryS3OutputConfigurationProperty where
  type PropertyType "ResultFormat" ProtectedQueryS3OutputConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "ResultFormat" ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
set PropertyType
  "ResultFormat" ProtectedQueryS3OutputConfigurationProperty
newValue ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = ProtectedQueryS3OutputConfigurationProperty
        {resultFormat :: Value Text
resultFormat = PropertyType
  "ResultFormat" ProtectedQueryS3OutputConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
singleFileOutput :: Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
singleFileOutput :: Maybe (Value Bool)
..}
instance Property "SingleFileOutput" ProtectedQueryS3OutputConfigurationProperty where
  type PropertyType "SingleFileOutput" ProtectedQueryS3OutputConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "SingleFileOutput" ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
-> ProtectedQueryS3OutputConfigurationProperty
set PropertyType
  "SingleFileOutput" ProtectedQueryS3OutputConfigurationProperty
newValue ProtectedQueryS3OutputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProtectedQueryS3OutputConfigurationProperty -> ()
bucket :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
keyPrefix :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Text)
resultFormat :: ProtectedQueryS3OutputConfigurationProperty -> Value Text
singleFileOutput :: ProtectedQueryS3OutputConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
singleFileOutput :: Maybe (Value Bool)
..}
    = ProtectedQueryS3OutputConfigurationProperty
        {singleFileOutput :: Maybe (Value Bool)
singleFileOutput = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SingleFileOutput" ProtectedQueryS3OutputConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
resultFormat :: Value Text
..}