{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FIS.Types.ExperimentTemplate
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FIS.Types.ExperimentTemplate where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FIS.Types.ExperimentTemplateAction
import Amazonka.FIS.Types.ExperimentTemplateLogConfiguration
import Amazonka.FIS.Types.ExperimentTemplateStopCondition
import Amazonka.FIS.Types.ExperimentTemplateTarget
import qualified Amazonka.Prelude as Prelude

-- | Describes an experiment template.
--
-- /See:/ 'newExperimentTemplate' smart constructor.
data ExperimentTemplate = ExperimentTemplate'
  { -- | The actions for the experiment.
    ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateAction)
actions :: Prelude.Maybe (Prelude.HashMap Prelude.Text ExperimentTemplateAction),
    -- | The time the experiment template was created.
    ExperimentTemplate -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The description for the experiment template.
    ExperimentTemplate -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ID of the experiment template.
    ExperimentTemplate -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The time the experiment template was last updated.
    ExperimentTemplate -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Data.POSIX,
    -- | The configuration for experiment logging.
    ExperimentTemplate -> Maybe ExperimentTemplateLogConfiguration
logConfiguration :: Prelude.Maybe ExperimentTemplateLogConfiguration,
    -- | The Amazon Resource Name (ARN) of an IAM role.
    ExperimentTemplate -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The stop conditions for the experiment.
    ExperimentTemplate -> Maybe [ExperimentTemplateStopCondition]
stopConditions :: Prelude.Maybe [ExperimentTemplateStopCondition],
    -- | The tags for the experiment template.
    ExperimentTemplate -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The targets for the experiment.
    ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateTarget)
targets :: Prelude.Maybe (Prelude.HashMap Prelude.Text ExperimentTemplateTarget)
  }
  deriving (ExperimentTemplate -> ExperimentTemplate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExperimentTemplate -> ExperimentTemplate -> Bool
$c/= :: ExperimentTemplate -> ExperimentTemplate -> Bool
== :: ExperimentTemplate -> ExperimentTemplate -> Bool
$c== :: ExperimentTemplate -> ExperimentTemplate -> Bool
Prelude.Eq, ReadPrec [ExperimentTemplate]
ReadPrec ExperimentTemplate
Int -> ReadS ExperimentTemplate
ReadS [ExperimentTemplate]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExperimentTemplate]
$creadListPrec :: ReadPrec [ExperimentTemplate]
readPrec :: ReadPrec ExperimentTemplate
$creadPrec :: ReadPrec ExperimentTemplate
readList :: ReadS [ExperimentTemplate]
$creadList :: ReadS [ExperimentTemplate]
readsPrec :: Int -> ReadS ExperimentTemplate
$creadsPrec :: Int -> ReadS ExperimentTemplate
Prelude.Read, Int -> ExperimentTemplate -> ShowS
[ExperimentTemplate] -> ShowS
ExperimentTemplate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExperimentTemplate] -> ShowS
$cshowList :: [ExperimentTemplate] -> ShowS
show :: ExperimentTemplate -> String
$cshow :: ExperimentTemplate -> String
showsPrec :: Int -> ExperimentTemplate -> ShowS
$cshowsPrec :: Int -> ExperimentTemplate -> ShowS
Prelude.Show, forall x. Rep ExperimentTemplate x -> ExperimentTemplate
forall x. ExperimentTemplate -> Rep ExperimentTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExperimentTemplate x -> ExperimentTemplate
$cfrom :: forall x. ExperimentTemplate -> Rep ExperimentTemplate x
Prelude.Generic)

