{-# 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.GetLayerVersionResponse
-- 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.GetLayerVersionResponse where

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

-- | /See:/ 'newGetLayerVersionResponse' smart constructor.
data GetLayerVersionResponse = GetLayerVersionResponse'
  { -- | The ARN of the layer version.
    GetLayerVersionResponse -> Maybe Text
layerVersionArn :: Prelude.Maybe Prelude.Text,
    -- | Details about the layer version.
    GetLayerVersionResponse -> Maybe LayerVersionContentOutput
content :: Prelude.Maybe LayerVersionContentOutput,
    -- | The date that the layer version was created, in
    -- <https://www.w3.org/TR/NOTE-datetime ISO-8601 format>
    -- (YYYY-MM-DDThh:mm:ss.sTZD).
    GetLayerVersionResponse -> Maybe Text
createdDate :: Prelude.Maybe Prelude.Text,
    -- | The version number.
    GetLayerVersionResponse -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
    -- | The layer\'s software license.
    GetLayerVersionResponse -> 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>.
    GetLayerVersionResponse -> Maybe [Architecture]
compatibleArchitectures :: Prelude.Maybe [Architecture],
    -- | The ARN of the layer.
    GetLayerVersionResponse -> Maybe Text
layerArn :: Prelude.Maybe Prelude.Text,
    -- | The description of the version.
    GetLayerVersionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The layer\'s compatible runtimes.
    GetLayerVersionResponse -> Maybe [Runtime]
compatibleRuntimes :: Prelude.Maybe [Runtime]
  }
  deriving (GetLayerVersionResponse -> GetLayerVersionResponse -> Bool
(GetLayerVersionResponse -> GetLayerVersionResponse -> Bool)
-> (GetLayerVersionResponse -> GetLayerVersionResponse -> Bool)
-> Eq GetLayerVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLayerVersionResponse -> GetLayerVersionResponse -> Bool
$c/= :: GetLayerVersionResponse -> GetLayerVersionResponse -> Bool
== :: GetLayerVersionResponse -> GetLayerVersionResponse -> Bool
$c== :: GetLayerVersionResponse -> GetLayerVersionResponse -> Bool
Prelude.Eq, ReadPrec [GetLayerVersionResponse]
ReadPrec GetLayerVersionResponse
Int -> ReadS GetLayerVersionResponse
ReadS [GetLayerVersionResponse]
(Int -> ReadS GetLayerVersionResponse)
-> ReadS [GetLayerVersionResponse]
-> ReadPrec GetLayerVersionResponse
-> ReadPrec [GetLayerVersionResponse]
-> Read GetLayerVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLayerVersionResponse]
$creadListPrec :: ReadPrec [GetLayerVersionResponse]
readPrec :: ReadPrec GetLayerVersionResponse
$creadPrec :: ReadPrec GetLayerVersionResponse
readList :: ReadS [GetLayerVersionResponse]
$creadList :: ReadS [GetLayerVersionResponse]
readsPrec :: Int -> ReadS GetLayerVersionResponse
$creadsPrec :: Int -> ReadS GetLayerVersionResponse
Prelude.Read, Int -> GetLayerVersionResponse -> ShowS
[GetLayerVersionResponse] -> ShowS
GetLayerVersionResponse -> String
(Int -> GetLayerVersionResponse -> ShowS)
-> (GetLayerVersionResponse -> String)
-> ([GetLayerVersionResponse] -> ShowS)
-> Show GetLayerVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLayerVersionResponse] -> ShowS
$cshowList :: [GetLayerVersionResponse] -> ShowS
show :: GetLayerVersionResponse -> String
$cshow :: GetLayerVersionResponse -> String
showsPrec :: Int -> GetLayerVersionResponse -> ShowS
$cshowsPrec :: Int -> GetLayerVersionResponse -> ShowS
Prelude.Show, (forall x.
 GetLayerVersionResponse -> Rep GetLayerVersionResponse x)
-> (forall x.
    Rep GetLayerVersionResponse x -> GetLayerVersionResponse)
