{-# 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.Lambda.Types.AccountLimit where
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 AccountLimit = AccountLimit'
{
AccountLimit -> Maybe Integer
codeSizeUnzipped :: Prelude.Maybe Prelude.Integer,
AccountLimit -> Maybe Integer
codeSizeZipped :: Prelude.Maybe Prelude.Integer,
AccountLimit -> Maybe Int
concurrentExecutions :: Prelude.Maybe Prelude.Int,
AccountLimit -> Maybe Integer
totalCodeSize :: Prelude.Maybe Prelude.Integer,
AccountLimit -> Maybe Natural
unreservedConcurrentExecutions :: Prelude.Maybe Prelude.Natural
}
deriving (AccountLimit -> AccountLimit -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AccountLimit -> AccountLimit -> Bool
$c/= :: AccountLimit -> AccountLimit -> Bool
== :: AccountLimit -> AccountLimit -> Bool
$c== :: AccountLimit -> AccountLimit -> Bool
Prelude.Eq, ReadPrec [AccountLimit]
ReadPrec AccountLimit
Int -> ReadS AccountLimit
ReadS [AccountLimit]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AccountLimit]
$creadListPrec :: ReadPrec [AccountLimit]
readPrec :: ReadPrec AccountLimit
$creadPrec :: ReadPrec AccountLimit
readList :: ReadS [AccountLimit]
$creadList :: ReadS [AccountLimit]
readsPrec :: Int -> ReadS AccountLimit
$creadsPrec :: Int -> ReadS AccountLimit
Prelude.Read, Int -> AccountLimit -> ShowS
[AccountLimit] -> ShowS
AccountLimit -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AccountLimit] -> ShowS
$cshowList :: [AccountLimit] -> ShowS
show :: AccountLimit -> String
$cshow :: AccountLimit -> String
showsPrec :: Int -> AccountLimit -> ShowS
$cshowsPrec :: Int -> AccountLimit -> ShowS
Prelude.Show, forall x. Rep AccountLimit x -> AccountLimit
forall x. AccountLimit -> Rep AccountLimit x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AccountLimit x -> AccountLimit
$cfrom :: forall x. AccountLimit -> Rep AccountLimit x
Prelude.Generic)
newAccountLimit ::
AccountLimit
newAccountLimit :: AccountLimit
newAccountLimit =
AccountLimit'
{ $sel:codeSizeUnzipped:AccountLimit' :: Maybe Integer
codeSizeUnzipped = forall a. Maybe a
Prelude.Nothing,
$sel:codeSizeZipped:AccountLimit' :: Maybe Integer
codeSizeZipped = forall a. Maybe a
Prelude.Nothing,
$sel:concurrentExecutions:AccountLimit' :: Maybe Int
concurrentExecutions = forall a. Maybe a
Prelude.Nothing,
$sel:totalCodeSize:AccountLimit' :: Maybe Integer
totalCodeSize = forall a. Maybe a
Prelude.Nothing,
$sel:unreservedConcurrentExecutions:AccountLimit' :: Maybe Natural
unreservedConcurrentExecutions = forall a. Maybe a
Prelude.Nothing
}
accountLimit_codeSizeUnzipped :: Lens.Lens' AccountLimit (Prelude.Maybe Prelude.Integer)
accountLimit_codeSizeUnzipped :: Lens' AccountLimit (Maybe Integer)
accountLimit_codeSizeUnzipped = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccountLimit' {Maybe Integer
codeSizeUnzipped :: Maybe Integer
$sel:codeSizeUnzipped:AccountLimit' :: AccountLimit -> Maybe Integer
codeSizeUnzipped} -> Maybe Integer
codeSizeUnzipped) (\s :: AccountLimit
s@AccountLimit' {} Maybe Integer
a -> AccountLimit
s {$sel:codeSizeUnzipped:AccountLimit' :: Maybe Integer
codeSizeUnzipped = Maybe Integer
a} :: AccountLimit)
accountLimit_codeSizeZipped :: Lens.Lens' AccountLimit (Prelude.Maybe Prelude.Integer)
accountLimit_codeSizeZipped :: Lens' AccountLimit (Maybe Integer)
accountLimit_codeSizeZipped = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccountLimit' {Maybe Integer
codeSizeZipped :: Maybe Integer
$sel:codeSizeZipped:AccountLimit' :: AccountLimit -> Maybe Integer
codeSizeZipped} -> Maybe Integer
codeSizeZipped) (\s :: AccountLimit
s@AccountLimit' {} Maybe Integer
a -> AccountLimit
s {$sel:codeSizeZipped:AccountLimit' :: Maybe Integer
codeSizeZipped = Maybe Integer
a} :: AccountLimit)
accountLimit_concurrentExecutions :: Lens.Lens' AccountLimit (Prelude.Maybe Prelude.Int)
accountLimit_concurrentExecutions :: Lens' AccountLimit (Maybe Int)
accountLimit_concurrentExecutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccountLimit' {Maybe Int
concurrentExecutions :: Maybe Int
$sel:concurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Int
concurrentExecutions} -> Maybe Int
concurrentExecutions) (\s :: AccountLimit
s@AccountLimit' {} Maybe Int
a -> AccountLimit
s {$sel:concurrentExecutions:AccountLimit' :: Maybe Int
concurrentExecutions = Maybe Int
a} :: AccountLimit)
accountLimit_totalCodeSize :: Lens.Lens' AccountLimit (Prelude.Maybe Prelude.Integer)
accountLimit_totalCodeSize :: Lens' AccountLimit (Maybe Integer)
accountLimit_totalCodeSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccountLimit' {Maybe Integer
totalCodeSize :: Maybe Integer
$sel:totalCodeSize:AccountLimit' :: AccountLimit -> Maybe Integer
totalCodeSize} -> Maybe Integer
totalCodeSize) (\s :: AccountLimit
s@AccountLimit' {} Maybe Integer
a -> AccountLimit
s {$sel:totalCodeSize:AccountLimit' :: Maybe Integer
totalCodeSize = Maybe Integer
a} :: AccountLimit)
accountLimit_unreservedConcurrentExecutions :: Lens.Lens' AccountLimit (Prelude.Maybe Prelude.Natural)
accountLimit_unreservedConcurrentExecutions :: Lens' AccountLimit (Maybe Natural)
accountLimit_unreservedConcurrentExecutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AccountLimit' {Maybe Natural
unreservedConcurrentExecutions :: Maybe Natural
$sel:unreservedConcurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Natural
unreservedConcurrentExecutions} -> Maybe Natural
unreservedConcurrentExecutions) (\s :: AccountLimit
s@AccountLimit' {} Maybe Natural
a -> AccountLimit
s {$sel:unreservedConcurrentExecutions:AccountLimit' :: Maybe Natural
unreservedConcurrentExecutions = Maybe Natural
a} :: AccountLimit)
instance Data.FromJSON AccountLimit where
parseJSON :: Value -> Parser AccountLimit
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AccountLimit"
( \Object
x ->
Maybe Integer
-> Maybe Integer
-> Maybe Int
-> Maybe Integer
-> Maybe Natural
-> AccountLimit
AccountLimit'
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
"CodeSizeUnzipped")
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
"CodeSizeZipped")
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
"ConcurrentExecutions")
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
"TotalCodeSize")
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
"UnreservedConcurrentExecutions")
)
instance Prelude.Hashable AccountLimit where
hashWithSalt :: Int -> AccountLimit -> Int
hashWithSalt Int
_salt AccountLimit' {Maybe Int
Maybe Integer
Maybe Natural
unreservedConcurrentExecutions :: Maybe Natural
totalCodeSize :: Maybe Integer
concurrentExecutions :: Maybe Int
codeSizeZipped :: Maybe Integer
codeSizeUnzipped :: Maybe Integer
$sel:unreservedConcurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Natural
$sel:totalCodeSize:AccountLimit' :: AccountLimit -> Maybe Integer
$sel:concurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Int
$sel:codeSizeZipped:AccountLimit' :: AccountLimit -> Maybe Integer
$sel:codeSizeUnzipped:AccountLimit' :: AccountLimit -> Maybe Integer
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
codeSizeUnzipped
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
codeSizeZipped
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
concurrentExecutions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
totalCodeSize
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
unreservedConcurrentExecutions
instance Prelude.NFData AccountLimit where
rnf :: AccountLimit -> ()
rnf AccountLimit' {Maybe Int
Maybe Integer
Maybe Natural
unreservedConcurrentExecutions :: Maybe Natural
totalCodeSize :: Maybe Integer
concurrentExecutions :: Maybe Int
codeSizeZipped :: Maybe Integer
codeSizeUnzipped :: Maybe Integer
$sel:unreservedConcurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Natural
$sel:totalCodeSize:AccountLimit' :: AccountLimit -> Maybe Integer
$sel:concurrentExecutions:AccountLimit' :: AccountLimit -> Maybe Int
$sel:codeSizeZipped:AccountLimit' :: AccountLimit -> Maybe Integer
$sel:codeSizeUnzipped:AccountLimit' :: AccountLimit -> Maybe Integer
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
codeSizeUnzipped
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
codeSizeZipped
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
concurrentExecutions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
totalCodeSize
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
unreservedConcurrentExecutions