-- |
-- Create a value of 'ExperimentTemplate' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'actions', 'experimentTemplate_actions' - The actions for the experiment.
--
-- 'creationTime', 'experimentTemplate_creationTime' - The time the experiment template was created.
--
-- 'description', 'experimentTemplate_description' - The description for the experiment template.
--
-- 'id', 'experimentTemplate_id' - The ID of the experiment template.
--
-- 'lastUpdateTime', 'experimentTemplate_lastUpdateTime' - The time the experiment template was last updated.
--
-- 'logConfiguration', 'experimentTemplate_logConfiguration' - The configuration for experiment logging.
--
-- 'roleArn', 'experimentTemplate_roleArn' - The Amazon Resource Name (ARN) of an IAM role.
--
-- 'stopConditions', 'experimentTemplate_stopConditions' - The stop conditions for the experiment.
--
-- 'tags', 'experimentTemplate_tags' - The tags for the experiment template.
--
-- 'targets', 'experimentTemplate_targets' - The targets for the experiment.
newExperimentTemplate ::
  ExperimentTemplate
newExperimentTemplate :: ExperimentTemplate
newExperimentTemplate =
  ExperimentTemplate'
    { $sel:actions:ExperimentTemplate' :: Maybe (HashMap Text ExperimentTemplateAction)
actions = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:ExperimentTemplate' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:description:ExperimentTemplate' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:id:ExperimentTemplate' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdateTime:ExperimentTemplate' :: Maybe POSIX
lastUpdateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:logConfiguration:ExperimentTemplate' :: Maybe ExperimentTemplateLogConfiguration
logConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:ExperimentTemplate' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:stopConditions:ExperimentTemplate' :: Maybe [ExperimentTemplateStopCondition]
stopConditions = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ExperimentTemplate' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:targets:ExperimentTemplate' :: Maybe (HashMap Text ExperimentTemplateTarget)
targets = forall a. Maybe a
Prelude.Nothing
    }

-- | The actions for the experiment.
experimentTemplate_actions :: Lens.Lens' ExperimentTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text ExperimentTemplateAction))
experimentTemplate_actions :: Lens'
  ExperimentTemplate (Maybe (HashMap Text ExperimentTemplateAction))
experimentTemplate_actions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe (HashMap Text ExperimentTemplateAction)
actions :: Maybe (HashMap Text ExperimentTemplateAction)
$sel:actions:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateAction)
actions} -> Maybe (HashMap Text ExperimentTemplateAction)
actions) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe (HashMap Text ExperimentTemplateAction)
a -> ExperimentTemplate
s {$sel:actions:ExperimentTemplate' :: Maybe (HashMap Text ExperimentTemplateAction)
actions = Maybe (HashMap Text ExperimentTemplateAction)
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The time the experiment template was created.
experimentTemplate_creationTime :: Lens.Lens' ExperimentTemplate (Prelude.Maybe Prelude.UTCTime)
experimentTemplate_creationTime :: Lens' ExperimentTemplate (Maybe UTCTime)
experimentTemplate_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe POSIX
a -> ExperimentTemplate
s {$sel:creationTime:ExperimentTemplate' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The description for the experiment template.
experimentTemplate_description :: Lens.Lens' ExperimentTemplate (Prelude.Maybe Prelude.Text)
experimentTemplate_description :: Lens' ExperimentTemplate (Maybe Text)
experimentTemplate_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe Text
description :: Maybe Text
$sel:description:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
description} -> Maybe Text
description) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe Text
a -> ExperimentTemplate
s {$sel:description:ExperimentTemplate' :: Maybe Text
description = Maybe Text
a} :: ExperimentTemplate)

-- | The ID of the experiment template.
experimentTemplate_id :: Lens.Lens' ExperimentTemplate (Prelude.Maybe Prelude.Text)
experimentTemplate_id :: Lens' ExperimentTemplate (Maybe Text)
experimentTemplate_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe Text
id :: Maybe Text
$sel:id:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
id} -> Maybe Text
id) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe Text
a -> ExperimentTemplate
s {$sel:id:ExperimentTemplate' :: Maybe Text
id = Maybe Text
a} :: ExperimentTemplate)