-> Generic GetLayerVersionResponse
forall x. Rep GetLayerVersionResponse x -> GetLayerVersionResponse
forall x. GetLayerVersionResponse -> Rep GetLayerVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetLayerVersionResponse x -> GetLayerVersionResponse
$cfrom :: forall x. GetLayerVersionResponse -> Rep GetLayerVersionResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetLayerVersionResponse' 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', 'getLayerVersionResponse_layerVersionArn' - The ARN of the layer version.
--
-- 'content', 'getLayerVersionResponse_content' - Details about the layer version.
--
-- 'createdDate', 'getLayerVersionResponse_createdDate' - The date that the layer version was created, in
-- <https://www.w3.org/TR/NOTE-datetime ISO-8601 format>
-- (YYYY-MM-DDThh:mm:ss.sTZD).
--
-- 'version', 'getLayerVersionResponse_version' - The version number.
--
-- 'licenseInfo', 'getLayerVersionResponse_licenseInfo' - The layer\'s software license.
--
-- 'compatibleArchitectures', 'getLayerVersionResponse_compatibleArchitectures' - A list of compatible
-- <https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html instruction set architectures>.
--
-- 'layerArn', 'getLayerVersionResponse_layerArn' - The ARN of the layer.
--
-- 'description', 'getLayerVersionResponse_description' - The description of the version.
--
-- 'compatibleRuntimes', 'getLayerVersionResponse_compatibleRuntimes' - The layer\'s compatible runtimes.
newGetLayerVersionResponse ::
  GetLayerVersionResponse
newGetLayerVersionResponse :: GetLayerVersionResponse
newGetLayerVersionResponse =
  GetLayerVersionResponse' :: Maybe Text
-> Maybe LayerVersionContentOutput
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [Architecture]
-> Maybe Text
-> Maybe Text
-> Maybe [Runtime]
-> GetLayerVersionResponse
GetLayerVersionResponse'
    { $sel:layerVersionArn:GetLayerVersionResponse' :: Maybe Text
layerVersionArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:content:GetLayerVersionResponse' :: Maybe LayerVersionContentOutput
content = Maybe LayerVersionContentOutput
forall a. Maybe a
Prelude.Nothing,
      $sel:createdDate:GetLayerVersionResponse' :: Maybe Text
createdDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:GetLayerVersionResponse' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseInfo:GetLayerVersionResponse' :: Maybe Text
licenseInfo = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:compatibleArchitectures:GetLayerVersionResponse' :: Maybe [Architecture]
compatibleArchitectures = Maybe [Architecture]
forall a. Maybe a
Prelude.Nothing,
      $sel:layerArn:GetLayerVersionResponse' :: Maybe Text
layerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:GetLayerVersionResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:compatibleRuntimes:GetLayerVersionResponse' :: Maybe [Runtime]
compatibleRuntimes = Maybe [Runtime]
forall a. Maybe a
Prelude.Nothing
    }

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

-- | Details about the layer version.
getLayerVersionResponse_content :: Lens.Lens' GetLayerVersionResponse (Prelude.Maybe LayerVersionContentOutput)
getLayerVersionResponse_content :: (Maybe LayerVersionContentOutput
 -> f (Maybe LayerVersionContentOutput))
-> GetLayerVersionResponse -> f GetLayerVersionResponse
getLayerVersionResponse_content = (GetLayerVersionResponse -> Maybe LayerVersionContentOutput)
-> (GetLayerVersionResponse
    -> Maybe LayerVersionContentOutput -> GetLayerVersionResponse)
-> Lens
     GetLayerVersionResponse
     GetLayerVersionResponse
     (Maybe LayerVersionContentOutput)
     (Maybe LayerVersionContentOutput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLayerVersionResponse' {Maybe LayerVersionContentOutput
content :: Maybe LayerVersionContentOutput
$sel:content:GetLayerVersionResponse' :: GetLayerVersionResponse -> Maybe LayerVersionContentOutput
content} -> Maybe LayerVersionContentOutput
content) (\s :: GetLayerVersionResponse
s@GetLayerVersionResponse' {} Maybe LayerVersionContentOutput
a -> GetLayerVersionResponse
s {$sel:content:GetLayerVersionResponse' :: Maybe LayerVersionContentOutput
content = Maybe LayerVersionContentOutput
a} :: GetLayerVersionResponse)

