module Stratosphere.BedrockAgentCore.GatewayTarget.SchemaDefinitionProperty (
SchemaDefinitionProperty(..), mkSchemaDefinitionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SchemaDefinitionProperty
=
SchemaDefinitionProperty {SchemaDefinitionProperty -> ()
haddock_workaround_ :: (),
SchemaDefinitionProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
items :: (Prelude.Maybe SchemaDefinitionProperty),
SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
properties :: (Prelude.Maybe (Prelude.Map Prelude.Text SchemaDefinitionProperty)),
SchemaDefinitionProperty -> Maybe (ValueList Text)
required :: (Prelude.Maybe (ValueList Prelude.Text)),
SchemaDefinitionProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool
(SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool)
-> (SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool)
-> Eq SchemaDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool
== :: SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool
$c/= :: SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool
/= :: SchemaDefinitionProperty -> SchemaDefinitionProperty -> Bool
Prelude.Eq, Int -> SchemaDefinitionProperty -> ShowS
[SchemaDefinitionProperty] -> ShowS
SchemaDefinitionProperty -> String
(Int -> SchemaDefinitionProperty -> ShowS)
-> (SchemaDefinitionProperty -> String)
-> ([SchemaDefinitionProperty] -> ShowS)
-> Show SchemaDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SchemaDefinitionProperty -> ShowS
showsPrec :: Int -> SchemaDefinitionProperty -> ShowS
$cshow :: SchemaDefinitionProperty -> String
show :: SchemaDefinitionProperty -> String
$cshowList :: [SchemaDefinitionProperty] -> ShowS
showList :: [SchemaDefinitionProperty] -> ShowS
Prelude.Show)
mkSchemaDefinitionProperty ::
Value Prelude.Text -> SchemaDefinitionProperty
mkSchemaDefinitionProperty :: Value Text -> SchemaDefinitionProperty
mkSchemaDefinitionProperty Value Text
type'
= SchemaDefinitionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, items :: Maybe SchemaDefinitionProperty
items = Maybe SchemaDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
properties :: Maybe (Map Text SchemaDefinitionProperty)
properties = Maybe (Map Text SchemaDefinitionProperty)
forall a. Maybe a
Prelude.Nothing, required :: Maybe (ValueList Text)
required = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SchemaDefinitionProperty where
toResourceProperties :: SchemaDefinitionProperty -> ResourceProperties
toResourceProperties SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::GatewayTarget.SchemaDefinition",
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
"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 -> 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
"Description" (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)
description,
Key -> SchemaDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Items" (SchemaDefinitionProperty -> (Key, Value))
-> Maybe SchemaDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaDefinitionProperty
items,
Key -> Map Text SchemaDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Properties" (Map Text SchemaDefinitionProperty -> (Key, Value))
-> Maybe (Map Text SchemaDefinitionProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text SchemaDefinitionProperty)
properties,
Key -> ValueList 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
"Required" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
required]))}
instance JSON.ToJSON SchemaDefinitionProperty where
toJSON :: SchemaDefinitionProperty -> Value
toJSON SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
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
"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 -> 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
"Description" (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)
description,
Key -> SchemaDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Items" (SchemaDefinitionProperty -> (Key, Value))
-> Maybe SchemaDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaDefinitionProperty
items,
Key -> Map Text SchemaDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Properties" (Map Text SchemaDefinitionProperty -> (Key, Value))
-> Maybe (Map Text SchemaDefinitionProperty) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text SchemaDefinitionProperty)
properties,
Key -> ValueList 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
"Required" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
required])))
instance Property "Description" SchemaDefinitionProperty where
type PropertyType "Description" SchemaDefinitionProperty = Value Prelude.Text
set :: PropertyType "Description" SchemaDefinitionProperty
-> SchemaDefinitionProperty -> SchemaDefinitionProperty
set PropertyType "Description" SchemaDefinitionProperty
newValue SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= SchemaDefinitionProperty
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" SchemaDefinitionProperty
Value Text
newValue, Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: ()
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Items" SchemaDefinitionProperty where
type PropertyType "Items" SchemaDefinitionProperty = SchemaDefinitionProperty
set :: PropertyType "Items" SchemaDefinitionProperty
-> SchemaDefinitionProperty -> SchemaDefinitionProperty
set PropertyType "Items" SchemaDefinitionProperty
newValue SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= SchemaDefinitionProperty {items :: Maybe SchemaDefinitionProperty
items = SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Items" SchemaDefinitionProperty
SchemaDefinitionProperty
newValue, Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Properties" SchemaDefinitionProperty where
type PropertyType "Properties" SchemaDefinitionProperty = Prelude.Map Prelude.Text SchemaDefinitionProperty
set :: PropertyType "Properties" SchemaDefinitionProperty
-> SchemaDefinitionProperty -> SchemaDefinitionProperty
set PropertyType "Properties" SchemaDefinitionProperty
newValue SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= SchemaDefinitionProperty {properties :: Maybe (Map Text SchemaDefinitionProperty)
properties = Map Text SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text SchemaDefinitionProperty
PropertyType "Properties" SchemaDefinitionProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
required :: Maybe (ValueList Text)
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
required :: Maybe (ValueList Text)
type' :: Value Text
..}
instance Property "Required" SchemaDefinitionProperty where
type PropertyType "Required" SchemaDefinitionProperty = ValueList Prelude.Text
set :: PropertyType "Required" SchemaDefinitionProperty
-> SchemaDefinitionProperty -> SchemaDefinitionProperty
set PropertyType "Required" SchemaDefinitionProperty
newValue SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= SchemaDefinitionProperty {required :: Maybe (ValueList Text)
required = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Required" SchemaDefinitionProperty
ValueList Text
newValue, Maybe (Map Text SchemaDefinitionProperty)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
type' :: Value Text
..}
instance Property "Type" SchemaDefinitionProperty where
type PropertyType "Type" SchemaDefinitionProperty = Value Prelude.Text
set :: PropertyType "Type" SchemaDefinitionProperty
-> SchemaDefinitionProperty -> SchemaDefinitionProperty
set PropertyType "Type" SchemaDefinitionProperty
newValue SchemaDefinitionProperty {Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
Value Text
haddock_workaround_ :: SchemaDefinitionProperty -> ()
description :: SchemaDefinitionProperty -> Maybe (Value Text)
items :: SchemaDefinitionProperty -> Maybe SchemaDefinitionProperty
properties :: SchemaDefinitionProperty
-> Maybe (Map Text SchemaDefinitionProperty)
required :: SchemaDefinitionProperty -> Maybe (ValueList Text)
type' :: SchemaDefinitionProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
type' :: Value Text
..}
= SchemaDefinitionProperty {type' :: Value Text
type' = PropertyType "Type" SchemaDefinitionProperty
Value Text
newValue, Maybe (Map Text SchemaDefinitionProperty)
Maybe (ValueList Text)
Maybe (Value Text)
Maybe SchemaDefinitionProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
items :: Maybe SchemaDefinitionProperty
properties :: Maybe (Map Text SchemaDefinitionProperty)
required :: Maybe (ValueList Text)
..}