-- | The time the experiment template was last updated.
experimentTemplate_lastUpdateTime :: Lens.Lens' ExperimentTemplate (Prelude.Maybe Prelude.UTCTime)
experimentTemplate_lastUpdateTime :: Lens' ExperimentTemplate (Maybe UTCTime)
experimentTemplate_lastUpdateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe POSIX
a -> ExperimentTemplate
s {$sel:lastUpdateTime:ExperimentTemplate' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The configuration for experiment logging.
experimentTemplate_logConfiguration :: Lens.Lens' ExperimentTemplate (Prelude.Maybe ExperimentTemplateLogConfiguration)
experimentTemplate_logConfiguration :: Lens' ExperimentTemplate (Maybe ExperimentTemplateLogConfiguration)
experimentTemplate_logConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe ExperimentTemplateLogConfiguration
logConfiguration :: Maybe ExperimentTemplateLogConfiguration
$sel:logConfiguration:ExperimentTemplate' :: ExperimentTemplate -> Maybe ExperimentTemplateLogConfiguration
logConfiguration} -> Maybe ExperimentTemplateLogConfiguration
logConfiguration) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe ExperimentTemplateLogConfiguration
a -> ExperimentTemplate
s {$sel:logConfiguration:ExperimentTemplate' :: Maybe ExperimentTemplateLogConfiguration
logConfiguration = Maybe ExperimentTemplateLogConfiguration
a} :: ExperimentTemplate)

-- | The Amazon Resource Name (ARN) of an IAM role.
experimentTemplate_roleArn :: Lens.Lens' ExperimentTemplate (Prelude.Maybe Prelude.Text)
experimentTemplate_roleArn :: Lens' ExperimentTemplate (Maybe Text)
experimentTemplate_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe Text
a -> ExperimentTemplate
s {$sel:roleArn:ExperimentTemplate' :: Maybe Text
roleArn = Maybe Text
a} :: ExperimentTemplate)

-- | The stop conditions for the experiment.
experimentTemplate_stopConditions :: Lens.Lens' ExperimentTemplate (Prelude.Maybe [ExperimentTemplateStopCondition])
experimentTemplate_stopConditions :: Lens' ExperimentTemplate (Maybe [ExperimentTemplateStopCondition])
experimentTemplate_stopConditions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe [ExperimentTemplateStopCondition]
stopConditions :: Maybe [ExperimentTemplateStopCondition]
$sel:stopConditions:ExperimentTemplate' :: ExperimentTemplate -> Maybe [ExperimentTemplateStopCondition]
stopConditions} -> Maybe [ExperimentTemplateStopCondition]
stopConditions) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe [ExperimentTemplateStopCondition]
a -> ExperimentTemplate
s {$sel:stopConditions:ExperimentTemplate' :: Maybe [ExperimentTemplateStopCondition]
stopConditions = Maybe [ExperimentTemplateStopCondition]
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The tags for the experiment template.
experimentTemplate_tags :: Lens.Lens' ExperimentTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
experimentTemplate_tags :: Lens' ExperimentTemplate (Maybe (HashMap Text Text))
experimentTemplate_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe (HashMap Text Text)
a -> ExperimentTemplate
s {$sel:tags:ExperimentTemplate' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The targets for the experiment.
experimentTemplate_targets :: Lens.Lens' ExperimentTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text ExperimentTemplateTarget))
experimentTemplate_targets :: Lens'
  ExperimentTemplate (Maybe (HashMap Text ExperimentTemplateTarget))
experimentTemplate_targets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExperimentTemplate' {Maybe (HashMap Text ExperimentTemplateTarget)
targets :: Maybe (HashMap Text ExperimentTemplateTarget)
$sel:targets:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateTarget)
targets} -> Maybe (HashMap Text ExperimentTemplateTarget)
targets) (\s :: ExperimentTemplate
s@ExperimentTemplate' {} Maybe (HashMap Text ExperimentTemplateTarget)
a -> ExperimentTemplate
s {$sel:targets:ExperimentTemplate' :: Maybe (HashMap Text ExperimentTemplateTarget)
targets = Maybe (HashMap Text ExperimentTemplateTarget)
a} :: ExperimentTemplate) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON ExperimentTemplate where
  parseJSON :: Value -> Parser ExperimentTemplate
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ExperimentTemplate"
      ( \Object
x ->
          Maybe (HashMap Text ExperimentTemplateAction)
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe ExperimentTemplateLogConfiguration
-> Maybe Text
-> Maybe [ExperimentTemplateStopCondition]
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text ExperimentTemplateTarget)
-> ExperimentTemplate
ExperimentTemplate'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"actions" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"logConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"roleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"stopConditions" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"targets" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ExperimentTemplate where
  hashWithSalt :: Int -> ExperimentTemplate -> Int
