module Stratosphere.BedrockAgentCore.Gateway.MCPGatewayConfigurationProperty (
        MCPGatewayConfigurationProperty(..),
        mkMCPGatewayConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MCPGatewayConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-gateway-mcpgatewayconfiguration.html>
    MCPGatewayConfigurationProperty {MCPGatewayConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-gateway-mcpgatewayconfiguration.html#cfn-bedrockagentcore-gateway-mcpgatewayconfiguration-instructions>
                                     MCPGatewayConfigurationProperty -> Maybe (Value Text)
instructions :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-gateway-mcpgatewayconfiguration.html#cfn-bedrockagentcore-gateway-mcpgatewayconfiguration-searchtype>
                                     MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-gateway-mcpgatewayconfiguration.html#cfn-bedrockagentcore-gateway-mcpgatewayconfiguration-supportedversions>
                                     MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
supportedVersions :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty -> Bool
(MCPGatewayConfigurationProperty
 -> MCPGatewayConfigurationProperty -> Bool)
-> (MCPGatewayConfigurationProperty
    -> MCPGatewayConfigurationProperty -> Bool)
-> Eq MCPGatewayConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty -> Bool
== :: MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty -> Bool
$c/= :: MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty -> Bool
/= :: MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty -> Bool
Prelude.Eq, Int -> MCPGatewayConfigurationProperty -> ShowS
[MCPGatewayConfigurationProperty] -> ShowS
MCPGatewayConfigurationProperty -> String
(Int -> MCPGatewayConfigurationProperty -> ShowS)
-> (MCPGatewayConfigurationProperty -> String)
-> ([MCPGatewayConfigurationProperty] -> ShowS)
-> Show MCPGatewayConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MCPGatewayConfigurationProperty -> ShowS
showsPrec :: Int -> MCPGatewayConfigurationProperty -> ShowS
$cshow :: MCPGatewayConfigurationProperty -> String
show :: MCPGatewayConfigurationProperty -> String
$cshowList :: [MCPGatewayConfigurationProperty] -> ShowS
showList :: [MCPGatewayConfigurationProperty] -> ShowS
Prelude.Show)
mkMCPGatewayConfigurationProperty ::
  MCPGatewayConfigurationProperty
mkMCPGatewayConfigurationProperty :: MCPGatewayConfigurationProperty
mkMCPGatewayConfigurationProperty
  = MCPGatewayConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instructions :: Maybe (Value Text)
instructions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       searchType :: Maybe (Value Text)
searchType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, supportedVersions :: Maybe (ValueList Text)
supportedVersions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MCPGatewayConfigurationProperty where
  toResourceProperties :: MCPGatewayConfigurationProperty -> ResourceProperties
toResourceProperties MCPGatewayConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: MCPGatewayConfigurationProperty -> ()
instructions :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
supportedVersions :: MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Gateway.MCPGatewayConfiguration",
         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
"Instructions" (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)
instructions,
                            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
"SearchType" (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)
searchType,
                            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
"SupportedVersions" (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)
supportedVersions])}
instance JSON.ToJSON MCPGatewayConfigurationProperty where
  toJSON :: MCPGatewayConfigurationProperty -> Value
toJSON MCPGatewayConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: MCPGatewayConfigurationProperty -> ()
instructions :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
supportedVersions :: MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
    = [(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
"Instructions" (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)
instructions,
               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
"SearchType" (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)
searchType,
               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
"SupportedVersions" (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)
supportedVersions]))
instance Property "Instructions" MCPGatewayConfigurationProperty where
  type PropertyType "Instructions" MCPGatewayConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Instructions" MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
set PropertyType "Instructions" MCPGatewayConfigurationProperty
newValue MCPGatewayConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: MCPGatewayConfigurationProperty -> ()
instructions :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
supportedVersions :: MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
    = MCPGatewayConfigurationProperty
        {instructions :: Maybe (Value Text)
instructions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Instructions" MCPGatewayConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
instance Property "SearchType" MCPGatewayConfigurationProperty where
  type PropertyType "SearchType" MCPGatewayConfigurationProperty = Value Prelude.Text
  set :: PropertyType "SearchType" MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
set PropertyType "SearchType" MCPGatewayConfigurationProperty
newValue MCPGatewayConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: MCPGatewayConfigurationProperty -> ()
instructions :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
supportedVersions :: MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
    = MCPGatewayConfigurationProperty
        {searchType :: Maybe (Value Text)
searchType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SearchType" MCPGatewayConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
instance Property "SupportedVersions" MCPGatewayConfigurationProperty where
  type PropertyType "SupportedVersions" MCPGatewayConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "SupportedVersions" MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
-> MCPGatewayConfigurationProperty
set PropertyType "SupportedVersions" MCPGatewayConfigurationProperty
newValue MCPGatewayConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: MCPGatewayConfigurationProperty -> ()
instructions :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
searchType :: MCPGatewayConfigurationProperty -> Maybe (Value Text)
supportedVersions :: MCPGatewayConfigurationProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
supportedVersions :: Maybe (ValueList Text)
..}
    = MCPGatewayConfigurationProperty
        {supportedVersions :: Maybe (ValueList Text)
supportedVersions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SupportedVersions" MCPGatewayConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
searchType :: Maybe (Value Text)
..}