{-# 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.APIGateway.Types.Stage where
import Amazonka.APIGateway.Types.AccessLogSettings
import Amazonka.APIGateway.Types.CacheClusterSize
import Amazonka.APIGateway.Types.CacheClusterStatus
import Amazonka.APIGateway.Types.CanarySettings
import Amazonka.APIGateway.Types.MethodSetting
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 Stage = Stage'
{
Stage -> Maybe AccessLogSettings
accessLogSettings :: Prelude.Maybe AccessLogSettings,
Stage -> Maybe Bool
cacheClusterEnabled :: Prelude.Maybe Prelude.Bool,
Stage -> Maybe CacheClusterSize
cacheClusterSize :: Prelude.Maybe CacheClusterSize,
Stage -> Maybe CacheClusterStatus
cacheClusterStatus :: Prelude.Maybe CacheClusterStatus,
Stage -> Maybe CanarySettings
canarySettings :: Prelude.Maybe CanarySettings,
Stage -> Maybe Text
clientCertificateId :: Prelude.Maybe Prelude.Text,
Stage -> Maybe POSIX
createdDate :: Prelude.Maybe Data.POSIX,
Stage -> Maybe Text
deploymentId :: Prelude.Maybe Prelude.Text,
Stage -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Stage -> Maybe Text
documentationVersion :: Prelude.Maybe Prelude.Text,
Stage -> Maybe POSIX
lastUpdatedDate :: Prelude.Maybe Data.POSIX,
Stage -> Maybe (HashMap Text MethodSetting)
methodSettings :: Prelude.Maybe (Prelude.HashMap Prelude.Text MethodSetting),
Stage -> Maybe Text
stageName :: Prelude.Maybe Prelude.Text,
Stage -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Stage -> Maybe Bool
tracingEnabled :: Prelude.Maybe Prelude.Bool,
Stage -> Maybe (HashMap Text Text)
variables :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
Stage -> Maybe Text
webAclArn :: Prelude.Maybe Prelude.Text
}
deriving (Stage -> Stage -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Stage -> Stage -> Bool
$c/= :: Stage -> Stage -> Bool
== :: Stage -> Stage -> Bool
$c== :: Stage -> Stage -> Bool
Prelude.Eq, ReadPrec [Stage]
ReadPrec Stage
Int -> ReadS Stage
ReadS [Stage]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Stage]
$creadListPrec :: ReadPrec [Stage]
readPrec :: ReadPrec Stage
$creadPrec :: ReadPrec Stage
readList :: ReadS [Stage]
$creadList :: ReadS [Stage]
readsPrec :: Int -> ReadS Stage
$creadsPrec :: Int -> ReadS Stage
Prelude.Read, Int -> Stage -> ShowS
[Stage] -> ShowS
Stage -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Stage] -> ShowS
$cshowList :: [Stage] -> ShowS
show :: Stage -> String
$cshow :: Stage -> String
showsPrec :: Int -> Stage -> ShowS
$cshowsPrec :: Int -> Stage -> ShowS
Prelude.Show, forall x. Rep Stage x -> Stage
forall x. Stage -> Rep Stage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Stage x -> Stage
$cfrom :: forall x. Stage -> Rep Stage x
Prelude.Generic)
newStage ::
Stage
newStage :: Stage
newStage =
Stage'
{ $sel:accessLogSettings:Stage' :: Maybe AccessLogSettings
accessLogSettings = forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterEnabled:Stage' :: Maybe Bool
cacheClusterEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterSize:Stage' :: Maybe CacheClusterSize
cacheClusterSize = forall a. Maybe a
Prelude.Nothing,
$sel:cacheClusterStatus:Stage' :: Maybe CacheClusterStatus
cacheClusterStatus = forall a. Maybe a
Prelude.Nothing,
$sel:canarySettings:Stage' :: Maybe CanarySettings
canarySettings = forall a. Maybe a
Prelude.Nothing,
$sel:clientCertificateId:Stage' :: Maybe Text
clientCertificateId = forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:Stage' :: Maybe POSIX
createdDate = forall a. Maybe a
Prelude.Nothing,
$sel:deploymentId:Stage' :: Maybe Text
deploymentId = forall a. Maybe a
Prelude.Nothing,
$sel:description:Stage' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:documentationVersion:Stage' :: Maybe Text
documentationVersion = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDate:Stage' :: Maybe POSIX
lastUpdatedDate = forall a. Maybe a
Prelude.Nothing,
$sel:methodSettings:Stage' :: Maybe (HashMap Text MethodSetting)
methodSettings = forall a. Maybe a
Prelude.Nothing,
$sel:stageName:Stage' :: Maybe Text
stageName = forall a. Maybe a
Prelude.Nothing,
$sel:tags:Stage' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:tracingEnabled:Stage' :: Maybe Bool
tracingEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:variables:Stage' :: Maybe (HashMap Text Text)
variables = forall a. Maybe a
Prelude.Nothing,
$sel:webAclArn:Stage' :: Maybe Text
webAclArn = forall a. Maybe a
Prelude.Nothing
}
stage_accessLogSettings :: Lens.Lens' Stage (Prelude.Maybe AccessLogSettings)
stage_accessLogSettings :: Lens' Stage (Maybe AccessLogSettings)
stage_accessLogSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe AccessLogSettings
accessLogSettings :: Maybe AccessLogSettings
$sel:accessLogSettings:Stage' :: Stage -> Maybe AccessLogSettings
accessLogSettings} -> Maybe AccessLogSettings
accessLogSettings) (\s :: Stage
s@Stage' {} Maybe AccessLogSettings
a -> Stage
s {$sel:accessLogSettings:Stage' :: Maybe AccessLogSettings
accessLogSettings = Maybe AccessLogSettings
a} :: Stage)
stage_cacheClusterEnabled :: Lens.Lens' Stage (Prelude.Maybe Prelude.Bool)
stage_cacheClusterEnabled :: Lens' Stage (Maybe Bool)
stage_cacheClusterEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Bool
cacheClusterEnabled :: Maybe Bool
$sel:cacheClusterEnabled:Stage' :: Stage -> Maybe Bool
cacheClusterEnabled} -> Maybe Bool
cacheClusterEnabled) (\s :: Stage
s@Stage' {} Maybe Bool
a -> Stage
s {$sel:cacheClusterEnabled:Stage' :: Maybe Bool
cacheClusterEnabled = Maybe Bool
a} :: Stage)
stage_cacheClusterSize :: Lens.Lens' Stage (Prelude.Maybe CacheClusterSize)
stage_cacheClusterSize :: Lens' Stage (Maybe CacheClusterSize)
stage_cacheClusterSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe CacheClusterSize
cacheClusterSize :: Maybe CacheClusterSize
$sel:cacheClusterSize:Stage' :: Stage -> Maybe CacheClusterSize
cacheClusterSize} -> Maybe CacheClusterSize
cacheClusterSize) (\s :: Stage
s@Stage' {} Maybe CacheClusterSize
a -> Stage
s {$sel:cacheClusterSize:Stage' :: Maybe CacheClusterSize
cacheClusterSize = Maybe CacheClusterSize
a} :: Stage)
stage_cacheClusterStatus :: Lens.Lens' Stage (Prelude.Maybe CacheClusterStatus)
stage_cacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus)
stage_cacheClusterStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe CacheClusterStatus
cacheClusterStatus :: Maybe CacheClusterStatus
$sel:cacheClusterStatus:Stage' :: Stage -> Maybe CacheClusterStatus
cacheClusterStatus} -> Maybe CacheClusterStatus
cacheClusterStatus) (\s :: Stage
s@Stage' {} Maybe CacheClusterStatus
a -> Stage
s {$sel:cacheClusterStatus:Stage' :: Maybe CacheClusterStatus
cacheClusterStatus = Maybe CacheClusterStatus
a} :: Stage)
stage_canarySettings :: Lens.Lens' Stage (Prelude.Maybe CanarySettings)
stage_canarySettings :: Lens' Stage (Maybe CanarySettings)
stage_canarySettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe CanarySettings
canarySettings :: Maybe CanarySettings
$sel:canarySettings:Stage' :: Stage -> Maybe CanarySettings
canarySettings} -> Maybe CanarySettings
canarySettings) (\s :: Stage
s@Stage' {} Maybe CanarySettings
a -> Stage
s {$sel:canarySettings:Stage' :: Maybe CanarySettings
canarySettings = Maybe CanarySettings
a} :: Stage)
stage_clientCertificateId :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_clientCertificateId :: Lens' Stage (Maybe Text)
stage_clientCertificateId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
clientCertificateId :: Maybe Text
$sel:clientCertificateId:Stage' :: Stage -> Maybe Text
clientCertificateId} -> Maybe Text
clientCertificateId) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:clientCertificateId:Stage' :: Maybe Text
clientCertificateId = Maybe Text
a} :: Stage)
stage_createdDate :: Lens.Lens' Stage (Prelude.Maybe Prelude.UTCTime)
stage_createdDate :: Lens' Stage (Maybe UTCTime)
stage_createdDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:Stage' :: Stage -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: Stage
s@Stage' {} Maybe POSIX
a -> Stage
s {$sel:createdDate:Stage' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: Stage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
stage_deploymentId :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_deploymentId :: Lens' Stage (Maybe Text)
stage_deploymentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
deploymentId :: Maybe Text
$sel:deploymentId:Stage' :: Stage -> Maybe Text
deploymentId} -> Maybe Text
deploymentId) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:deploymentId:Stage' :: Maybe Text
deploymentId = Maybe Text
a} :: Stage)
stage_description :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_description :: Lens' Stage (Maybe Text)
stage_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
description :: Maybe Text
$sel:description:Stage' :: Stage -> Maybe Text
description} -> Maybe Text
description) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:description:Stage' :: Maybe Text
description = Maybe Text
a} :: Stage)
stage_documentationVersion :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_documentationVersion :: Lens' Stage (Maybe Text)
stage_documentationVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
documentationVersion :: Maybe Text
$sel:documentationVersion:Stage' :: Stage -> Maybe Text
documentationVersion} -> Maybe Text
documentationVersion) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:documentationVersion:Stage' :: Maybe Text
documentationVersion = Maybe Text
a} :: Stage)
stage_lastUpdatedDate :: Lens.Lens' Stage (Prelude.Maybe Prelude.UTCTime)
stage_lastUpdatedDate :: Lens' Stage (Maybe UTCTime)
stage_lastUpdatedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe POSIX
lastUpdatedDate :: Maybe POSIX
$sel:lastUpdatedDate:Stage' :: Stage -> Maybe POSIX
lastUpdatedDate} -> Maybe POSIX
lastUpdatedDate) (\s :: Stage
s@Stage' {} Maybe POSIX
a -> Stage
s {$sel:lastUpdatedDate:Stage' :: Maybe POSIX
lastUpdatedDate = Maybe POSIX
a} :: Stage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
stage_methodSettings :: Lens.Lens' Stage (Prelude.Maybe (Prelude.HashMap Prelude.Text MethodSetting))
stage_methodSettings :: Lens' Stage (Maybe (HashMap Text MethodSetting))
stage_methodSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe (HashMap Text MethodSetting)
methodSettings :: Maybe (HashMap Text MethodSetting)
$sel:methodSettings:Stage' :: Stage -> Maybe (HashMap Text MethodSetting)
methodSettings} -> Maybe (HashMap Text MethodSetting)
methodSettings) (\s :: Stage
s@Stage' {} Maybe (HashMap Text MethodSetting)
a -> Stage
s {$sel:methodSettings:Stage' :: Maybe (HashMap Text MethodSetting)
methodSettings = Maybe (HashMap Text MethodSetting)
a} :: Stage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stage_stageName :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_stageName :: Lens' Stage (Maybe Text)
stage_stageName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
stageName :: Maybe Text
$sel:stageName:Stage' :: Stage -> Maybe Text
stageName} -> Maybe Text
stageName) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:stageName:Stage' :: Maybe Text
stageName = Maybe Text
a} :: Stage)
stage_tags :: Lens.Lens' Stage (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
stage_tags :: Lens' Stage (Maybe (HashMap Text Text))
stage_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Stage' :: Stage -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Stage
s@Stage' {} Maybe (HashMap Text Text)
a -> Stage
s {$sel:tags:Stage' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Stage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stage_tracingEnabled :: Lens.Lens' Stage (Prelude.Maybe Prelude.Bool)
stage_tracingEnabled :: Lens' Stage (Maybe Bool)
stage_tracingEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Bool
tracingEnabled :: Maybe Bool
$sel:tracingEnabled:Stage' :: Stage -> Maybe Bool
tracingEnabled} -> Maybe Bool
tracingEnabled) (\s :: Stage
s@Stage' {} Maybe Bool
a -> Stage
s {$sel:tracingEnabled:Stage' :: Maybe Bool
tracingEnabled = Maybe Bool
a} :: Stage)
stage_variables :: Lens.Lens' Stage (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
stage_variables :: Lens' Stage (Maybe (HashMap Text Text))
stage_variables = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe (HashMap Text Text)
variables :: Maybe (HashMap Text Text)
$sel:variables:Stage' :: Stage -> Maybe (HashMap Text Text)
variables} -> Maybe (HashMap Text Text)
variables) (\s :: Stage
s@Stage' {} Maybe (HashMap Text Text)
a -> Stage
s {$sel:variables:Stage' :: Maybe (HashMap Text Text)
variables = Maybe (HashMap Text Text)
a} :: Stage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stage_webAclArn :: Lens.Lens' Stage (Prelude.Maybe Prelude.Text)
stage_webAclArn :: Lens' Stage (Maybe Text)
stage_webAclArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Stage' {Maybe Text
webAclArn :: Maybe Text
$sel:webAclArn:Stage' :: Stage -> Maybe Text
webAclArn} -> Maybe Text
webAclArn) (\s :: Stage
s@Stage' {} Maybe Text
a -> Stage
s {$sel:webAclArn:Stage' :: Maybe Text
webAclArn = Maybe Text
a} :: Stage)
instance Data.FromJSON Stage where
parseJSON :: Value -> Parser Stage
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Stage"
( \Object
x ->
Maybe AccessLogSettings
-> Maybe Bool
-> Maybe CacheClusterSize
-> Maybe CacheClusterStatus
-> Maybe CanarySettings
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text MethodSetting)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Bool
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Stage
Stage'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"accessLogSettings")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"cacheClusterEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"cacheClusterSize")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"cacheClusterStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"canarySettings")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"clientCertificateId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"deploymentId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"documentationVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"methodSettings" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"stageName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tracingEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"variables" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"webAclArn")
)
instance Prelude.Hashable Stage where
hashWithSalt :: Int -> Stage -> Int
hashWithSalt Int
_salt Stage' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text MethodSetting)
Maybe POSIX
Maybe AccessLogSettings
Maybe CacheClusterSize
Maybe CacheClusterStatus
Maybe CanarySettings
webAclArn :: Maybe Text
variables :: Maybe (HashMap Text Text)
tracingEnabled :: Maybe Bool
tags :: Maybe (HashMap Text Text)
stageName :: Maybe Text
methodSettings :: Maybe (HashMap Text MethodSetting)
lastUpdatedDate :: Maybe POSIX
documentationVersion :: Maybe Text
description :: Maybe Text
deploymentId :: Maybe Text
createdDate :: Maybe POSIX
clientCertificateId :: Maybe Text
canarySettings :: Maybe CanarySettings
cacheClusterStatus :: Maybe CacheClusterStatus
cacheClusterSize :: Maybe CacheClusterSize
cacheClusterEnabled :: Maybe Bool
accessLogSettings :: Maybe AccessLogSettings
$sel:webAclArn:Stage' :: Stage -> Maybe Text
$sel:variables:Stage' :: Stage -> Maybe (HashMap Text Text)
$sel:tracingEnabled:Stage' :: Stage -> Maybe Bool
$sel:tags:Stage' :: Stage -> Maybe (HashMap Text Text)
$sel:stageName:Stage' :: Stage -> Maybe Text
$sel:methodSettings:Stage' :: Stage -> Maybe (HashMap Text MethodSetting)
$sel:lastUpdatedDate:Stage' :: Stage -> Maybe POSIX
$sel:documentationVersion:Stage' :: Stage -> Maybe Text
$sel:description:Stage' :: Stage -> Maybe Text
$sel:deploymentId:Stage' :: Stage -> Maybe Text
$sel:createdDate:Stage' :: Stage -> Maybe POSIX
$sel:clientCertificateId:Stage' :: Stage -> Maybe Text
$sel:canarySettings:Stage' :: Stage -> Maybe CanarySettings
$sel:cacheClusterStatus:Stage' :: Stage -> Maybe CacheClusterStatus
$sel:cacheClusterSize:Stage' :: Stage -> Maybe CacheClusterSize
$sel:cacheClusterEnabled:Stage' :: Stage -> Maybe Bool
$sel:accessLogSettings:Stage' :: Stage -> Maybe AccessLogSettings
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AccessLogSettings
accessLogSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
cacheClusterEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CacheClusterSize
cacheClusterSize
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CacheClusterStatus
cacheClusterStatus
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CanarySettings
canarySettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientCertificateId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deploymentId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
documentationVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text MethodSetting)
methodSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
stageName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
tracingEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
variables
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
webAclArn
instance Prelude.NFData Stage where
rnf :: Stage -> ()
rnf Stage' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap Text MethodSetting)
Maybe POSIX
Maybe AccessLogSettings
Maybe CacheClusterSize
Maybe CacheClusterStatus
Maybe CanarySettings
webAclArn :: Maybe Text
variables :: Maybe (HashMap Text Text)
tracingEnabled :: Maybe Bool
tags :: Maybe (HashMap Text Text)
stageName :: Maybe Text
methodSettings :: Maybe (HashMap Text MethodSetting)
lastUpdatedDate :: Maybe POSIX
documentationVersion :: Maybe Text
description :: Maybe Text
deploymentId :: Maybe Text
createdDate :: Maybe POSIX
clientCertificateId :: Maybe Text
canarySettings :: Maybe CanarySettings
cacheClusterStatus :: Maybe CacheClusterStatus
cacheClusterSize :: Maybe CacheClusterSize
cacheClusterEnabled :: Maybe Bool
accessLogSettings :: Maybe AccessLogSettings
$sel:webAclArn:Stage' :: Stage -> Maybe Text
$sel:variables:Stage' :: Stage -> Maybe (HashMap Text Text)
$sel:tracingEnabled:Stage' :: Stage -> Maybe Bool
$sel:tags:Stage' :: Stage -> Maybe (HashMap Text Text)
$sel:stageName:Stage' :: Stage -> Maybe Text
$sel:methodSettings:Stage' :: Stage -> Maybe (HashMap Text MethodSetting)
$sel:lastUpdatedDate:Stage' :: Stage -> Maybe POSIX
$sel:documentationVersion:Stage' :: Stage -> Maybe Text
$sel:description:Stage' :: Stage -> Maybe Text
$sel:deploymentId:Stage' :: Stage -> Maybe Text
$sel:createdDate:Stage' :: Stage -> Maybe POSIX
$sel:clientCertificateId:Stage' :: Stage -> Maybe Text
$sel:canarySettings:Stage' :: Stage -> Maybe CanarySettings
$sel:cacheClusterStatus:Stage' :: Stage -> Maybe CacheClusterStatus
$sel:cacheClusterSize:Stage' :: Stage -> Maybe CacheClusterSize
$sel:cacheClusterEnabled:Stage' :: Stage -> Maybe Bool
$sel:accessLogSettings:Stage' :: Stage -> Maybe AccessLogSettings
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AccessLogSettings
accessLogSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
cacheClusterEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CacheClusterSize
cacheClusterSize
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CacheClusterStatus
cacheClusterStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CanarySettings
canarySettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientCertificateId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deploymentId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
documentationVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text MethodSetting)
methodSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
stageName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
tracingEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
variables
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
webAclArn