{-# 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.CognitoIdentityProvider.Types.CompromisedCredentialsActionsType where
import Amazonka.CognitoIdentityProvider.Types.CompromisedCredentialsEventActionType
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data CompromisedCredentialsActionsType = CompromisedCredentialsActionsType'
{
CompromisedCredentialsActionsType
-> CompromisedCredentialsEventActionType
eventAction :: CompromisedCredentialsEventActionType
}
deriving (CompromisedCredentialsActionsType
-> CompromisedCredentialsActionsType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompromisedCredentialsActionsType
-> CompromisedCredentialsActionsType -> Bool
$c/= :: CompromisedCredentialsActionsType
-> CompromisedCredentialsActionsType -> Bool
== :: CompromisedCredentialsActionsType
-> CompromisedCredentialsActionsType -> Bool
$c== :: CompromisedCredentialsActionsType
-> CompromisedCredentialsActionsType -> Bool
Prelude.Eq, ReadPrec [CompromisedCredentialsActionsType]
ReadPrec CompromisedCredentialsActionsType
Int -> ReadS CompromisedCredentialsActionsType
ReadS [CompromisedCredentialsActionsType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CompromisedCredentialsActionsType]
$creadListPrec :: ReadPrec [CompromisedCredentialsActionsType]
readPrec :: ReadPrec CompromisedCredentialsActionsType
$creadPrec :: ReadPrec CompromisedCredentialsActionsType
readList :: ReadS [CompromisedCredentialsActionsType]
$creadList :: ReadS [CompromisedCredentialsActionsType]
readsPrec :: Int -> ReadS CompromisedCredentialsActionsType
$creadsPrec :: Int -> ReadS CompromisedCredentialsActionsType
Prelude.Read, Int -> CompromisedCredentialsActionsType -> ShowS
[CompromisedCredentialsActionsType] -> ShowS
CompromisedCredentialsActionsType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompromisedCredentialsActionsType] -> ShowS
$cshowList :: [CompromisedCredentialsActionsType] -> ShowS
show :: CompromisedCredentialsActionsType -> String
$cshow :: CompromisedCredentialsActionsType -> String
showsPrec :: Int -> CompromisedCredentialsActionsType -> ShowS
$cshowsPrec :: Int -> CompromisedCredentialsActionsType -> ShowS
Prelude.Show, forall x.
Rep CompromisedCredentialsActionsType x
-> CompromisedCredentialsActionsType
forall x.
CompromisedCredentialsActionsType
-> Rep CompromisedCredentialsActionsType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CompromisedCredentialsActionsType x
-> CompromisedCredentialsActionsType
$cfrom :: forall x.
CompromisedCredentialsActionsType
-> Rep CompromisedCredentialsActionsType x
Prelude.Generic)
newCompromisedCredentialsActionsType ::
CompromisedCredentialsEventActionType ->
CompromisedCredentialsActionsType
newCompromisedCredentialsActionsType :: CompromisedCredentialsEventActionType
-> CompromisedCredentialsActionsType
newCompromisedCredentialsActionsType CompromisedCredentialsEventActionType
pEventAction_ =
CompromisedCredentialsActionsType'
{ $sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsEventActionType
eventAction =
CompromisedCredentialsEventActionType
pEventAction_
}
compromisedCredentialsActionsType_eventAction :: Lens.Lens' CompromisedCredentialsActionsType CompromisedCredentialsEventActionType
compromisedCredentialsActionsType_eventAction :: Lens'
CompromisedCredentialsActionsType
CompromisedCredentialsEventActionType
compromisedCredentialsActionsType_eventAction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompromisedCredentialsActionsType' {CompromisedCredentialsEventActionType
eventAction :: CompromisedCredentialsEventActionType
$sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsActionsType
-> CompromisedCredentialsEventActionType
eventAction} -> CompromisedCredentialsEventActionType
eventAction) (\s :: CompromisedCredentialsActionsType
s@CompromisedCredentialsActionsType' {} CompromisedCredentialsEventActionType
a -> CompromisedCredentialsActionsType
s {$sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsEventActionType
eventAction = CompromisedCredentialsEventActionType
a} :: CompromisedCredentialsActionsType)
instance
Data.FromJSON
CompromisedCredentialsActionsType
where
parseJSON :: Value -> Parser CompromisedCredentialsActionsType
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"CompromisedCredentialsActionsType"
( \Object
x ->
CompromisedCredentialsEventActionType
-> CompromisedCredentialsActionsType
CompromisedCredentialsActionsType'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"EventAction")
)
instance
Prelude.Hashable
CompromisedCredentialsActionsType
where
hashWithSalt :: Int -> CompromisedCredentialsActionsType -> Int
hashWithSalt
Int
_salt
CompromisedCredentialsActionsType' {CompromisedCredentialsEventActionType
eventAction :: CompromisedCredentialsEventActionType
$sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsActionsType
-> CompromisedCredentialsEventActionType
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` CompromisedCredentialsEventActionType
eventAction
instance
Prelude.NFData
CompromisedCredentialsActionsType
where
rnf :: CompromisedCredentialsActionsType -> ()
rnf CompromisedCredentialsActionsType' {CompromisedCredentialsEventActionType
eventAction :: CompromisedCredentialsEventActionType
$sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsActionsType
-> CompromisedCredentialsEventActionType
..} =
forall a. NFData a => a -> ()
Prelude.rnf CompromisedCredentialsEventActionType
eventAction
instance
Data.ToJSON
CompromisedCredentialsActionsType
where
toJSON :: CompromisedCredentialsActionsType -> Value
toJSON CompromisedCredentialsActionsType' {CompromisedCredentialsEventActionType
eventAction :: CompromisedCredentialsEventActionType
$sel:eventAction:CompromisedCredentialsActionsType' :: CompromisedCredentialsActionsType
-> CompromisedCredentialsEventActionType
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"EventAction" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= CompromisedCredentialsEventActionType
eventAction)]
)