{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lambda.Types.LayerVersionsListItem
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lambda.Types.LayerVersionsListItem where

import qualified Amazonka.Core as Core
import Amazonka.Lambda.Types.Architecture
import Amazonka.Lambda.Types.Runtime
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Details about a version of an
-- <https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html Lambda layer>.
--
-- /See:/ 'newLayerVersionsListItem' smart constructor.
data LayerVersionsListItem = LayerVersionsListItem'
  { -- | The ARN of the layer version.
    LayerVersionsListItem -> Maybe Text
layerVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The date that the version was created, in ISO 8601 format. For example,
    -- @2018-11-27T15:10:45.123+0000@.
    LayerVersionsListItem -> Maybe Text
createdDate :: Prelude.Maybe Prelude.Text,
    -- | The version number.
    LayerVersionsListItem -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
    -- | The layer\'s open-source license.
    LayerVersionsListItem -> Maybe Text
licenseInfo :: Prelude.Maybe Prelude.Text,
    -- | A list of compatible
    -- <https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html instruction set architectures>.
    LayerVersionsListItem -> Maybe [Architecture]
compatibleArchitectures :: Prelude.Maybe [Architecture],
    -- | The description of the version.
    LayerVersionsListItem -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The layer\'s compatible runtimes.
    LayerVersionsListItem -> Maybe [Runtime]
compatibleRuntimes :: Prelude.Maybe [Runtime]
  }
  deriving (LayerVersionsListItem -> LayerVersionsListItem -> Bool
(LayerVersionsListItem -> LayerVersionsListItem -> Bool)
-> (LayerVersionsListItem -> LayerVersionsListItem -> Bool)
-> Eq LayerVersionsListItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LayerVersionsListItem -> LayerVersionsListItem -> Bool
$c/= :: LayerVersionsListItem -> LayerVersionsListItem -> Bool
== :: LayerVersionsListItem -> LayerVersionsListItem -> Bool
$c== :: LayerVersionsListItem -> LayerVersionsListItem -> Bool
Prelude.Eq, ReadPrec [LayerVersionsListItem]
ReadPrec LayerVersionsListItem
Int -> ReadS LayerVersionsListItem
ReadS [LayerVersionsListItem]
(Int -> ReadS LayerVersionsListItem)
-> ReadS [LayerVersionsListItem]
-> ReadPrec LayerVersionsListItem
-> ReadPrec [LayerVersionsListItem]
-> Read LayerVersionsListItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LayerVersionsListItem]
$creadListPrec :: ReadPrec [LayerVersionsListItem]
readPrec :: ReadPrec LayerVersionsListItem
$creadPrec :: ReadPrec LayerVersionsListItem
readList :: ReadS [LayerVersionsListItem]
$creadList :: ReadS [LayerVersionsListItem]
readsPrec :: Int -> ReadS LayerVersionsListItem
$creadsPrec :: Int -> ReadS LayerVersionsListItem
Prelude.Read, Int -> LayerVersionsListItem -> ShowS
[LayerVersionsListItem] -> ShowS
LayerVersionsListItem -> String
(Int -> LayerVersionsListItem -> ShowS)
-> (LayerVersionsListItem -> String)
-> ([LayerVersionsListItem] -> ShowS)
-> Show LayerVersionsListItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LayerVersionsListItem] -> ShowS
$cshowList :: [LayerVersionsListItem] -> ShowS
show :: LayerVersionsListItem -> String
$cshow :: LayerVersionsListItem -> String
showsPrec :: Int -> LayerVersionsListItem -> ShowS
$cshowsPrec :: Int -> LayerVersionsListItem -> ShowS
Prelude.Show, (forall x. LayerVersionsListItem -> Rep LayerVersionsListItem x)
-> (forall x. Rep LayerVersionsListItem x -> LayerVersionsListItem)
-> Generic LayerVersionsListItem
forall x. Rep LayerVersionsListItem x -> LayerVersionsListItem
forall x. LayerVersionsListItem -> Rep LayerVersionsListItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LayerVersionsListItem x -> LayerVersionsListItem
$cfrom :: forall x. LayerVersionsListItem -> Rep LayerVersionsListItem x
Prelude.Generic)

