{-# 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.BatchDescribeTypeConfigurationsError where
import Amazonka.CloudFormation.Types.TypeConfigurationIdentifier
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BatchDescribeTypeConfigurationsError = BatchDescribeTypeConfigurationsError'
{ BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier :: Prelude.Maybe TypeConfigurationIdentifier,
BatchDescribeTypeConfigurationsError -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text,
BatchDescribeTypeConfigurationsError -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text
}
deriving (BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
(BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool)
-> (BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool)
-> Eq BatchDescribeTypeConfigurationsError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
$c/= :: BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
== :: BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
$c== :: BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
Prelude.Eq, ReadPrec [BatchDescribeTypeConfigurationsError]
ReadPrec BatchDescribeTypeConfigurationsError
Int -> ReadS BatchDescribeTypeConfigurationsError
ReadS [BatchDescribeTypeConfigurationsError]
(Int -> ReadS BatchDescribeTypeConfigurationsError)
-> ReadS [BatchDescribeTypeConfigurationsError]
-> ReadPrec BatchDescribeTypeConfigurationsError
-> ReadPrec [BatchDescribeTypeConfigurationsError]
-> Read BatchDescribeTypeConfigurationsError
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDescribeTypeConfigurationsError]
$creadListPrec :: ReadPrec [BatchDescribeTypeConfigurationsError]
readPrec :: ReadPrec BatchDescribeTypeConfigurationsError
$creadPrec :: ReadPrec BatchDescribeTypeConfigurationsError
readList :: ReadS [BatchDescribeTypeConfigurationsError]
$creadList :: ReadS [BatchDescribeTypeConfigurationsError]
readsPrec :: Int -> ReadS BatchDescribeTypeConfigurationsError
$creadsPrec :: Int -> ReadS BatchDescribeTypeConfigurationsError
Prelude.Read, Int -> BatchDescribeTypeConfigurationsError -> ShowS
[BatchDescribeTypeConfigurationsError] -> ShowS
BatchDescribeTypeConfigurationsError -> String
(Int -> BatchDescribeTypeConfigurationsError -> ShowS)
-> (BatchDescribeTypeConfigurationsError -> String)
-> ([BatchDescribeTypeConfigurationsError] -> ShowS)
-> Show BatchDescribeTypeConfigurationsError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDescribeTypeConfigurationsError] -> ShowS
$cshowList :: [BatchDescribeTypeConfigurationsError] -> ShowS
show :: BatchDescribeTypeConfigurationsError -> String
$cshow :: BatchDescribeTypeConfigurationsError -> String
showsPrec :: Int -> BatchDescribeTypeConfigurationsError -> ShowS
$cshowsPrec :: Int -> BatchDescribeTypeConfigurationsError -> ShowS
Prelude.Show, (forall x.
BatchDescribeTypeConfigurationsError
-> Rep BatchDescribeTypeConfigurationsError x)
-> (forall x.
Rep BatchDescribeTypeConfigurationsError x
-> BatchDescribeTypeConfigurationsError)
-> Generic BatchDescribeTypeConfigurationsError
forall x.
Rep BatchDescribeTypeConfigurationsError x
-> BatchDescribeTypeConfigurationsError
forall x.
BatchDescribeTypeConfigurationsError
-> Rep BatchDescribeTypeConfigurationsError x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDescribeTypeConfigurationsError x
-> BatchDescribeTypeConfigurationsError
$cfrom :: forall x.
BatchDescribeTypeConfigurationsError
-> Rep BatchDescribeTypeConfigurationsError x
Prelude.Generic)
newBatchDescribeTypeConfigurationsError ::
BatchDescribeTypeConfigurationsError
newBatchDescribeTypeConfigurationsError :: BatchDescribeTypeConfigurationsError
newBatchDescribeTypeConfigurationsError =
BatchDescribeTypeConfigurationsError' :: Maybe TypeConfigurationIdentifier
-> Maybe Text -> Maybe Text -> BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError'
{ $sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier =
Maybe TypeConfigurationIdentifier
forall a. Maybe a
Prelude.Nothing,
$sel:errorCode:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
batchDescribeTypeConfigurationsError_typeConfigurationIdentifier :: Lens.Lens' BatchDescribeTypeConfigurationsError (Prelude.Maybe TypeConfigurationIdentifier)
batchDescribeTypeConfigurationsError_typeConfigurationIdentifier :: (Maybe TypeConfigurationIdentifier
-> f (Maybe TypeConfigurationIdentifier))
-> BatchDescribeTypeConfigurationsError
-> f BatchDescribeTypeConfigurationsError
batchDescribeTypeConfigurationsError_typeConfigurationIdentifier = (BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier)
-> (BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
-> BatchDescribeTypeConfigurationsError)
-> Lens
BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError
(Maybe TypeConfigurationIdentifier)
(Maybe TypeConfigurationIdentifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeTypeConfigurationsError' {Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier :: Maybe TypeConfigurationIdentifier
$sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier} -> Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier) (\s :: BatchDescribeTypeConfigurationsError
s@BatchDescribeTypeConfigurationsError' {} Maybe TypeConfigurationIdentifier
a -> BatchDescribeTypeConfigurationsError
s {$sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier = Maybe TypeConfigurationIdentifier
a} :: BatchDescribeTypeConfigurationsError)
batchDescribeTypeConfigurationsError_errorCode :: Lens.Lens' BatchDescribeTypeConfigurationsError (Prelude.Maybe Prelude.Text)
batchDescribeTypeConfigurationsError_errorCode :: (Maybe Text -> f (Maybe Text))
-> BatchDescribeTypeConfigurationsError
-> f BatchDescribeTypeConfigurationsError
batchDescribeTypeConfigurationsError_errorCode = (BatchDescribeTypeConfigurationsError -> Maybe Text)
-> (BatchDescribeTypeConfigurationsError
-> Maybe Text -> BatchDescribeTypeConfigurationsError)
-> Lens
BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeTypeConfigurationsError' {Maybe Text
errorCode :: Maybe Text
$sel:errorCode:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
errorCode} -> Maybe Text
errorCode) (\s :: BatchDescribeTypeConfigurationsError
s@BatchDescribeTypeConfigurationsError' {} Maybe Text
a -> BatchDescribeTypeConfigurationsError
s {$sel:errorCode:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorCode = Maybe Text
a} :: BatchDescribeTypeConfigurationsError)
batchDescribeTypeConfigurationsError_errorMessage :: Lens.Lens' BatchDescribeTypeConfigurationsError (Prelude.Maybe Prelude.Text)
batchDescribeTypeConfigurationsError_errorMessage :: (Maybe Text -> f (Maybe Text))
-> BatchDescribeTypeConfigurationsError
-> f BatchDescribeTypeConfigurationsError
batchDescribeTypeConfigurationsError_errorMessage = (BatchDescribeTypeConfigurationsError -> Maybe Text)
-> (BatchDescribeTypeConfigurationsError
-> Maybe Text -> BatchDescribeTypeConfigurationsError)
-> Lens
BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeTypeConfigurationsError' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: BatchDescribeTypeConfigurationsError
s@BatchDescribeTypeConfigurationsError' {} Maybe Text
a -> BatchDescribeTypeConfigurationsError
s {$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorMessage = Maybe Text
a} :: BatchDescribeTypeConfigurationsError)
instance
Core.FromXML
BatchDescribeTypeConfigurationsError
where
parseXML :: [Node] -> Either String BatchDescribeTypeConfigurationsError
parseXML [Node]
x =
Maybe TypeConfigurationIdentifier
-> Maybe Text -> Maybe Text -> BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError'
(Maybe TypeConfigurationIdentifier
-> Maybe Text
-> Maybe Text
-> BatchDescribeTypeConfigurationsError)
-> Either String (Maybe TypeConfigurationIdentifier)
-> Either
String
(Maybe Text -> Maybe Text -> BatchDescribeTypeConfigurationsError)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe TypeConfigurationIdentifier)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TypeConfigurationIdentifier")
Either
String
(Maybe Text -> Maybe Text -> BatchDescribeTypeConfigurationsError)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> BatchDescribeTypeConfigurationsError)
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
"ErrorCode")
Either String (Maybe Text -> BatchDescribeTypeConfigurationsError)
-> Either String (Maybe Text)
-> Either String BatchDescribeTypeConfigurationsError
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
"ErrorMessage")
instance
Prelude.Hashable
BatchDescribeTypeConfigurationsError
instance
Prelude.NFData
BatchDescribeTypeConfigurationsError