{-# 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.TypeConfigurationIdentifier where
import Amazonka.CloudFormation.Types.ThirdPartyType
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 TypeConfigurationIdentifier = TypeConfigurationIdentifier'
{
TypeConfigurationIdentifier -> Maybe ThirdPartyType
type' :: Prelude.Maybe ThirdPartyType,
TypeConfigurationIdentifier -> Maybe Text
typeArn :: Prelude.Maybe Prelude.Text,
TypeConfigurationIdentifier -> Maybe Text
typeConfigurationAlias :: Prelude.Maybe Prelude.Text,
TypeConfigurationIdentifier -> Maybe Text
typeConfigurationArn :: Prelude.Maybe Prelude.Text,
TypeConfigurationIdentifier -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text
}
deriving (TypeConfigurationIdentifier -> TypeConfigurationIdentifier -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeConfigurationIdentifier -> TypeConfigurationIdentifier -> Bool
$c/= :: TypeConfigurationIdentifier -> TypeConfigurationIdentifier -> Bool
== :: TypeConfigurationIdentifier -> TypeConfigurationIdentifier -> Bool
$c== :: TypeConfigurationIdentifier -> TypeConfigurationIdentifier -> Bool
Prelude.Eq, ReadPrec [TypeConfigurationIdentifier]
ReadPrec TypeConfigurationIdentifier
Int -> ReadS TypeConfigurationIdentifier
ReadS [TypeConfigurationIdentifier]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TypeConfigurationIdentifier]
$creadListPrec :: ReadPrec [TypeConfigurationIdentifier]
readPrec :: ReadPrec TypeConfigurationIdentifier
$creadPrec :: ReadPrec TypeConfigurationIdentifier
readList :: ReadS [TypeConfigurationIdentifier]
$creadList :: ReadS [TypeConfigurationIdentifier]
readsPrec :: Int -> ReadS TypeConfigurationIdentifier
$creadsPrec :: Int -> ReadS TypeConfigurationIdentifier
Prelude.Read, Int -> TypeConfigurationIdentifier -> ShowS
[TypeConfigurationIdentifier] -> ShowS
TypeConfigurationIdentifier -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeConfigurationIdentifier] -> ShowS
$cshowList :: [TypeConfigurationIdentifier] -> ShowS
show :: TypeConfigurationIdentifier -> String
$cshow :: TypeConfigurationIdentifier -> String
showsPrec :: Int -> TypeConfigurationIdentifier -> ShowS
$cshowsPrec :: Int -> TypeConfigurationIdentifier -> ShowS
Prelude.Show, forall x.
Rep TypeConfigurationIdentifier x -> TypeConfigurationIdentifier
forall x.
TypeConfigurationIdentifier -> Rep TypeConfigurationIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TypeConfigurationIdentifier x -> TypeConfigurationIdentifier
$cfrom :: forall x.
TypeConfigurationIdentifier -> Rep TypeConfigurationIdentifier x
Prelude.Generic)
newTypeConfigurationIdentifier ::
TypeConfigurationIdentifier
newTypeConfigurationIdentifier :: TypeConfigurationIdentifier
newTypeConfigurationIdentifier =
TypeConfigurationIdentifier'
{ $sel:type':TypeConfigurationIdentifier' :: Maybe ThirdPartyType
type' =
forall a. Maybe a
Prelude.Nothing,
$sel:typeArn:TypeConfigurationIdentifier' :: Maybe Text
typeArn = forall a. Maybe a
Prelude.Nothing,
$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: Maybe Text
typeConfigurationAlias = forall a. Maybe a
Prelude.Nothing,
$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: Maybe Text
typeConfigurationArn = forall a. Maybe a
Prelude.Nothing,
$sel:typeName:TypeConfigurationIdentifier' :: Maybe Text
typeName = forall a. Maybe a
Prelude.Nothing
}
typeConfigurationIdentifier_type :: Lens.Lens' TypeConfigurationIdentifier (Prelude.Maybe ThirdPartyType)
typeConfigurationIdentifier_type :: Lens' TypeConfigurationIdentifier (Maybe ThirdPartyType)
typeConfigurationIdentifier_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationIdentifier' {Maybe ThirdPartyType
type' :: Maybe ThirdPartyType
$sel:type':TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe ThirdPartyType
type'} -> Maybe ThirdPartyType
type') (\s :: TypeConfigurationIdentifier
s@TypeConfigurationIdentifier' {} Maybe ThirdPartyType
a -> TypeConfigurationIdentifier
s {$sel:type':TypeConfigurationIdentifier' :: Maybe ThirdPartyType
type' = Maybe ThirdPartyType
a} :: TypeConfigurationIdentifier)
typeConfigurationIdentifier_typeArn :: Lens.Lens' TypeConfigurationIdentifier (Prelude.Maybe Prelude.Text)
typeConfigurationIdentifier_typeArn :: Lens' TypeConfigurationIdentifier (Maybe Text)
typeConfigurationIdentifier_typeArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationIdentifier' {Maybe Text
typeArn :: Maybe Text
$sel:typeArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
typeArn} -> Maybe Text
typeArn) (\s :: TypeConfigurationIdentifier
s@TypeConfigurationIdentifier' {} Maybe Text
a -> TypeConfigurationIdentifier
s {$sel:typeArn:TypeConfigurationIdentifier' :: Maybe Text
typeArn = Maybe Text
a} :: TypeConfigurationIdentifier)
typeConfigurationIdentifier_typeConfigurationAlias :: Lens.Lens' TypeConfigurationIdentifier (Prelude.Maybe Prelude.Text)
typeConfigurationIdentifier_typeConfigurationAlias :: Lens' TypeConfigurationIdentifier (Maybe Text)
typeConfigurationIdentifier_typeConfigurationAlias = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationIdentifier' {Maybe Text
typeConfigurationAlias :: Maybe Text
$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
typeConfigurationAlias} -> Maybe Text
typeConfigurationAlias) (\s :: TypeConfigurationIdentifier
s@TypeConfigurationIdentifier' {} Maybe Text
a -> TypeConfigurationIdentifier
s {$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: Maybe Text
typeConfigurationAlias = Maybe Text
a} :: TypeConfigurationIdentifier)
typeConfigurationIdentifier_typeConfigurationArn :: Lens.Lens' TypeConfigurationIdentifier (Prelude.Maybe Prelude.Text)
typeConfigurationIdentifier_typeConfigurationArn :: Lens' TypeConfigurationIdentifier (Maybe Text)
typeConfigurationIdentifier_typeConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationIdentifier' {Maybe Text
typeConfigurationArn :: Maybe Text
$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
typeConfigurationArn} -> Maybe Text
typeConfigurationArn) (\s :: TypeConfigurationIdentifier
s@TypeConfigurationIdentifier' {} Maybe Text
a -> TypeConfigurationIdentifier
s {$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: Maybe Text
typeConfigurationArn = Maybe Text
a} :: TypeConfigurationIdentifier)
typeConfigurationIdentifier_typeName :: Lens.Lens' TypeConfigurationIdentifier (Prelude.Maybe Prelude.Text)
typeConfigurationIdentifier_typeName :: Lens' TypeConfigurationIdentifier (Maybe Text)
typeConfigurationIdentifier_typeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationIdentifier' {Maybe Text
typeName :: Maybe Text
$sel:typeName:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: TypeConfigurationIdentifier
s@TypeConfigurationIdentifier' {} Maybe Text
a -> TypeConfigurationIdentifier
s {$sel:typeName:TypeConfigurationIdentifier' :: Maybe Text
typeName = Maybe Text
a} :: TypeConfigurationIdentifier)
instance Data.FromXML TypeConfigurationIdentifier where
parseXML :: [Node] -> Either String TypeConfigurationIdentifier
parseXML [Node]
x =
Maybe ThirdPartyType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> TypeConfigurationIdentifier
TypeConfigurationIdentifier'
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
"Type")
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
"TypeArn")
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
"TypeConfigurationAlias")
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
"TypeConfigurationArn")
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
"TypeName")
instance Prelude.Hashable TypeConfigurationIdentifier where
hashWithSalt :: Int -> TypeConfigurationIdentifier -> Int
hashWithSalt Int
_salt TypeConfigurationIdentifier' {Maybe Text
Maybe ThirdPartyType
typeName :: Maybe Text
typeConfigurationArn :: Maybe Text
typeConfigurationAlias :: Maybe Text
typeArn :: Maybe Text
type' :: Maybe ThirdPartyType
$sel:typeName:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:type':TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe ThirdPartyType
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ThirdPartyType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
typeArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
typeConfigurationAlias
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
typeConfigurationArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
typeName
instance Prelude.NFData TypeConfigurationIdentifier where
rnf :: TypeConfigurationIdentifier -> ()
rnf TypeConfigurationIdentifier' {Maybe Text
Maybe ThirdPartyType
typeName :: Maybe Text
typeConfigurationArn :: Maybe Text
typeConfigurationAlias :: Maybe Text
typeArn :: Maybe Text
type' :: Maybe ThirdPartyType
$sel:typeName:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:type':TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe ThirdPartyType
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ThirdPartyType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
typeArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
typeConfigurationAlias
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
typeConfigurationArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
typeName
instance Data.ToQuery TypeConfigurationIdentifier where
toQuery :: TypeConfigurationIdentifier -> QueryString
toQuery TypeConfigurationIdentifier' {Maybe Text
Maybe ThirdPartyType
typeName :: Maybe Text
typeConfigurationArn :: Maybe Text
typeConfigurationAlias :: Maybe Text
typeArn :: Maybe Text
type' :: Maybe ThirdPartyType
$sel:typeName:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeConfigurationAlias:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:typeArn:TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe Text
$sel:type':TypeConfigurationIdentifier' :: TypeConfigurationIdentifier -> Maybe ThirdPartyType
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Type" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ThirdPartyType
type',
ByteString
"TypeArn" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
typeArn,
ByteString
"TypeConfigurationAlias"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
typeConfigurationAlias,
ByteString
"TypeConfigurationArn" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
typeConfigurationArn,
ByteString
"TypeName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
typeName
]