-- |
-- Create a value of 'LayerVersionsListItem' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'layerVersionArn', 'layerVersionsListItem_layerVersionArn' - The ARN of the layer version.
--
-- 'createdDate', 'layerVersionsListItem_createdDate' - The date that the version was created, in ISO 8601 format. For example,
-- @2018-11-27T15:10:45.123+0000@.
--
-- 'version', 'layerVersionsListItem_version' - The version number.
--
-- 'licenseInfo', 'layerVersionsListItem_licenseInfo' - The layer\'s open-source license.
--
-- 'compatibleArchitectures', 'layerVersionsListItem_compatibleArchitectures' - A list of compatible
-- <https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html instruction set architectures>.
--
-- 'description', 'layerVersionsListItem_description' - The description of the version.
--
-- 'compatibleRuntimes', 'layerVersionsListItem_compatibleRuntimes' - The layer\'s compatible runtimes.
newLayerVersionsListItem ::
  LayerVersionsListItem
newLayerVersionsListItem :: LayerVersionsListItem
newLayerVersionsListItem =
  LayerVersionsListItem' :: Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [Architecture]
-> Maybe Text
-> Maybe [Runtime]
-> LayerVersionsListItem
LayerVersionsListItem'
    { $sel:layerVersionArn:LayerVersionsListItem' :: Maybe Text
layerVersionArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdDate:LayerVersionsListItem' :: Maybe Text
createdDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:LayerVersionsListItem' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseInfo:LayerVersionsListItem' :: Maybe Text
licenseInfo = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:compatibleArchitectures:LayerVersionsListItem' :: Maybe [Architecture]
compatibleArchitectures = Maybe [Architecture]
forall a. Maybe a
Prelude.Nothing,
      $sel:description:LayerVersionsListItem' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:compatibleRuntimes:LayerVersionsListItem' :: Maybe [Runtime]
compatibleRuntimes = Maybe [Runtime]
forall a. Maybe a
Prelude.Nothing
    }

-- | The ARN of the layer version.
layerVersionsListItem_layerVersionArn :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe Prelude.Text)
layerVersionsListItem_layerVersionArn :: (Maybe Text -> f (Maybe Text))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_layerVersionArn = (LayerVersionsListItem -> Maybe Text)
-> (LayerVersionsListItem -> Maybe Text -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe Text
layerVersionArn :: Maybe Text
$sel:layerVersionArn:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe Text
layerVersionArn} -> Maybe Text
layerVersionArn) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe Text
a -> LayerVersionsListItem
s {$sel:layerVersionArn:LayerVersionsListItem' :: Maybe Text
layerVersionArn = Maybe Text
a} :: LayerVersionsListItem)

-- | The date that the version was created, in ISO 8601 format. For example,
-- @2018-11-27T15:10:45.123+0000@.
layerVersionsListItem_createdDate :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe Prelude.Text)
layerVersionsListItem_createdDate :: (Maybe Text -> f (Maybe Text))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_createdDate = (LayerVersionsListItem -> Maybe Text)
-> (LayerVersionsListItem -> Maybe Text -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe Text
createdDate :: Maybe Text
$sel:createdDate:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe Text
createdDate} -> Maybe Text
createdDate) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe Text
a -> LayerVersionsListItem
s {$sel:createdDate:LayerVersionsListItem' :: Maybe Text
createdDate = Maybe Text
a} :: LayerVersionsListItem)

-- | The version number.
layerVersionsListItem_version :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe Prelude.Integer)
layerVersionsListItem_version :: (Maybe Integer -> f (Maybe Integer))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_version = (LayerVersionsListItem -> Maybe Integer)
-> (LayerVersionsListItem
    -> Maybe Integer -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe Integer
version :: Maybe Integer
$sel:version:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe Integer
version} -> Maybe Integer
version) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe Integer
a -> LayerVersionsListItem
s {$sel:version:LayerVersionsListItem' :: Maybe Integer
version = Maybe Integer
a} :: LayerVersionsListItem)