-- | The date that the layer version was created, in
-- <https://www.w3.org/TR/NOTE-datetime ISO-8601 format>
-- (YYYY-MM-DDThh:mm:ss.sTZD).
getLayerVersionResponse_createdDate :: Lens.Lens' GetLayerVersionResponse (Prelude.Maybe Prelude.Text)
getLayerVersionResponse_createdDate :: (Maybe Text -> f (Maybe Text))
-> GetLayerVersionResponse -> f GetLayerVersionResponse
getLayerVersionResponse_createdDate = (GetLayerVersionResponse -> Maybe Text)
-> (GetLayerVersionResponse
    -> Maybe Text -> GetLayerVersionResponse)
-> Lens
     GetLayerVersionResponse
     GetLayerVersionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLayerVersionResponse' {Maybe Text
createdDate :: Maybe Text
$sel:createdDate:GetLayerVersionResponse' :: GetLayerVersionResponse -> Maybe Text
createdDate} -> Maybe Text
createdDate) (\s :: GetLayerVersionResponse
s@GetLayerVersionResponse' {} Maybe Text
a -> GetLayerVersionResponse
s {$sel:createdDate:GetLayerVersionResponse' :: Maybe Text
createdDate = Maybe Text
a} :: GetLayerVersionResponse)

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

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

-- | A list of compatible
-- <https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html instruction set architectures>.
getLayerVersionResponse_compatibleArchitectures :: Lens.Lens' GetLayerVersionResponse (Prelude.Maybe [Architecture])
getLayerVersionResponse_compatibleArchitectures :: (Maybe [Architecture] -> f (Maybe [Architecture]))
-> GetLayerVersionResponse -> f GetLayerVersionResponse
getLayerVersionResponse_compatibleArchitectures = (GetLayerVersionResponse -> Maybe [Architecture])
-> (GetLayerVersionResponse
    -> Maybe [Architecture] -> GetLayerVersionResponse)
-> Lens
     GetLayerVersionResponse
     GetLayerVersionResponse
     (Maybe [Architecture])
     (Maybe [Architecture])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLayerVersionResponse' {Maybe [Architecture]
compatibleArchitectures :: Maybe [Architecture]
$sel:compatibleArchitectures:GetLayerVersionResponse' :: GetLayerVersionResponse -> Maybe [Architecture]
compatibleArchitectures} -> Maybe [Architecture]
compatibleArchitectures) (\s :: GetLayerVersionResponse
s@GetLayerVersionResponse' {} Maybe [Architecture]
a -> GetLayerVersionResponse
s {$sel:compatibleArchitectures:GetLayerVersionResponse' :: Maybe [Architecture]
compatibleArchitectures = Maybe [Architecture]
a} :: GetLayerVersionResponse) ((Maybe [Architecture] -> f (Maybe [Architecture]))
 -> GetLayerVersionResponse -> f GetLayerVersionResponse)
-> ((Maybe [Architecture] -> f (Maybe [Architecture]))
    -> Maybe [Architecture] -> f (Maybe [Architecture]))
-> (Maybe [Architecture] -> f (Maybe [Architecture]))
-> GetLayerVersionResponse
-> f GetLayerVersionResponse
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 ARN of the layer.
getLayerVersionResponse_layerArn :: Lens.Lens' GetLayerVersionResponse (Prelude.Maybe Prelude.Text)
getLayerVersionResponse_layerArn :: (Maybe Text -> f (Maybe Text))
-> GetLayerVersionResponse -> f GetLayerVersionResponse
getLayerVersionResponse_layerArn = (GetLayerVersionResponse -> Maybe Text)
-> (GetLayerVersionResponse
    -> Maybe Text -> GetLayerVersionResponse)
-> Lens
     GetLayerVersionResponse
     GetLayerVersionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLayerVersionResponse' {Maybe Text
layerArn :: Maybe Text
$sel:layerArn:GetLayerVersionResponse' :: GetLayerVersionResponse -> Maybe Text
layerArn} -> Maybe Text
layerArn) (\s :: GetLayerVersionResponse
s@GetLayerVersionResponse' {} Maybe Text
a -> GetLayerVersionResponse
s {$sel:layerArn:GetLayerVersionResponse' :: Maybe Text
layerArn = Maybe Text
a} :: GetLayerVersionResponse)

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

