{-# 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.Lightsail.Types.LoadBalancerTlsCertificateRenewalSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types.LoadBalancerTlsCertificateDomainValidationOption
import Amazonka.Lightsail.Types.LoadBalancerTlsCertificateRenewalStatus
import qualified Amazonka.Prelude as Prelude
data LoadBalancerTlsCertificateRenewalSummary = LoadBalancerTlsCertificateRenewalSummary'
{
LoadBalancerTlsCertificateRenewalSummary
-> Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus :: Prelude.Maybe LoadBalancerTlsCertificateRenewalStatus,
LoadBalancerTlsCertificateRenewalSummary
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions :: Prelude.Maybe [LoadBalancerTlsCertificateDomainValidationOption]
}
deriving (LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool
(LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool)
-> (LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool)
-> Eq LoadBalancerTlsCertificateRenewalSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool
$c/= :: LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool
== :: LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool
$c== :: LoadBalancerTlsCertificateRenewalSummary
-> LoadBalancerTlsCertificateRenewalSummary -> Bool
Prelude.Eq, ReadPrec [LoadBalancerTlsCertificateRenewalSummary]
ReadPrec LoadBalancerTlsCertificateRenewalSummary
Int -> ReadS LoadBalancerTlsCertificateRenewalSummary
ReadS [LoadBalancerTlsCertificateRenewalSummary]
(Int -> ReadS LoadBalancerTlsCertificateRenewalSummary)
-> ReadS [LoadBalancerTlsCertificateRenewalSummary]
-> ReadPrec LoadBalancerTlsCertificateRenewalSummary
-> ReadPrec [LoadBalancerTlsCertificateRenewalSummary]
-> Read LoadBalancerTlsCertificateRenewalSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoadBalancerTlsCertificateRenewalSummary]
$creadListPrec :: ReadPrec [LoadBalancerTlsCertificateRenewalSummary]
readPrec :: ReadPrec LoadBalancerTlsCertificateRenewalSummary
$creadPrec :: ReadPrec LoadBalancerTlsCertificateRenewalSummary
readList :: ReadS [LoadBalancerTlsCertificateRenewalSummary]
$creadList :: ReadS [LoadBalancerTlsCertificateRenewalSummary]
readsPrec :: Int -> ReadS LoadBalancerTlsCertificateRenewalSummary
$creadsPrec :: Int -> ReadS LoadBalancerTlsCertificateRenewalSummary
Prelude.Read, Int -> LoadBalancerTlsCertificateRenewalSummary -> ShowS
[LoadBalancerTlsCertificateRenewalSummary] -> ShowS
LoadBalancerTlsCertificateRenewalSummary -> String
(Int -> LoadBalancerTlsCertificateRenewalSummary -> ShowS)
-> (LoadBalancerTlsCertificateRenewalSummary -> String)
-> ([LoadBalancerTlsCertificateRenewalSummary] -> ShowS)
-> Show LoadBalancerTlsCertificateRenewalSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoadBalancerTlsCertificateRenewalSummary] -> ShowS
$cshowList :: [LoadBalancerTlsCertificateRenewalSummary] -> ShowS
show :: LoadBalancerTlsCertificateRenewalSummary -> String
$cshow :: LoadBalancerTlsCertificateRenewalSummary -> String
showsPrec :: Int -> LoadBalancerTlsCertificateRenewalSummary -> ShowS
$cshowsPrec :: Int -> LoadBalancerTlsCertificateRenewalSummary -> ShowS
Prelude.Show, (forall x.
LoadBalancerTlsCertificateRenewalSummary
-> Rep LoadBalancerTlsCertificateRenewalSummary x)
-> (forall x.
Rep LoadBalancerTlsCertificateRenewalSummary x
-> LoadBalancerTlsCertificateRenewalSummary)
-> Generic LoadBalancerTlsCertificateRenewalSummary
forall x.
Rep LoadBalancerTlsCertificateRenewalSummary x
-> LoadBalancerTlsCertificateRenewalSummary
forall x.
LoadBalancerTlsCertificateRenewalSummary
-> Rep LoadBalancerTlsCertificateRenewalSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LoadBalancerTlsCertificateRenewalSummary x
-> LoadBalancerTlsCertificateRenewalSummary
$cfrom :: forall x.
LoadBalancerTlsCertificateRenewalSummary
-> Rep LoadBalancerTlsCertificateRenewalSummary x
Prelude.Generic)
newLoadBalancerTlsCertificateRenewalSummary ::
LoadBalancerTlsCertificateRenewalSummary
newLoadBalancerTlsCertificateRenewalSummary :: LoadBalancerTlsCertificateRenewalSummary
newLoadBalancerTlsCertificateRenewalSummary =
LoadBalancerTlsCertificateRenewalSummary' :: Maybe LoadBalancerTlsCertificateRenewalStatus
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary
LoadBalancerTlsCertificateRenewalSummary'
{ $sel:renewalStatus:LoadBalancerTlsCertificateRenewalSummary' :: Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus =
Maybe LoadBalancerTlsCertificateRenewalStatus
forall a. Maybe a
Prelude.Nothing,
$sel:domainValidationOptions:LoadBalancerTlsCertificateRenewalSummary' :: Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions =
Maybe [LoadBalancerTlsCertificateDomainValidationOption]
forall a. Maybe a
Prelude.Nothing
}
loadBalancerTlsCertificateRenewalSummary_renewalStatus :: Lens.Lens' LoadBalancerTlsCertificateRenewalSummary (Prelude.Maybe LoadBalancerTlsCertificateRenewalStatus)
loadBalancerTlsCertificateRenewalSummary_renewalStatus :: (Maybe LoadBalancerTlsCertificateRenewalStatus
-> f (Maybe LoadBalancerTlsCertificateRenewalStatus))
-> LoadBalancerTlsCertificateRenewalSummary
-> f LoadBalancerTlsCertificateRenewalSummary
loadBalancerTlsCertificateRenewalSummary_renewalStatus = (LoadBalancerTlsCertificateRenewalSummary
-> Maybe LoadBalancerTlsCertificateRenewalStatus)
-> (LoadBalancerTlsCertificateRenewalSummary
-> Maybe LoadBalancerTlsCertificateRenewalStatus
-> LoadBalancerTlsCertificateRenewalSummary)
-> Lens
LoadBalancerTlsCertificateRenewalSummary
LoadBalancerTlsCertificateRenewalSummary
(Maybe LoadBalancerTlsCertificateRenewalStatus)
(Maybe LoadBalancerTlsCertificateRenewalStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoadBalancerTlsCertificateRenewalSummary' {Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus :: Maybe LoadBalancerTlsCertificateRenewalStatus
$sel:renewalStatus:LoadBalancerTlsCertificateRenewalSummary' :: LoadBalancerTlsCertificateRenewalSummary
-> Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus} -> Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus) (\s :: LoadBalancerTlsCertificateRenewalSummary
s@LoadBalancerTlsCertificateRenewalSummary' {} Maybe LoadBalancerTlsCertificateRenewalStatus
a -> LoadBalancerTlsCertificateRenewalSummary
s {$sel:renewalStatus:LoadBalancerTlsCertificateRenewalSummary' :: Maybe LoadBalancerTlsCertificateRenewalStatus
renewalStatus = Maybe LoadBalancerTlsCertificateRenewalStatus
a} :: LoadBalancerTlsCertificateRenewalSummary)
loadBalancerTlsCertificateRenewalSummary_domainValidationOptions :: Lens.Lens' LoadBalancerTlsCertificateRenewalSummary (Prelude.Maybe [LoadBalancerTlsCertificateDomainValidationOption])
loadBalancerTlsCertificateRenewalSummary_domainValidationOptions :: (Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> f (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> LoadBalancerTlsCertificateRenewalSummary
-> f LoadBalancerTlsCertificateRenewalSummary
loadBalancerTlsCertificateRenewalSummary_domainValidationOptions = (LoadBalancerTlsCertificateRenewalSummary
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption])
-> (LoadBalancerTlsCertificateRenewalSummary
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary)
-> Lens
LoadBalancerTlsCertificateRenewalSummary
LoadBalancerTlsCertificateRenewalSummary
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoadBalancerTlsCertificateRenewalSummary' {Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions :: Maybe [LoadBalancerTlsCertificateDomainValidationOption]
$sel:domainValidationOptions:LoadBalancerTlsCertificateRenewalSummary' :: LoadBalancerTlsCertificateRenewalSummary
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions} -> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions) (\s :: LoadBalancerTlsCertificateRenewalSummary
s@LoadBalancerTlsCertificateRenewalSummary' {} Maybe [LoadBalancerTlsCertificateDomainValidationOption]
a -> LoadBalancerTlsCertificateRenewalSummary
s {$sel:domainValidationOptions:LoadBalancerTlsCertificateRenewalSummary' :: Maybe [LoadBalancerTlsCertificateDomainValidationOption]
domainValidationOptions = Maybe [LoadBalancerTlsCertificateDomainValidationOption]
a} :: LoadBalancerTlsCertificateRenewalSummary) ((Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> f (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> LoadBalancerTlsCertificateRenewalSummary
-> f LoadBalancerTlsCertificateRenewalSummary)
-> ((Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> f (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> f (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> (Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> f (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> LoadBalancerTlsCertificateRenewalSummary
-> f LoadBalancerTlsCertificateRenewalSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
-> Iso
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
[LoadBalancerTlsCertificateDomainValidationOption]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.FromJSON
LoadBalancerTlsCertificateRenewalSummary
where
parseJSON :: Value -> Parser LoadBalancerTlsCertificateRenewalSummary
parseJSON =
String
-> (Object -> Parser LoadBalancerTlsCertificateRenewalSummary)
-> Value
-> Parser LoadBalancerTlsCertificateRenewalSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LoadBalancerTlsCertificateRenewalSummary"
( \Object
x ->
Maybe LoadBalancerTlsCertificateRenewalStatus
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary
LoadBalancerTlsCertificateRenewalSummary'
(Maybe LoadBalancerTlsCertificateRenewalStatus
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary)
-> Parser (Maybe LoadBalancerTlsCertificateRenewalStatus)
-> Parser
(Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Parser (Maybe LoadBalancerTlsCertificateRenewalStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"renewalStatus")
Parser
(Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> LoadBalancerTlsCertificateRenewalSummary)
-> Parser
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
-> Parser LoadBalancerTlsCertificateRenewalSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser
(Maybe (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"domainValidationOptions"
Parser
(Maybe (Maybe [LoadBalancerTlsCertificateDomainValidationOption]))
-> Maybe [LoadBalancerTlsCertificateDomainValidationOption]
-> Parser
(Maybe [LoadBalancerTlsCertificateDomainValidationOption])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [LoadBalancerTlsCertificateDomainValidationOption]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
LoadBalancerTlsCertificateRenewalSummary
instance
Prelude.NFData
LoadBalancerTlsCertificateRenewalSummary