module Stratosphere.Bedrock.Blueprint (
        Blueprint(..), mkBlueprint
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Blueprint
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html>
    Blueprint {Blueprint -> ()
haddock_workaround_ :: (),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-blueprintname>
               Blueprint -> Value Text
blueprintName :: (Value Prelude.Text),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-kmsencryptioncontext>
               Blueprint -> Maybe (Map Text (Value Text))
kmsEncryptionContext :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-kmskeyid>
               Blueprint -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-schema>
               Blueprint -> Object
schema :: JSON.Object,
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-tags>
               Blueprint -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-blueprint.html#cfn-bedrock-blueprint-type>
               Blueprint -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (Blueprint -> Blueprint -> Bool
(Blueprint -> Blueprint -> Bool)
-> (Blueprint -> Blueprint -> Bool) -> Eq Blueprint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Blueprint -> Blueprint -> Bool
== :: Blueprint -> Blueprint -> Bool
$c/= :: Blueprint -> Blueprint -> Bool
/= :: Blueprint -> Blueprint -> Bool
Prelude.Eq, Int -> Blueprint -> ShowS
[Blueprint] -> ShowS
Blueprint -> String
(Int -> Blueprint -> ShowS)
-> (Blueprint -> String)
-> ([Blueprint] -> ShowS)
-> Show Blueprint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Blueprint -> ShowS
showsPrec :: Int -> Blueprint -> ShowS
$cshow :: Blueprint -> String
show :: Blueprint -> String
$cshowList :: [Blueprint] -> ShowS
showList :: [Blueprint] -> ShowS
Prelude.Show)
mkBlueprint ::
  Value Prelude.Text
  -> JSON.Object -> Value Prelude.Text -> Blueprint
mkBlueprint :: Value Text -> Object -> Value Text -> Blueprint
mkBlueprint Value Text
blueprintName Object
schema Value Text
type'
  = Blueprint
      {haddock_workaround_ :: ()
haddock_workaround_ = (), blueprintName :: Value Text
blueprintName = Value Text
blueprintName,
       schema :: Object
schema = Object
schema, type' :: Value Text
type' = Value Text
type',
       kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsEncryptionContext = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing, kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Blueprint where
  toResourceProperties :: Blueprint -> ResourceProperties
toResourceProperties Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Blueprint", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"BlueprintName" 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
blueprintName, Key
"Schema" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
schema,
                            Key
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Map Text (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
"KmsEncryptionContext" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
kmsEncryptionContext,
                               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
"KmsKeyId" (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)
kmsKeyId,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Blueprint where
  toJSON :: Blueprint -> Value
toJSON Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: 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
"BlueprintName" 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
blueprintName, Key
"Schema" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
schema,
               Key
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Map Text (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
"KmsEncryptionContext" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
kmsEncryptionContext,
                  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
"KmsKeyId" (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)
kmsKeyId,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "BlueprintName" Blueprint where
  type PropertyType "BlueprintName" Blueprint = Value Prelude.Text
  set :: PropertyType "BlueprintName" Blueprint -> Blueprint -> Blueprint
set PropertyType "BlueprintName" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Blueprint {blueprintName :: Value Text
blueprintName = PropertyType "BlueprintName" Blueprint
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: ()
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "KmsEncryptionContext" Blueprint where
  type PropertyType "KmsEncryptionContext" Blueprint = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "KmsEncryptionContext" Blueprint
-> Blueprint -> Blueprint
set PropertyType "KmsEncryptionContext" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Blueprint {kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsEncryptionContext = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "KmsEncryptionContext" Blueprint
newValue, Maybe [Tag]
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "KmsKeyId" Blueprint where
  type PropertyType "KmsKeyId" Blueprint = Value Prelude.Text
  set :: PropertyType "KmsKeyId" Blueprint -> Blueprint -> Blueprint
set PropertyType "KmsKeyId" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Blueprint {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" Blueprint
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
()
Object
Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Schema" Blueprint where
  type PropertyType "Schema" Blueprint = JSON.Object
  set :: PropertyType "Schema" Blueprint -> Blueprint -> Blueprint
set PropertyType "Schema" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..} = Blueprint {schema :: Object
schema = Object
PropertyType "Schema" Blueprint
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" Blueprint where
  type PropertyType "Tags" Blueprint = [Tag]
  set :: PropertyType "Tags" Blueprint -> Blueprint -> Blueprint
set PropertyType "Tags" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Blueprint {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Blueprint
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
type' :: Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
type' :: Value Text
..}
instance Property "Type" Blueprint where
  type PropertyType "Type" Blueprint = Value Prelude.Text
  set :: PropertyType "Type" Blueprint -> Blueprint -> Blueprint
set PropertyType "Type" Blueprint
newValue Blueprint {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: Blueprint -> ()
blueprintName :: Blueprint -> Value Text
kmsEncryptionContext :: Blueprint -> Maybe (Map Text (Value Text))
kmsKeyId :: Blueprint -> Maybe (Value Text)
schema :: Blueprint -> Object
tags :: Blueprint -> Maybe [Tag]
type' :: Blueprint -> Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
type' :: Value Text
..} = Blueprint {type' :: Value Text
type' = PropertyType "Type" Blueprint
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Object
Value Text
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
haddock_workaround_ :: ()
blueprintName :: Value Text
kmsEncryptionContext :: Maybe (Map Text (Value Text))
kmsKeyId :: Maybe (Value Text)
schema :: Object
tags :: Maybe [Tag]
..}