{-# 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.SecurityHub.Types.AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails = AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails'
{
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
automatedUpdateDate :: Prelude.Maybe Prelude.Text,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
currentVersion :: Prelude.Maybe Prelude.Text,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
optionalDeployment :: Prelude.Maybe Prelude.Bool,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
updateStatus :: Prelude.Maybe Prelude.Text,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
cancellable :: Prelude.Maybe Prelude.Bool,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
updateAvailable :: Prelude.Maybe Prelude.Bool,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
description :: Prelude.Maybe Prelude.Text,
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
newVersion' :: Prelude.Maybe Prelude.Text
}
deriving (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool
(AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool)
-> Eq AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool
$c/= :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool
== :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool
$c== :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Bool
Prelude.Eq, ReadPrec [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
ReadPrec AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
Int
-> ReadS AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
ReadS [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
(Int
-> ReadS AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> ReadS [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
-> ReadPrec AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> ReadPrec
[AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
-> Read AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
$creadListPrec :: ReadPrec [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
readPrec :: ReadPrec AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
$creadPrec :: ReadPrec AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
readList :: ReadS [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
$creadList :: ReadS [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
readsPrec :: Int
-> ReadS AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
$creadsPrec :: Int
-> ReadS AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
Prelude.Read, Int
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> ShowS
[AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails] -> ShowS
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> String
(Int
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> ShowS)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> String)
-> ([AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails]
-> ShowS)
-> Show AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails] -> ShowS
$cshowList :: [AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails] -> ShowS
show :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> String
$cshow :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> String
showsPrec :: Int
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> ShowS
$cshowsPrec :: Int
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> ShowS
Prelude.Show, (forall x.
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x)
-> (forall x.
Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Generic AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall x.
Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall x.
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
$cfrom :: forall x.
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Rep AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails x
Prelude.Generic)
newAwsOpenSearchServiceDomainServiceSoftwareOptionsDetails ::
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
newAwsOpenSearchServiceDomainServiceSoftwareOptionsDetails :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
newAwsOpenSearchServiceDomainServiceSoftwareOptionsDetails =
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails'
{ $sel:automatedUpdateDate:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
automatedUpdateDate =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:currentVersion:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
currentVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:optionalDeployment:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
optionalDeployment =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:updateStatus:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
updateStatus =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cancellable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
cancellable =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:updateAvailable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
updateAvailable =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
description =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:newVersion':AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
newVersion' =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_automatedUpdateDate :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_automatedUpdateDate :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_automatedUpdateDate = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Text
automatedUpdateDate :: Maybe Text
$sel:automatedUpdateDate:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
automatedUpdateDate} -> Maybe Text
automatedUpdateDate) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:automatedUpdateDate:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
automatedUpdateDate = Maybe Text
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_currentVersion :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_currentVersion :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_currentVersion = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Text
currentVersion :: Maybe Text
$sel:currentVersion:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
currentVersion} -> Maybe Text
currentVersion) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:currentVersion:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
currentVersion = Maybe Text
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_optionalDeployment :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Bool)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_optionalDeployment :: (Maybe Bool -> f (Maybe Bool))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_optionalDeployment = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Bool
optionalDeployment :: Maybe Bool
$sel:optionalDeployment:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
optionalDeployment} -> Maybe Bool
optionalDeployment) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Bool
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:optionalDeployment:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
optionalDeployment = Maybe Bool
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateStatus :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateStatus :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateStatus = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Text
updateStatus :: Maybe Text
$sel:updateStatus:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
updateStatus} -> Maybe Text
updateStatus) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:updateStatus:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
updateStatus = Maybe Text
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_cancellable :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Bool)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_cancellable :: (Maybe Bool -> f (Maybe Bool))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_cancellable = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Bool
cancellable :: Maybe Bool
$sel:cancellable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
cancellable} -> Maybe Bool
cancellable) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Bool
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:cancellable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
cancellable = Maybe Bool
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateAvailable :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Bool)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateAvailable :: (Maybe Bool -> f (Maybe Bool))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_updateAvailable = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Bool
updateAvailable :: Maybe Bool
$sel:updateAvailable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
updateAvailable} -> Maybe Bool
updateAvailable) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Bool
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:updateAvailable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Bool
updateAvailable = Maybe Bool
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_description :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_description :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_description = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Text
description :: Maybe Text
$sel:description:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
description} -> Maybe Text
description) (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:description:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
description = Maybe Text
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_newVersion :: Lens.Lens' AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_newVersion :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> f AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
awsOpenSearchServiceDomainServiceSoftwareOptionsDetails_newVersion = (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text)
-> (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Lens
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Text
newVersion' :: Maybe Text
$sel:newVersion':AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
newVersion'} -> Maybe Text
newVersion') (\s :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s@AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
s {$sel:newVersion':AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: Maybe Text
newVersion' = Maybe Text
a} :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
instance
Core.FromJSON
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
where
parseJSON :: Value
-> Parser AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
parseJSON =
String
-> (Object
-> Parser AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Value
-> Parser AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AutomatedUpdateDate")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentVersion")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OptionalDeployment")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdateStatus")
Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Bool)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Cancellable")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UpdateAvailable")
Parser
(Maybe Text
-> Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Description")
Parser
(Maybe Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser (Maybe Text)
-> Parser AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NewVersion")
)
instance
Prelude.Hashable
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
instance
Prelude.NFData
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
instance
Core.ToJSON
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
where
toJSON :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Value
toJSON
AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' {Maybe Bool
Maybe Text
newVersion' :: Maybe Text
description :: Maybe Text
updateAvailable :: Maybe Bool
cancellable :: Maybe Bool
updateStatus :: Maybe Text
optionalDeployment :: Maybe Bool
currentVersion :: Maybe Text
automatedUpdateDate :: Maybe Text
$sel:newVersion':AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
$sel:description:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
$sel:updateAvailable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
$sel:cancellable:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
$sel:updateStatus:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
$sel:optionalDeployment:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Bool
$sel:currentVersion:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
$sel:automatedUpdateDate:AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails' :: AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AutomatedUpdateDate" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
automatedUpdateDate,
(Text
"CurrentVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
currentVersion,
(Text
"OptionalDeployment" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
optionalDeployment,
(Text
"UpdateStatus" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
updateStatus,
(Text
"Cancellable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
cancellable,
(Text
"UpdateAvailable" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
updateAvailable,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"NewVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
newVersion'
]
)