module Stratosphere.Lambda.LayerVersion (
module Exports, LayerVersion(..), mkLayerVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lambda.LayerVersion.ContentProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LayerVersion
=
LayerVersion {LayerVersion -> ()
haddock_workaround_ :: (),
LayerVersion -> Maybe (ValueList Text)
compatibleArchitectures :: (Prelude.Maybe (ValueList Prelude.Text)),
LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: (Prelude.Maybe (ValueList Prelude.Text)),
LayerVersion -> ContentProperty
content :: ContentProperty,
LayerVersion -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
LayerVersion -> Maybe (Value Text)
layerName :: (Prelude.Maybe (Value Prelude.Text)),
LayerVersion -> Maybe (Value Text)
licenseInfo :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (LayerVersion -> LayerVersion -> Bool
(LayerVersion -> LayerVersion -> Bool)
-> (LayerVersion -> LayerVersion -> Bool) -> Eq LayerVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LayerVersion -> LayerVersion -> Bool
== :: LayerVersion -> LayerVersion -> Bool
$c/= :: LayerVersion -> LayerVersion -> Bool
/= :: LayerVersion -> LayerVersion -> Bool
Prelude.Eq, Int -> LayerVersion -> ShowS
[LayerVersion] -> ShowS
LayerVersion -> String
(Int -> LayerVersion -> ShowS)
-> (LayerVersion -> String)
-> ([LayerVersion] -> ShowS)
-> Show LayerVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LayerVersion -> ShowS
showsPrec :: Int -> LayerVersion -> ShowS
$cshow :: LayerVersion -> String
show :: LayerVersion -> String
$cshowList :: [LayerVersion] -> ShowS
showList :: [LayerVersion] -> ShowS
Prelude.Show)
mkLayerVersion :: ContentProperty -> LayerVersion
mkLayerVersion :: ContentProperty -> LayerVersion
mkLayerVersion ContentProperty
content
= LayerVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (), content :: ContentProperty
content = ContentProperty
content,
compatibleArchitectures :: Maybe (ValueList Text)
compatibleArchitectures = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
compatibleRuntimes :: Maybe (ValueList Text)
compatibleRuntimes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, layerName :: Maybe (Value Text)
layerName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
licenseInfo :: Maybe (Value Text)
licenseInfo = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LayerVersion where
toResourceProperties :: LayerVersion -> ResourceProperties
toResourceProperties LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lambda::LayerVersion",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Content" Key -> ContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ContentProperty
content]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompatibleArchitectures"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
compatibleArchitectures,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompatibleRuntimes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
compatibleRuntimes,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LayerName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
layerName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LicenseInfo" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
licenseInfo]))}
instance JSON.ToJSON LayerVersion where
toJSON :: LayerVersion -> Value
toJSON LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Content" Key -> ContentProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ContentProperty
content]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompatibleArchitectures"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
compatibleArchitectures,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CompatibleRuntimes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
compatibleRuntimes,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LayerName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
layerName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LicenseInfo" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
licenseInfo])))
instance Property "CompatibleArchitectures" LayerVersion where
type PropertyType "CompatibleArchitectures" LayerVersion = ValueList Prelude.Text
set :: PropertyType "CompatibleArchitectures" LayerVersion
-> LayerVersion -> LayerVersion
set PropertyType "CompatibleArchitectures" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion
{compatibleArchitectures :: Maybe (ValueList Text)
compatibleArchitectures = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CompatibleArchitectures" LayerVersion
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: ()
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
instance Property "CompatibleRuntimes" LayerVersion where
type PropertyType "CompatibleRuntimes" LayerVersion = ValueList Prelude.Text
set :: PropertyType "CompatibleRuntimes" LayerVersion
-> LayerVersion -> LayerVersion
set PropertyType "CompatibleRuntimes" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion {compatibleRuntimes :: Maybe (ValueList Text)
compatibleRuntimes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CompatibleRuntimes" LayerVersion
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
instance Property "Content" LayerVersion where
type PropertyType "Content" LayerVersion = ContentProperty
set :: PropertyType "Content" LayerVersion -> LayerVersion -> LayerVersion
set PropertyType "Content" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion {content :: ContentProperty
content = PropertyType "Content" LayerVersion
ContentProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
instance Property "Description" LayerVersion where
type PropertyType "Description" LayerVersion = Value Prelude.Text
set :: PropertyType "Description" LayerVersion
-> LayerVersion -> LayerVersion
set PropertyType "Description" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" LayerVersion
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
instance Property "LayerName" LayerVersion where
type PropertyType "LayerName" LayerVersion = Value Prelude.Text
set :: PropertyType "LayerName" LayerVersion
-> LayerVersion -> LayerVersion
set PropertyType "LayerName" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion {layerName :: Maybe (Value Text)
layerName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LayerName" LayerVersion
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
instance Property "LicenseInfo" LayerVersion where
type PropertyType "LicenseInfo" LayerVersion = Value Prelude.Text
set :: PropertyType "LicenseInfo" LayerVersion
-> LayerVersion -> LayerVersion
set PropertyType "LicenseInfo" LayerVersion
newValue LayerVersion {Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: LayerVersion -> ()
compatibleArchitectures :: LayerVersion -> Maybe (ValueList Text)
compatibleRuntimes :: LayerVersion -> Maybe (ValueList Text)
content :: LayerVersion -> ContentProperty
description :: LayerVersion -> Maybe (Value Text)
layerName :: LayerVersion -> Maybe (Value Text)
licenseInfo :: LayerVersion -> Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
licenseInfo :: Maybe (Value Text)
..}
= LayerVersion {licenseInfo :: Maybe (Value Text)
licenseInfo = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LicenseInfo" LayerVersion
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ContentProperty
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
haddock_workaround_ :: ()
compatibleArchitectures :: Maybe (ValueList Text)
compatibleRuntimes :: Maybe (ValueList Text)
content :: ContentProperty
description :: Maybe (Value Text)
layerName :: Maybe (Value Text)
..}