{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data BatchDescribeTypeConfigurationsError = BatchDescribeTypeConfigurationsError'
{
BatchDescribeTypeConfigurationsError -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text,
BatchDescribeTypeConfigurationsError -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier :: Prelude.Maybe TypeConfigurationIdentifier
}
deriving (BatchDescribeTypeConfigurationsError
-> BatchDescribeTypeConfigurationsError -> Bool
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]
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
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.
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'
{ $sel:errorCode:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorCode =
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
$sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier =
forall a. Maybe a
Prelude.Nothing
}
batchDescribeTypeConfigurationsError_errorCode :: Lens.Lens' BatchDescribeTypeConfigurationsError (Prelude.Maybe Prelude.Text)
batchDescribeTypeConfigurationsError_errorCode :: Lens' BatchDescribeTypeConfigurationsError (Maybe Text)
batchDescribeTypeConfigurationsError_errorCode = 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 :: Lens' BatchDescribeTypeConfigurationsError (Maybe Text)
batchDescribeTypeConfigurationsError_errorMessage = 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)
batchDescribeTypeConfigurationsError_typeConfigurationIdentifier :: Lens.Lens' BatchDescribeTypeConfigurationsError (Prelude.Maybe TypeConfigurationIdentifier)
batchDescribeTypeConfigurationsError_typeConfigurationIdentifier :: Lens'
BatchDescribeTypeConfigurationsError
(Maybe TypeConfigurationIdentifier)
batchDescribeTypeConfigurationsError_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)
instance
Data.FromXML
BatchDescribeTypeConfigurationsError
where
parseXML :: [Node] -> Either String BatchDescribeTypeConfigurationsError
parseXML [Node]
x =
Maybe Text
-> Maybe Text
-> Maybe TypeConfigurationIdentifier
-> BatchDescribeTypeConfigurationsError
BatchDescribeTypeConfigurationsError'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ErrorCode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ErrorMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"TypeConfigurationIdentifier")
instance
Prelude.Hashable
BatchDescribeTypeConfigurationsError
where
hashWithSalt :: Int -> BatchDescribeTypeConfigurationsError -> Int
hashWithSalt
Int
_salt
BatchDescribeTypeConfigurationsError' {Maybe Text
Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier :: Maybe TypeConfigurationIdentifier
errorMessage :: Maybe Text
errorCode :: Maybe Text
$sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
$sel:errorCode:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier
instance
Prelude.NFData
BatchDescribeTypeConfigurationsError
where
rnf :: BatchDescribeTypeConfigurationsError -> ()
rnf BatchDescribeTypeConfigurationsError' {Maybe Text
Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier :: Maybe TypeConfigurationIdentifier
errorMessage :: Maybe Text
errorCode :: Maybe Text
$sel:typeConfigurationIdentifier:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError
-> Maybe TypeConfigurationIdentifier
$sel:errorMessage:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
$sel:errorCode:BatchDescribeTypeConfigurationsError' :: BatchDescribeTypeConfigurationsError -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TypeConfigurationIdentifier
typeConfigurationIdentifier