-- | The layer\'s open-source license.
layerVersionsListItem_licenseInfo :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe Prelude.Text)
layerVersionsListItem_licenseInfo :: (Maybe Text -> f (Maybe Text))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_licenseInfo = (LayerVersionsListItem -> Maybe Text)
-> (LayerVersionsListItem -> Maybe Text -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe Text
licenseInfo :: Maybe Text
$sel:licenseInfo:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe Text
licenseInfo} -> Maybe Text
licenseInfo) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe Text
a -> LayerVersionsListItem
s {$sel:licenseInfo:LayerVersionsListItem' :: Maybe Text
licenseInfo = Maybe Text
a} :: LayerVersionsListItem)

-- | A list of compatible
-- <https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html instruction set architectures>.
layerVersionsListItem_compatibleArchitectures :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe [Architecture])
layerVersionsListItem_compatibleArchitectures :: (Maybe [Architecture] -> f (Maybe [Architecture]))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_compatibleArchitectures = (LayerVersionsListItem -> Maybe [Architecture])
-> (LayerVersionsListItem
    -> Maybe [Architecture] -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe [Architecture])
     (Maybe [Architecture])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe [Architecture]
compatibleArchitectures :: Maybe [Architecture]
$sel:compatibleArchitectures:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe [Architecture]
compatibleArchitectures} -> Maybe [Architecture]
compatibleArchitectures) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe [Architecture]
a -> LayerVersionsListItem
s {$sel:compatibleArchitectures:LayerVersionsListItem' :: Maybe [Architecture]
compatibleArchitectures = Maybe [Architecture]
a} :: LayerVersionsListItem) ((Maybe [Architecture] -> f (Maybe [Architecture]))
 -> LayerVersionsListItem -> f LayerVersionsListItem)
-> ((Maybe [Architecture] -> f (Maybe [Architecture]))
    -> Maybe [Architecture] -> f (Maybe [Architecture]))
-> (Maybe [Architecture] -> f (Maybe [Architecture]))
-> LayerVersionsListItem
-> f LayerVersionsListItem
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Architecture] [Architecture] [Architecture] [Architecture]
-> Iso
     (Maybe [Architecture])
     (Maybe [Architecture])
     (Maybe [Architecture])
     (Maybe [Architecture])
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 [Architecture] [Architecture] [Architecture] [Architecture]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The description of the version.
layerVersionsListItem_description :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe Prelude.Text)
layerVersionsListItem_description :: (Maybe Text -> f (Maybe Text))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_description = (LayerVersionsListItem -> Maybe Text)
-> (LayerVersionsListItem -> Maybe Text -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe Text
description :: Maybe Text
$sel:description:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe Text
description} -> Maybe Text
description) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe Text
a -> LayerVersionsListItem
s {$sel:description:LayerVersionsListItem' :: Maybe Text
description = Maybe Text
a} :: LayerVersionsListItem)

-- | The layer\'s compatible runtimes.
layerVersionsListItem_compatibleRuntimes :: Lens.Lens' LayerVersionsListItem (Prelude.Maybe [Runtime])
layerVersionsListItem_compatibleRuntimes :: (Maybe [Runtime] -> f (Maybe [Runtime]))
-> LayerVersionsListItem -> f LayerVersionsListItem
layerVersionsListItem_compatibleRuntimes = (LayerVersionsListItem -> Maybe [Runtime])
-> (LayerVersionsListItem
    -> Maybe [Runtime] -> LayerVersionsListItem)
-> Lens
     LayerVersionsListItem
     LayerVersionsListItem
     (Maybe [Runtime])
     (Maybe [Runtime])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LayerVersionsListItem' {Maybe [Runtime]
