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