module Stratosphere.BedrockAgentCore.GatewayTarget.ApiSchemaConfigurationProperty (
module Exports, ApiSchemaConfigurationProperty(..),
mkApiSchemaConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.GatewayTarget.S3ConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApiSchemaConfigurationProperty
=
ApiSchemaConfigurationProperty {ApiSchemaConfigurationProperty -> ()
haddock_workaround_ :: (),
ApiSchemaConfigurationProperty -> Maybe (Value Text)
inlinePayload :: (Prelude.Maybe (Value Prelude.Text)),
ApiSchemaConfigurationProperty -> Maybe S3ConfigurationProperty
s3 :: (Prelude.Maybe S3ConfigurationProperty)}
deriving stock (ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool
(ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool)
-> (ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool)
-> Eq ApiSchemaConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool
== :: ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool
$c/= :: ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool
/= :: ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> Bool
Prelude.Eq, Int -> ApiSchemaConfigurationProperty -> ShowS
[ApiSchemaConfigurationProperty] -> ShowS
ApiSchemaConfigurationProperty -> String
(Int -> ApiSchemaConfigurationProperty -> ShowS)
-> (ApiSchemaConfigurationProperty -> String)
-> ([ApiSchemaConfigurationProperty] -> ShowS)
-> Show ApiSchemaConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApiSchemaConfigurationProperty -> ShowS
showsPrec :: Int -> ApiSchemaConfigurationProperty -> ShowS
$cshow :: ApiSchemaConfigurationProperty -> String
show :: ApiSchemaConfigurationProperty -> String
$cshowList :: [ApiSchemaConfigurationProperty] -> ShowS
showList :: [ApiSchemaConfigurationProperty] -> ShowS
Prelude.Show)
mkApiSchemaConfigurationProperty :: ApiSchemaConfigurationProperty
mkApiSchemaConfigurationProperty :: ApiSchemaConfigurationProperty
mkApiSchemaConfigurationProperty
= ApiSchemaConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), inlinePayload :: Maybe (Value Text)
inlinePayload = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
s3 :: Maybe S3ConfigurationProperty
s3 = Maybe S3ConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApiSchemaConfigurationProperty where
toResourceProperties :: ApiSchemaConfigurationProperty -> ResourceProperties
toResourceProperties ApiSchemaConfigurationProperty {Maybe (Value Text)
Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ApiSchemaConfigurationProperty -> ()
inlinePayload :: ApiSchemaConfigurationProperty -> Maybe (Value Text)
s3 :: ApiSchemaConfigurationProperty -> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
s3 :: Maybe S3ConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::GatewayTarget.ApiSchemaConfiguration",
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 -> 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
"InlinePayload" (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)
inlinePayload,
Key -> S3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3" (S3ConfigurationProperty -> (Key, Value))
-> Maybe S3ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ConfigurationProperty
s3])}
instance JSON.ToJSON ApiSchemaConfigurationProperty where
toJSON :: ApiSchemaConfigurationProperty -> Value
toJSON ApiSchemaConfigurationProperty {Maybe (Value Text)
Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ApiSchemaConfigurationProperty -> ()
inlinePayload :: ApiSchemaConfigurationProperty -> Maybe (Value Text)
s3 :: ApiSchemaConfigurationProperty -> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
s3 :: Maybe S3ConfigurationProperty
..}
= [(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 -> 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
"InlinePayload" (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)
inlinePayload,
Key -> S3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3" (S3ConfigurationProperty -> (Key, Value))
-> Maybe S3ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ConfigurationProperty
s3]))
instance Property "InlinePayload" ApiSchemaConfigurationProperty where
type PropertyType "InlinePayload" ApiSchemaConfigurationProperty = Value Prelude.Text
set :: PropertyType "InlinePayload" ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> ApiSchemaConfigurationProperty
set PropertyType "InlinePayload" ApiSchemaConfigurationProperty
newValue ApiSchemaConfigurationProperty {Maybe (Value Text)
Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ApiSchemaConfigurationProperty -> ()
inlinePayload :: ApiSchemaConfigurationProperty -> Maybe (Value Text)
s3 :: ApiSchemaConfigurationProperty -> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
s3 :: Maybe S3ConfigurationProperty
..}
= ApiSchemaConfigurationProperty
{inlinePayload :: Maybe (Value Text)
inlinePayload = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InlinePayload" ApiSchemaConfigurationProperty
Value Text
newValue, Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ()
s3 :: Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
s3 :: Maybe S3ConfigurationProperty
..}
instance Property "S3" ApiSchemaConfigurationProperty where
type PropertyType "S3" ApiSchemaConfigurationProperty = S3ConfigurationProperty
set :: PropertyType "S3" ApiSchemaConfigurationProperty
-> ApiSchemaConfigurationProperty -> ApiSchemaConfigurationProperty
set PropertyType "S3" ApiSchemaConfigurationProperty
newValue ApiSchemaConfigurationProperty {Maybe (Value Text)
Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ApiSchemaConfigurationProperty -> ()
inlinePayload :: ApiSchemaConfigurationProperty -> Maybe (Value Text)
s3 :: ApiSchemaConfigurationProperty -> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
s3 :: Maybe S3ConfigurationProperty
..}
= ApiSchemaConfigurationProperty {s3 :: Maybe S3ConfigurationProperty
s3 = S3ConfigurationProperty -> Maybe S3ConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3" ApiSchemaConfigurationProperty
S3ConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
haddock_workaround_ :: ()
inlinePayload :: Maybe (Value Text)
..}