module Stratosphere.Bedrock.DataAutomationProject.CustomOutputConfigurationProperty (
        module Exports, CustomOutputConfigurationProperty(..),
        mkCustomOutputConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataAutomationProject.BlueprintItemProperty as Exports
import Stratosphere.ResourceProperties
data CustomOutputConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-customoutputconfiguration.html>
    CustomOutputConfigurationProperty {CustomOutputConfigurationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-customoutputconfiguration.html#cfn-bedrock-dataautomationproject-customoutputconfiguration-blueprints>
                                       CustomOutputConfigurationProperty -> Maybe [BlueprintItemProperty]
blueprints :: (Prelude.Maybe [BlueprintItemProperty])}
  deriving stock (CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty -> Bool
(CustomOutputConfigurationProperty
 -> CustomOutputConfigurationProperty -> Bool)
-> (CustomOutputConfigurationProperty
    -> CustomOutputConfigurationProperty -> Bool)
-> Eq CustomOutputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty -> Bool
== :: CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty -> Bool
$c/= :: CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty -> Bool
/= :: CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomOutputConfigurationProperty -> ShowS
[CustomOutputConfigurationProperty] -> ShowS
CustomOutputConfigurationProperty -> String
(Int -> CustomOutputConfigurationProperty -> ShowS)
-> (CustomOutputConfigurationProperty -> String)
-> ([CustomOutputConfigurationProperty] -> ShowS)
-> Show CustomOutputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomOutputConfigurationProperty -> ShowS
showsPrec :: Int -> CustomOutputConfigurationProperty -> ShowS
$cshow :: CustomOutputConfigurationProperty -> String
show :: CustomOutputConfigurationProperty -> String
$cshowList :: [CustomOutputConfigurationProperty] -> ShowS
showList :: [CustomOutputConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomOutputConfigurationProperty ::
  CustomOutputConfigurationProperty
mkCustomOutputConfigurationProperty :: CustomOutputConfigurationProperty
mkCustomOutputConfigurationProperty
  = CustomOutputConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), blueprints :: Maybe [BlueprintItemProperty]
blueprints = Maybe [BlueprintItemProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomOutputConfigurationProperty where
  toResourceProperties :: CustomOutputConfigurationProperty -> ResourceProperties
toResourceProperties CustomOutputConfigurationProperty {Maybe [BlueprintItemProperty]
()
haddock_workaround_ :: CustomOutputConfigurationProperty -> ()
blueprints :: CustomOutputConfigurationProperty -> Maybe [BlueprintItemProperty]
haddock_workaround_ :: ()
blueprints :: Maybe [BlueprintItemProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.CustomOutputConfiguration",
         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 -> [BlueprintItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Blueprints" ([BlueprintItemProperty] -> (Key, Value))
-> Maybe [BlueprintItemProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [BlueprintItemProperty]
blueprints])}
instance JSON.ToJSON CustomOutputConfigurationProperty where
  toJSON :: CustomOutputConfigurationProperty -> Value
toJSON CustomOutputConfigurationProperty {Maybe [BlueprintItemProperty]
()
haddock_workaround_ :: CustomOutputConfigurationProperty -> ()
blueprints :: CustomOutputConfigurationProperty -> Maybe [BlueprintItemProperty]
haddock_workaround_ :: ()
blueprints :: Maybe [BlueprintItemProperty]
..}
    = [(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 -> [BlueprintItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Blueprints" ([BlueprintItemProperty] -> (Key, Value))
-> Maybe [BlueprintItemProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [BlueprintItemProperty]
blueprints]))
instance Property "Blueprints" CustomOutputConfigurationProperty where
  type PropertyType "Blueprints" CustomOutputConfigurationProperty = [BlueprintItemProperty]
  set :: PropertyType "Blueprints" CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty
-> CustomOutputConfigurationProperty
set PropertyType "Blueprints" CustomOutputConfigurationProperty
newValue CustomOutputConfigurationProperty {Maybe [BlueprintItemProperty]
()
haddock_workaround_ :: CustomOutputConfigurationProperty -> ()
blueprints :: CustomOutputConfigurationProperty -> Maybe [BlueprintItemProperty]
haddock_workaround_ :: ()
blueprints :: Maybe [BlueprintItemProperty]
..}
    = CustomOutputConfigurationProperty
        {blueprints :: Maybe [BlueprintItemProperty]
blueprints = [BlueprintItemProperty] -> Maybe [BlueprintItemProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [BlueprintItemProperty]
PropertyType "Blueprints" CustomOutputConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}