module Stratosphere.Bedrock.AgentAlias.AgentAliasHistoryEventProperty (
module Exports, AgentAliasHistoryEventProperty(..),
mkAgentAliasHistoryEventProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.AgentAlias.AgentAliasRoutingConfigurationListItemProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AgentAliasHistoryEventProperty
=
AgentAliasHistoryEventProperty {AgentAliasHistoryEventProperty -> ()
haddock_workaround_ :: (),
AgentAliasHistoryEventProperty -> Maybe (Value Text)
endDate :: (Prelude.Maybe (Value Prelude.Text)),
AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration :: (Prelude.Maybe [AgentAliasRoutingConfigurationListItemProperty]),
AgentAliasHistoryEventProperty -> Maybe (Value Text)
startDate :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool
(AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool)
-> (AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool)
-> Eq AgentAliasHistoryEventProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool
== :: AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool
$c/= :: AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool
/= :: AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> Bool
Prelude.Eq, Int -> AgentAliasHistoryEventProperty -> ShowS
[AgentAliasHistoryEventProperty] -> ShowS
AgentAliasHistoryEventProperty -> String
(Int -> AgentAliasHistoryEventProperty -> ShowS)
-> (AgentAliasHistoryEventProperty -> String)
-> ([AgentAliasHistoryEventProperty] -> ShowS)
-> Show AgentAliasHistoryEventProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AgentAliasHistoryEventProperty -> ShowS
showsPrec :: Int -> AgentAliasHistoryEventProperty -> ShowS
$cshow :: AgentAliasHistoryEventProperty -> String
show :: AgentAliasHistoryEventProperty -> String
$cshowList :: [AgentAliasHistoryEventProperty] -> ShowS
showList :: [AgentAliasHistoryEventProperty] -> ShowS
Prelude.Show)
mkAgentAliasHistoryEventProperty :: AgentAliasHistoryEventProperty
mkAgentAliasHistoryEventProperty :: AgentAliasHistoryEventProperty
mkAgentAliasHistoryEventProperty
= AgentAliasHistoryEventProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), endDate :: Maybe (Value Text)
endDate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration = Maybe [AgentAliasRoutingConfigurationListItemProperty]
forall a. Maybe a
Prelude.Nothing,
startDate :: Maybe (Value Text)
startDate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AgentAliasHistoryEventProperty where
toResourceProperties :: AgentAliasHistoryEventProperty -> ResourceProperties
toResourceProperties AgentAliasHistoryEventProperty {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: AgentAliasHistoryEventProperty -> ()
endDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
routingConfiguration :: AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::AgentAlias.AgentAliasHistoryEvent",
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
"EndDate" (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)
endDate,
Key
-> [AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration" ([AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value))
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration,
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
"StartDate" (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)
startDate])}
instance JSON.ToJSON AgentAliasHistoryEventProperty where
toJSON :: AgentAliasHistoryEventProperty -> Value
toJSON AgentAliasHistoryEventProperty {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: AgentAliasHistoryEventProperty -> ()
endDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
routingConfiguration :: AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value 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
"EndDate" (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)
endDate,
Key
-> [AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RoutingConfiguration" ([AgentAliasRoutingConfigurationListItemProperty] -> (Key, Value))
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration,
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
"StartDate" (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)
startDate]))
instance Property "EndDate" AgentAliasHistoryEventProperty where
type PropertyType "EndDate" AgentAliasHistoryEventProperty = Value Prelude.Text
set :: PropertyType "EndDate" AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> AgentAliasHistoryEventProperty
set PropertyType "EndDate" AgentAliasHistoryEventProperty
newValue AgentAliasHistoryEventProperty {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: AgentAliasHistoryEventProperty -> ()
endDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
routingConfiguration :: AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
..}
= AgentAliasHistoryEventProperty
{endDate :: Maybe (Value Text)
endDate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndDate" AgentAliasHistoryEventProperty
Value Text
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
haddock_workaround_ :: ()
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
..}
instance Property "RoutingConfiguration" AgentAliasHistoryEventProperty where
type PropertyType "RoutingConfiguration" AgentAliasHistoryEventProperty = [AgentAliasRoutingConfigurationListItemProperty]
set :: PropertyType "RoutingConfiguration" AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> AgentAliasHistoryEventProperty
set PropertyType "RoutingConfiguration" AgentAliasHistoryEventProperty
newValue AgentAliasHistoryEventProperty {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: AgentAliasHistoryEventProperty -> ()
endDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
routingConfiguration :: AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
..}
= AgentAliasHistoryEventProperty
{routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
routingConfiguration = [AgentAliasRoutingConfigurationListItemProperty]
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AgentAliasRoutingConfigurationListItemProperty]
PropertyType "RoutingConfiguration" AgentAliasHistoryEventProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
startDate :: Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
startDate :: Maybe (Value Text)
..}
instance Property "StartDate" AgentAliasHistoryEventProperty where
type PropertyType "StartDate" AgentAliasHistoryEventProperty = Value Prelude.Text
set :: PropertyType "StartDate" AgentAliasHistoryEventProperty
-> AgentAliasHistoryEventProperty -> AgentAliasHistoryEventProperty
set PropertyType "StartDate" AgentAliasHistoryEventProperty
newValue AgentAliasHistoryEventProperty {Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: AgentAliasHistoryEventProperty -> ()
endDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
routingConfiguration :: AgentAliasHistoryEventProperty
-> Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: AgentAliasHistoryEventProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
startDate :: Maybe (Value Text)
..}
= AgentAliasHistoryEventProperty
{startDate :: Maybe (Value Text)
startDate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StartDate" AgentAliasHistoryEventProperty
Value Text
newValue, Maybe [AgentAliasRoutingConfigurationListItemProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
haddock_workaround_ :: ()
endDate :: Maybe (Value Text)
routingConfiguration :: Maybe [AgentAliasRoutingConfigurationListItemProperty]
..}