compatibleRuntimes :: Maybe [Runtime]
$sel:compatibleRuntimes:LayerVersionsListItem' :: LayerVersionsListItem -> Maybe [Runtime]
compatibleRuntimes} -> Maybe [Runtime]
compatibleRuntimes) (\s :: LayerVersionsListItem
s@LayerVersionsListItem' {} Maybe [Runtime]
a -> LayerVersionsListItem
s {$sel:compatibleRuntimes:LayerVersionsListItem' :: Maybe [Runtime]
compatibleRuntimes = Maybe [Runtime]
a} :: LayerVersionsListItem) ((Maybe [Runtime] -> f (Maybe [Runtime]))
 -> LayerVersionsListItem -> f LayerVersionsListItem)
-> ((Maybe [Runtime] -> f (Maybe [Runtime]))
    -> Maybe [Runtime] -> f (Maybe [Runtime]))
-> (Maybe [Runtime] -> f (Maybe [Runtime]))
-> LayerVersionsListItem
-> f LayerVersionsListItem
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Runtime] [Runtime] [Runtime] [Runtime]
-> Iso
     (Maybe [Runtime])
     (Maybe [Runtime])
     (Maybe [Runtime])
     (Maybe [Runtime])
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 [Runtime] [Runtime] [Runtime] [Runtime]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON LayerVersionsListItem where
  parseJSON :: Value -> Parser LayerVersionsListItem
parseJSON =
    String
-> (Object -> Parser LayerVersionsListItem)
-> Value
-> Parser LayerVersionsListItem
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"LayerVersionsListItem"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [Architecture]
-> Maybe Text
-> Maybe [Runtime]
-> LayerVersionsListItem
LayerVersionsListItem'
            (Maybe Text
 -> Maybe Text
 -> Maybe Integer
 -> Maybe Text
 -> Maybe [Architecture]
 -> Maybe Text
 -> Maybe [Runtime]
 -> LayerVersionsListItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Integer
      -> Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe [Runtime]
      -> LayerVersionsListItem)
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
"LayerVersionArn")
            Parser
  (Maybe Text
   -> Maybe Integer
   -> Maybe Text
   -> Maybe [Architecture]
   -> Maybe Text
   -> Maybe [Runtime]
   -> LayerVersionsListItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe Integer
      -> Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe [Runtime]
      -> LayerVersionsListItem)
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
"CreatedDate")
            Parser
  (Maybe Integer
   -> Maybe Text
   -> Maybe [Architecture]
   -> Maybe Text
   -> Maybe [Runtime]
   -> LayerVersionsListItem)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe [Runtime]
      -> LayerVersionsListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Version")
            Parser
  (Maybe Text
   -> Maybe [Architecture]
   -> Maybe Text
   -> Maybe [Runtime]
   -> LayerVersionsListItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Architecture]
      -> Maybe Text -> Maybe [Runtime] -> LayerVersionsListItem)
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
"LicenseInfo")
            Parser
  (Maybe [Architecture]
   -> Maybe Text -> Maybe [Runtime] -> LayerVersionsListItem)
-> Parser (Maybe [Architecture])
-> Parser (Maybe Text -> Maybe [Runtime] -> LayerVersionsListItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Architecture]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CompatibleArchitectures"
                            Parser (Maybe (Maybe [Architecture]))
-> Maybe [Architecture] -> Parser (Maybe [Architecture])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Architecture]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser (Maybe Text -> Maybe [Runtime] -> LayerVersionsListItem)
-> Parser (Maybe Text)
-> Parser (Maybe [Runtime] -> LayerVersionsListItem)
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 [Runtime] -> LayerVersionsListItem)
-> Parser (Maybe [Runtime]) -> Parser LayerVersionsListItem
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Runtime]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CompatibleRuntimes"
                            Parser (Maybe (Maybe [Runtime]))
-> Maybe [Runtime] -> Parser (Maybe [Runtime])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Runtime]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable LayerVersionsListItem

instance Prelude.NFData LayerVersionsListItem