content: 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 {endDate :: (Prelude.Maybe (Value Prelude.Text)),
                                      routingConfiguration :: (Prelude.Maybe [AgentAliasRoutingConfigurationListItemProperty]),
                                      startDate :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkAgentAliasHistoryEventProperty :: AgentAliasHistoryEventProperty
  mkAgentAliasHistoryEventProperty
    = AgentAliasHistoryEventProperty
        {endDate = Prelude.Nothing, routingConfiguration = Prelude.Nothing,
         startDate = Prelude.Nothing}
  instance ToResourceProperties AgentAliasHistoryEventProperty where
    toResourceProperties AgentAliasHistoryEventProperty {..}
      = ResourceProperties
          {awsType = "AWS::Bedrock::AgentAlias.AgentAliasHistoryEvent",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "EndDate" Prelude.<$> endDate,
                              (JSON..=) "RoutingConfiguration" Prelude.<$> routingConfiguration,
                              (JSON..=) "StartDate" Prelude.<$> startDate])}
  instance JSON.ToJSON AgentAliasHistoryEventProperty where
    toJSON AgentAliasHistoryEventProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "EndDate" Prelude.<$> endDate,
                 (JSON..=) "RoutingConfiguration" Prelude.<$> routingConfiguration,
                 (JSON..=) "StartDate" Prelude.<$> startDate]))
  instance Property "EndDate" AgentAliasHistoryEventProperty where
    type PropertyType "EndDate" AgentAliasHistoryEventProperty = Value Prelude.Text
    set newValue AgentAliasHistoryEventProperty {..}
      = AgentAliasHistoryEventProperty
          {endDate = Prelude.pure newValue, ..}
  instance Property "RoutingConfiguration" AgentAliasHistoryEventProperty where
    type PropertyType "RoutingConfiguration" AgentAliasHistoryEventProperty = [AgentAliasRoutingConfigurationListItemProperty]
    set newValue AgentAliasHistoryEventProperty {..}
      = AgentAliasHistoryEventProperty
          {routingConfiguration = Prelude.pure newValue, ..}
  instance Property "StartDate" AgentAliasHistoryEventProperty where
    type PropertyType "StartDate" AgentAliasHistoryEventProperty = Value Prelude.Text
    set newValue AgentAliasHistoryEventProperty {..}
      = AgentAliasHistoryEventProperty
          {startDate = Prelude.pure newValue, ..}