-- | The layer\'s compatible runtimes.
getLayerVersionResponse_compatibleRuntimes :: Lens.Lens' GetLayerVersionResponse (Prelude.Maybe [Runtime])
getLayerVersionResponse_compatibleRuntimes :: (Maybe [Runtime] -> f (Maybe [Runtime]))
-> GetLayerVersionResponse -> f GetLayerVersionResponse
getLayerVersionResponse_compatibleRuntimes = (GetLayerVersionResponse -> Maybe [Runtime])
-> (GetLayerVersionResponse
    -> Maybe [Runtime] -> GetLayerVersionResponse)
-> Lens
     GetLayerVersionResponse
     GetLayerVersionResponse
     (Maybe [Runtime])
     (Maybe [Runtime])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLayerVersionResponse' {Maybe [Runtime]
compatibleRuntimes :: Maybe [Runtime]
$sel:compatibleRuntimes:GetLayerVersionResponse' :: GetLayerVersionResponse -> Maybe [Runtime]
compatibleRuntimes} -> Maybe [Runtime]
compatibleRuntimes) (\s :: GetLayerVersionResponse
s@GetLayerVersionResponse' {} Maybe [Runtime]
a -> GetLayerVersionResponse
s {$sel:compatibleRuntimes:GetLayerVersionResponse' :: Maybe [Runtime]
compatibleRuntimes = Maybe [Runtime]
a} :: GetLayerVersionResponse) ((Maybe [Runtime] -> f (Maybe [Runtime]))
 -> GetLayerVersionResponse -> f GetLayerVersionResponse)
-> ((Maybe [Runtime] -> f (Maybe [Runtime]))
    -> Maybe [Runtime] -> f (Maybe [Runtime]))
-> (Maybe [Runtime] -> f (Maybe [Runtime]))
-> GetLayerVersionResponse
-> f GetLayerVersionResponse
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 GetLayerVersionResponse where
  parseJSON :: Value -> Parser GetLayerVersionResponse
parseJSON =
    String
-> (Object -> Parser GetLayerVersionResponse)
-> Value
-> Parser GetLayerVersionResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"GetLayerVersionResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe LayerVersionContentOutput
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [Architecture]
-> Maybe Text
-> Maybe Text
-> Maybe [Runtime]
-> GetLayerVersionResponse
GetLayerVersionResponse'
            (Maybe Text
 -> Maybe LayerVersionContentOutput
 -> Maybe Text
 -> Maybe Integer
 -> Maybe Text
 -> Maybe [Architecture]
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Runtime]
 -> GetLayerVersionResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe LayerVersionContentOutput
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Runtime]
      -> GetLayerVersionResponse)
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 LayerVersionContentOutput
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Text
   -> Maybe [Architecture]
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Runtime]
   -> GetLayerVersionResponse)
-> Parser (Maybe LayerVersionContentOutput)
-> Parser
     (Maybe Text
      -> Maybe Integer
      -> Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Runtime]
      -> GetLayerVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LayerVersionContentOutput)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Content")
            Parser
  (Maybe Text
   -> Maybe Integer
   -> Maybe Text
   -> Maybe [Architecture]
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Runtime]
   -> GetLayerVersionResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Integer
      -> Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Runtime]
      -> GetLayerVersionResponse)
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 Text
   -> Maybe [Runtime]
   -> GetLayerVersionResponse)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Text
      -> Maybe [Architecture]
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Runtime]
      -> GetLayerVersionResponse)
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 Text
   -> Maybe [Runtime]
   -> GetLayerVersionResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Architecture]
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Runtime]
      -> GetLayerVersionResponse)
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 Text
   -> Maybe [Runtime]
   -> GetLayerVersionResponse)
-> Parser (Maybe [Architecture])
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe [Runtime] -> GetLayerVersionResponse)
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 Text -> Maybe [Runtime] -> GetLayerVersionResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe [Runtime] -> GetLayerVersionResponse)
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
"LayerArn")
            Parser (Maybe Text -> Maybe [Runtime] -> GetLayerVersionResponse)
-> Parser (Maybe Text)
-> Parser (Maybe [Runtime] -> GetLayerVersionResponse)
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] -> GetLayerVersionResponse)
-> Parser (Maybe [Runtime]) -> Parser GetLayerVersionResponse
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 GetLayerVersionResponse

instance Prelude.NFData GetLayerVersionResponse