{-# 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 #-}
module Amazonka.FIS.Types.UpdateExperimentTemplateTargetInput where
import qualified Amazonka.Core as Core
import Amazonka.FIS.Types.ExperimentTemplateTargetInputFilter
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data UpdateExperimentTemplateTargetInput = UpdateExperimentTemplateTargetInput'
{
UpdateExperimentTemplateTargetInput -> Maybe (HashMap Text Text)
resourceTags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateExperimentTemplateTargetInput
-> Maybe [ExperimentTemplateTargetInputFilter]
filters :: Prelude.Maybe [ExperimentTemplateTargetInputFilter],
UpdateExperimentTemplateTargetInput -> Maybe [Text]
resourceArns :: Prelude.Maybe [Prelude.Text],
UpdateExperimentTemplateTargetInput -> Text
resourceType :: Prelude.Text,
UpdateExperimentTemplateTargetInput -> Text
selectionMode :: Prelude.Text
}
deriving (UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool
(UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool)
-> (UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool)
-> Eq UpdateExperimentTemplateTargetInput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool
$c/= :: UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool
== :: UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool
$c== :: UpdateExperimentTemplateTargetInput
-> UpdateExperimentTemplateTargetInput -> Bool
Prelude.Eq, ReadPrec [UpdateExperimentTemplateTargetInput]
ReadPrec UpdateExperimentTemplateTargetInput
Int -> ReadS UpdateExperimentTemplateTargetInput
ReadS [UpdateExperimentTemplateTargetInput]
(Int -> ReadS UpdateExperimentTemplateTargetInput)
-> ReadS [UpdateExperimentTemplateTargetInput]
-> ReadPrec UpdateExperimentTemplateTargetInput
-> ReadPrec [UpdateExperimentTemplateTargetInput]
-> Read UpdateExperimentTemplateTargetInput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateExperimentTemplateTargetInput]
$creadListPrec :: ReadPrec [UpdateExperimentTemplateTargetInput]
readPrec :: ReadPrec UpdateExperimentTemplateTargetInput
$creadPrec :: ReadPrec UpdateExperimentTemplateTargetInput
readList :: ReadS [UpdateExperimentTemplateTargetInput]
$creadList :: ReadS [UpdateExperimentTemplateTargetInput]
readsPrec :: Int -> ReadS UpdateExperimentTemplateTargetInput
$creadsPrec :: Int -> ReadS UpdateExperimentTemplateTargetInput
Prelude.Read, Int -> UpdateExperimentTemplateTargetInput -> ShowS
[UpdateExperimentTemplateTargetInput] -> ShowS
UpdateExperimentTemplateTargetInput -> String
(Int -> UpdateExperimentTemplateTargetInput -> ShowS)
-> (UpdateExperimentTemplateTargetInput -> String)
-> ([UpdateExperimentTemplateTargetInput] -> ShowS)
-> Show UpdateExperimentTemplateTargetInput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateExperimentTemplateTargetInput] -> ShowS
$cshowList :: [UpdateExperimentTemplateTargetInput] -> ShowS
show :: UpdateExperimentTemplateTargetInput -> String
$cshow :: UpdateExperimentTemplateTargetInput -> String
showsPrec :: Int -> UpdateExperimentTemplateTargetInput -> ShowS
$cshowsPrec :: Int -> UpdateExperimentTemplateTargetInput -> ShowS
Prelude.Show, (forall x.
UpdateExperimentTemplateTargetInput
-> Rep UpdateExperimentTemplateTargetInput x)
-> (forall x.
Rep UpdateExperimentTemplateTargetInput x
-> UpdateExperimentTemplateTargetInput)
-> Generic UpdateExperimentTemplateTargetInput
forall x.
Rep UpdateExperimentTemplateTargetInput x
-> UpdateExperimentTemplateTargetInput
forall x.
UpdateExperimentTemplateTargetInput
-> Rep UpdateExperimentTemplateTargetInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateExperimentTemplateTargetInput x
-> UpdateExperimentTemplateTargetInput
$cfrom :: forall x.
UpdateExperimentTemplateTargetInput
-> Rep UpdateExperimentTemplateTargetInput x
Prelude.Generic)
newUpdateExperimentTemplateTargetInput ::
Prelude.Text ->
Prelude.Text ->
UpdateExperimentTemplateTargetInput
newUpdateExperimentTemplateTargetInput :: Text -> Text -> UpdateExperimentTemplateTargetInput
newUpdateExperimentTemplateTargetInput
Text
pResourceType_
Text
pSelectionMode_ =
UpdateExperimentTemplateTargetInput' :: Maybe (HashMap Text Text)
-> Maybe [ExperimentTemplateTargetInputFilter]
-> Maybe [Text]
-> Text
-> Text
-> UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput'
{ $sel:resourceTags:UpdateExperimentTemplateTargetInput' :: Maybe (HashMap Text Text)
resourceTags =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:filters:UpdateExperimentTemplateTargetInput' :: Maybe [ExperimentTemplateTargetInputFilter]
filters = Maybe [ExperimentTemplateTargetInputFilter]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArns:UpdateExperimentTemplateTargetInput' :: Maybe [Text]
resourceArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:UpdateExperimentTemplateTargetInput' :: Text
resourceType = Text
pResourceType_,
$sel:selectionMode:UpdateExperimentTemplateTargetInput' :: Text
selectionMode = Text
pSelectionMode_
}
updateExperimentTemplateTargetInput_resourceTags :: Lens.Lens' UpdateExperimentTemplateTargetInput (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateExperimentTemplateTargetInput_resourceTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
updateExperimentTemplateTargetInput_resourceTags = (UpdateExperimentTemplateTargetInput -> Maybe (HashMap Text Text))
-> (UpdateExperimentTemplateTargetInput
-> Maybe (HashMap Text Text)
-> UpdateExperimentTemplateTargetInput)
-> Lens
UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateExperimentTemplateTargetInput' {Maybe (HashMap Text Text)
resourceTags :: Maybe (HashMap Text Text)
$sel:resourceTags:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Maybe (HashMap Text Text)
resourceTags} -> Maybe (HashMap Text Text)
resourceTags) (\s :: UpdateExperimentTemplateTargetInput
s@UpdateExperimentTemplateTargetInput' {} Maybe (HashMap Text Text)
a -> UpdateExperimentTemplateTargetInput
s {$sel:resourceTags:UpdateExperimentTemplateTargetInput' :: Maybe (HashMap Text Text)
resourceTags = Maybe (HashMap Text Text)
a} :: UpdateExperimentTemplateTargetInput) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateExperimentTemplateTargetInput_filters :: Lens.Lens' UpdateExperimentTemplateTargetInput (Prelude.Maybe [ExperimentTemplateTargetInputFilter])
updateExperimentTemplateTargetInput_filters :: (Maybe [ExperimentTemplateTargetInputFilter]
-> f (Maybe [ExperimentTemplateTargetInputFilter]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
updateExperimentTemplateTargetInput_filters = (UpdateExperimentTemplateTargetInput
-> Maybe [ExperimentTemplateTargetInputFilter])
-> (UpdateExperimentTemplateTargetInput
-> Maybe [ExperimentTemplateTargetInputFilter]
-> UpdateExperimentTemplateTargetInput)
-> Lens
UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput
(Maybe [ExperimentTemplateTargetInputFilter])
(Maybe [ExperimentTemplateTargetInputFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateExperimentTemplateTargetInput' {Maybe [ExperimentTemplateTargetInputFilter]
filters :: Maybe [ExperimentTemplateTargetInputFilter]
$sel:filters:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput
-> Maybe [ExperimentTemplateTargetInputFilter]
filters} -> Maybe [ExperimentTemplateTargetInputFilter]
filters) (\s :: UpdateExperimentTemplateTargetInput
s@UpdateExperimentTemplateTargetInput' {} Maybe [ExperimentTemplateTargetInputFilter]
a -> UpdateExperimentTemplateTargetInput
s {$sel:filters:UpdateExperimentTemplateTargetInput' :: Maybe [ExperimentTemplateTargetInputFilter]
filters = Maybe [ExperimentTemplateTargetInputFilter]
a} :: UpdateExperimentTemplateTargetInput) ((Maybe [ExperimentTemplateTargetInputFilter]
-> f (Maybe [ExperimentTemplateTargetInputFilter]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput)
-> ((Maybe [ExperimentTemplateTargetInputFilter]
-> f (Maybe [ExperimentTemplateTargetInputFilter]))
-> Maybe [ExperimentTemplateTargetInputFilter]
-> f (Maybe [ExperimentTemplateTargetInputFilter]))
-> (Maybe [ExperimentTemplateTargetInputFilter]
-> f (Maybe [ExperimentTemplateTargetInputFilter]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
-> Iso
(Maybe [ExperimentTemplateTargetInputFilter])
(Maybe [ExperimentTemplateTargetInputFilter])
(Maybe [ExperimentTemplateTargetInputFilter])
(Maybe [ExperimentTemplateTargetInputFilter])
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 AnIso
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
[ExperimentTemplateTargetInputFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateExperimentTemplateTargetInput_resourceArns :: Lens.Lens' UpdateExperimentTemplateTargetInput (Prelude.Maybe [Prelude.Text])
updateExperimentTemplateTargetInput_resourceArns :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
updateExperimentTemplateTargetInput_resourceArns = (UpdateExperimentTemplateTargetInput -> Maybe [Text])
-> (UpdateExperimentTemplateTargetInput
-> Maybe [Text] -> UpdateExperimentTemplateTargetInput)
-> Lens
UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateExperimentTemplateTargetInput' {Maybe [Text]
resourceArns :: Maybe [Text]
$sel:resourceArns:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Maybe [Text]
resourceArns} -> Maybe [Text]
resourceArns) (\s :: UpdateExperimentTemplateTargetInput
s@UpdateExperimentTemplateTargetInput' {} Maybe [Text]
a -> UpdateExperimentTemplateTargetInput
s {$sel:resourceArns:UpdateExperimentTemplateTargetInput' :: Maybe [Text]
resourceArns = Maybe [Text]
a} :: UpdateExperimentTemplateTargetInput) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateExperimentTemplateTargetInput_resourceType :: Lens.Lens' UpdateExperimentTemplateTargetInput Prelude.Text
updateExperimentTemplateTargetInput_resourceType :: (Text -> f Text)
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
updateExperimentTemplateTargetInput_resourceType = (UpdateExperimentTemplateTargetInput -> Text)
-> (UpdateExperimentTemplateTargetInput
-> Text -> UpdateExperimentTemplateTargetInput)
-> Lens
UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateExperimentTemplateTargetInput' {Text
resourceType :: Text
$sel:resourceType:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Text
resourceType} -> Text
resourceType) (\s :: UpdateExperimentTemplateTargetInput
s@UpdateExperimentTemplateTargetInput' {} Text
a -> UpdateExperimentTemplateTargetInput
s {$sel:resourceType:UpdateExperimentTemplateTargetInput' :: Text
resourceType = Text
a} :: UpdateExperimentTemplateTargetInput)
updateExperimentTemplateTargetInput_selectionMode :: Lens.Lens' UpdateExperimentTemplateTargetInput Prelude.Text
updateExperimentTemplateTargetInput_selectionMode :: (Text -> f Text)
-> UpdateExperimentTemplateTargetInput
-> f UpdateExperimentTemplateTargetInput
updateExperimentTemplateTargetInput_selectionMode = (UpdateExperimentTemplateTargetInput -> Text)
-> (UpdateExperimentTemplateTargetInput
-> Text -> UpdateExperimentTemplateTargetInput)
-> Lens
UpdateExperimentTemplateTargetInput
UpdateExperimentTemplateTargetInput
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateExperimentTemplateTargetInput' {Text
selectionMode :: Text
$sel:selectionMode:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Text
selectionMode} -> Text
selectionMode) (\s :: UpdateExperimentTemplateTargetInput
s@UpdateExperimentTemplateTargetInput' {} Text
a -> UpdateExperimentTemplateTargetInput
s {$sel:selectionMode:UpdateExperimentTemplateTargetInput' :: Text
selectionMode = Text
a} :: UpdateExperimentTemplateTargetInput)
instance
Prelude.Hashable
UpdateExperimentTemplateTargetInput
instance
Prelude.NFData
UpdateExperimentTemplateTargetInput
instance
Core.ToJSON
UpdateExperimentTemplateTargetInput
where
toJSON :: UpdateExperimentTemplateTargetInput -> Value
toJSON UpdateExperimentTemplateTargetInput' {Maybe [Text]
Maybe [ExperimentTemplateTargetInputFilter]
Maybe (HashMap Text Text)
Text
selectionMode :: Text
resourceType :: Text
resourceArns :: Maybe [Text]
filters :: Maybe [ExperimentTemplateTargetInputFilter]
resourceTags :: Maybe (HashMap Text Text)
$sel:selectionMode:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Text
$sel:resourceType:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Text
$sel:resourceArns:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Maybe [Text]
$sel:filters:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput
-> Maybe [ExperimentTemplateTargetInputFilter]
$sel:resourceTags:UpdateExperimentTemplateTargetInput' :: UpdateExperimentTemplateTargetInput -> Maybe (HashMap Text Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"resourceTags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
resourceTags,
(Text
"filters" Text -> [ExperimentTemplateTargetInputFilter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([ExperimentTemplateTargetInputFilter] -> Pair)
-> Maybe [ExperimentTemplateTargetInputFilter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ExperimentTemplateTargetInputFilter]
filters,
(Text
"resourceArns" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
resourceArns,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"resourceType" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"selectionMode" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
selectionMode)
]
)