hashWithSalt Int
_salt ExperimentTemplate' {Maybe [ExperimentTemplateStopCondition]
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text ExperimentTemplateAction)
Maybe (HashMap Text ExperimentTemplateTarget)
Maybe POSIX
Maybe ExperimentTemplateLogConfiguration
targets :: Maybe (HashMap Text ExperimentTemplateTarget)
tags :: Maybe (HashMap Text Text)
stopConditions :: Maybe [ExperimentTemplateStopCondition]
roleArn :: Maybe Text
logConfiguration :: Maybe ExperimentTemplateLogConfiguration
lastUpdateTime :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
creationTime :: Maybe POSIX
actions :: Maybe (HashMap Text ExperimentTemplateAction)
$sel:targets:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateTarget)
$sel:tags:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text Text)
$sel:stopConditions:ExperimentTemplate' :: ExperimentTemplate -> Maybe [ExperimentTemplateStopCondition]
$sel:roleArn:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:logConfiguration:ExperimentTemplate' :: ExperimentTemplate -> Maybe ExperimentTemplateLogConfiguration
$sel:lastUpdateTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
$sel:id:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:description:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:creationTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
$sel:actions:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateAction)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text ExperimentTemplateAction)
actions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExperimentTemplateLogConfiguration
logConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ExperimentTemplateStopCondition]
stopConditions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text ExperimentTemplateTarget)
targets

instance Prelude.NFData ExperimentTemplate where
  rnf :: ExperimentTemplate -> ()
rnf ExperimentTemplate' {Maybe [ExperimentTemplateStopCondition]
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text ExperimentTemplateAction)
Maybe (HashMap Text ExperimentTemplateTarget)
Maybe POSIX
Maybe ExperimentTemplateLogConfiguration
targets :: Maybe (HashMap Text ExperimentTemplateTarget)
tags :: Maybe (HashMap Text Text)
stopConditions :: Maybe [ExperimentTemplateStopCondition]
roleArn :: Maybe Text
logConfiguration :: Maybe ExperimentTemplateLogConfiguration
lastUpdateTime :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
creationTime :: Maybe POSIX
actions :: Maybe (HashMap Text ExperimentTemplateAction)
$sel:targets:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateTarget)
$sel:tags:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text Text)
$sel:stopConditions:ExperimentTemplate' :: ExperimentTemplate -> Maybe [ExperimentTemplateStopCondition]
$sel:roleArn:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:logConfiguration:ExperimentTemplate' :: ExperimentTemplate -> Maybe ExperimentTemplateLogConfiguration
$sel:lastUpdateTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
$sel:id:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:description:ExperimentTemplate' :: ExperimentTemplate -> Maybe Text
$sel:creationTime:ExperimentTemplate' :: ExperimentTemplate -> Maybe POSIX
$sel:actions:ExperimentTemplate' :: ExperimentTemplate -> Maybe (HashMap Text ExperimentTemplateAction)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text ExperimentTemplateAction)
actions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExperimentTemplateLogConfiguration
logConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ExperimentTemplateStopCondition]
stopConditions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text ExperimentTemplateTarget)
targets