{-# 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.CloudFormation.Types.TypeConfigurationDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data TypeConfigurationDetails = TypeConfigurationDetails'
{
TypeConfigurationDetails -> Maybe ISO8601
lastUpdated :: Prelude.Maybe Core.ISO8601,
TypeConfigurationDetails -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
TypeConfigurationDetails -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
TypeConfigurationDetails -> Maybe Text
alias :: Prelude.Maybe Prelude.Text,
TypeConfigurationDetails -> Maybe Text
typeArn :: Prelude.Maybe Prelude.Text,
TypeConfigurationDetails -> Maybe Text
configuration :: Prelude.Maybe Prelude.Text,
TypeConfigurationDetails -> Maybe Bool
isDefaultConfiguration :: Prelude.Maybe Prelude.Bool
}
deriving (TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
(TypeConfigurationDetails -> TypeConfigurationDetails -> Bool)
-> (TypeConfigurationDetails -> TypeConfigurationDetails -> Bool)
-> Eq TypeConfigurationDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
$c/= :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
== :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
$c== :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
Prelude.Eq, ReadPrec [TypeConfigurationDetails]
ReadPrec TypeConfigurationDetails
Int -> ReadS TypeConfigurationDetails
ReadS [TypeConfigurationDetails]
(Int -> ReadS TypeConfigurationDetails)
-> ReadS [TypeConfigurationDetails]
-> ReadPrec TypeConfigurationDetails
-> ReadPrec [TypeConfigurationDetails]
-> Read TypeConfigurationDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TypeConfigurationDetails]
$creadListPrec :: ReadPrec [TypeConfigurationDetails]
readPrec :: ReadPrec TypeConfigurationDetails
$creadPrec :: ReadPrec TypeConfigurationDetails
readList :: ReadS [TypeConfigurationDetails]
$creadList :: ReadS [TypeConfigurationDetails]
readsPrec :: Int -> ReadS TypeConfigurationDetails
$creadsPrec :: Int -> ReadS TypeConfigurationDetails
Prelude.Read, Int -> TypeConfigurationDetails -> ShowS
[TypeConfigurationDetails] -> ShowS
TypeConfigurationDetails -> String
(Int -> TypeConfigurationDetails -> ShowS)
-> (TypeConfigurationDetails -> String)
-> ([TypeConfigurationDetails] -> ShowS)
-> Show TypeConfigurationDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeConfigurationDetails] -> ShowS
$cshowList :: [TypeConfigurationDetails] -> ShowS
show :: TypeConfigurationDetails -> String
$cshow :: TypeConfigurationDetails -> String
showsPrec :: Int -> TypeConfigurationDetails -> ShowS
$cshowsPrec :: Int -> TypeConfigurationDetails -> ShowS
Prelude.Show, (forall x.
TypeConfigurationDetails -> Rep TypeConfigurationDetails x)
-> (forall x.
Rep TypeConfigurationDetails x -> TypeConfigurationDetails)
-> Generic TypeConfigurationDetails
forall x.
Rep TypeConfigurationDetails x -> TypeConfigurationDetails
forall x.
TypeConfigurationDetails -> Rep TypeConfigurationDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TypeConfigurationDetails x -> TypeConfigurationDetails
$cfrom :: forall x.
TypeConfigurationDetails -> Rep TypeConfigurationDetails x
Prelude.Generic)
newTypeConfigurationDetails ::
TypeConfigurationDetails
newTypeConfigurationDetails :: TypeConfigurationDetails
newTypeConfigurationDetails =
TypeConfigurationDetails' :: Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails
TypeConfigurationDetails'
{ $sel:lastUpdated:TypeConfigurationDetails' :: Maybe ISO8601
lastUpdated =
Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:typeName:TypeConfigurationDetails' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:TypeConfigurationDetails' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:alias:TypeConfigurationDetails' :: Maybe Text
alias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:typeArn:TypeConfigurationDetails' :: Maybe Text
typeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configuration:TypeConfigurationDetails' :: Maybe Text
configuration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isDefaultConfiguration:TypeConfigurationDetails' :: Maybe Bool
isDefaultConfiguration = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
typeConfigurationDetails_lastUpdated :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.UTCTime)
typeConfigurationDetails_lastUpdated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_lastUpdated = (TypeConfigurationDetails -> Maybe ISO8601)
-> (TypeConfigurationDetails
-> Maybe ISO8601 -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe ISO8601
lastUpdated :: Maybe ISO8601
$sel:lastUpdated:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe ISO8601
lastUpdated} -> Maybe ISO8601
lastUpdated) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe ISO8601
a -> TypeConfigurationDetails
s {$sel:lastUpdated:TypeConfigurationDetails' :: Maybe ISO8601
lastUpdated = Maybe ISO8601
a} :: TypeConfigurationDetails) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> TypeConfigurationDetails -> f TypeConfigurationDetails)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TypeConfigurationDetails
-> f TypeConfigurationDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
typeConfigurationDetails_typeName :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_typeName :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_typeName = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
-> Maybe Text -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
typeName :: Maybe Text
$sel:typeName:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:typeName:TypeConfigurationDetails' :: Maybe Text
typeName = Maybe Text
a} :: TypeConfigurationDetails)
typeConfigurationDetails_arn :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_arn :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_arn = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
-> Maybe Text -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
arn :: Maybe Text
$sel:arn:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
arn} -> Maybe Text
arn) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:arn:TypeConfigurationDetails' :: Maybe Text
arn = Maybe Text
a} :: TypeConfigurationDetails)
typeConfigurationDetails_alias :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_alias :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_alias = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
-> Maybe Text -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
alias :: Maybe Text
$sel:alias:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
alias} -> Maybe Text
alias) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:alias:TypeConfigurationDetails' :: Maybe Text
alias = Maybe Text
a} :: TypeConfigurationDetails)
typeConfigurationDetails_typeArn :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_typeArn :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_typeArn = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
-> Maybe Text -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
typeArn :: Maybe Text
$sel:typeArn:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
typeArn} -> Maybe Text
typeArn) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:typeArn:TypeConfigurationDetails' :: Maybe Text
typeArn = Maybe Text
a} :: TypeConfigurationDetails)
typeConfigurationDetails_configuration :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_configuration :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_configuration = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
-> Maybe Text -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
configuration :: Maybe Text
$sel:configuration:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
configuration} -> Maybe Text
configuration) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:configuration:TypeConfigurationDetails' :: Maybe Text
configuration = Maybe Text
a} :: TypeConfigurationDetails)
typeConfigurationDetails_isDefaultConfiguration :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Bool)
typeConfigurationDetails_isDefaultConfiguration :: (Maybe Bool -> f (Maybe Bool))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_isDefaultConfiguration = (TypeConfigurationDetails -> Maybe Bool)
-> (TypeConfigurationDetails
-> Maybe Bool -> TypeConfigurationDetails)
-> Lens
TypeConfigurationDetails
TypeConfigurationDetails
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Bool
isDefaultConfiguration :: Maybe Bool
$sel:isDefaultConfiguration:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Bool
isDefaultConfiguration} -> Maybe Bool
isDefaultConfiguration) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Bool
a -> TypeConfigurationDetails
s {$sel:isDefaultConfiguration:TypeConfigurationDetails' :: Maybe Bool
isDefaultConfiguration = Maybe Bool
a} :: TypeConfigurationDetails)
instance Core.FromXML TypeConfigurationDetails where
parseXML :: [Node] -> Either String TypeConfigurationDetails
parseXML [Node]
x =
Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails
TypeConfigurationDetails'
(Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LastUpdated")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TypeName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Alias")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TypeArn")
Either
String (Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either String (Maybe Bool -> TypeConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Configuration")
Either String (Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Bool)
-> Either String TypeConfigurationDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsDefaultConfiguration")
instance Prelude.Hashable TypeConfigurationDetails
instance Prelude.NFData TypeConfigurationDetails