{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.DataBrew.DescribeRecipe
-- 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)
--
-- Returns the definition of a specific DataBrew recipe corresponding to a
-- particular version.
module Amazonka.DataBrew.DescribeRecipe
  ( -- * Creating a Request
    DescribeRecipe (..),
    newDescribeRecipe,

    -- * Request Lenses
    describeRecipe_recipeVersion,
    describeRecipe_name,

    -- * Destructuring the Response
    DescribeRecipeResponse (..),
    newDescribeRecipeResponse,

    -- * Response Lenses
    describeRecipeResponse_lastModifiedDate,
    describeRecipeResponse_createDate,
    describeRecipeResponse_publishedBy,
    describeRecipeResponse_createdBy,
    describeRecipeResponse_steps,
    describeRecipeResponse_publishedDate,
    describeRecipeResponse_resourceArn,
    describeRecipeResponse_recipeVersion,
    describeRecipeResponse_projectName,
    describeRecipeResponse_lastModifiedBy,
    describeRecipeResponse_description,
    describeRecipeResponse_tags,
    describeRecipeResponse_httpStatus,
    describeRecipeResponse_name,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DataBrew.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeRecipe' smart constructor.
data DescribeRecipe = DescribeRecipe'
  { -- | The recipe version identifier. If this parameter isn\'t specified, then
    -- the latest published version is returned.
    DescribeRecipe -> Maybe Text
recipeVersion :: Prelude.Maybe Prelude.Text,
    -- | The name of the recipe to be described.
    DescribeRecipe -> Text
name :: Prelude.Text
  }
  deriving (DescribeRecipe -> DescribeRecipe -> Bool
(DescribeRecipe -> DescribeRecipe -> Bool)
-> (DescribeRecipe -> DescribeRecipe -> Bool) -> Eq DescribeRecipe
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecipe -> DescribeRecipe -> Bool
$c/= :: DescribeRecipe -> DescribeRecipe -> Bool
== :: DescribeRecipe -> DescribeRecipe -> Bool
$c== :: DescribeRecipe -> DescribeRecipe -> Bool
Prelude.Eq, ReadPrec [DescribeRecipe]
ReadPrec DescribeRecipe
Int -> ReadS DescribeRecipe
ReadS [DescribeRecipe]
(Int -> ReadS DescribeRecipe)
-> ReadS [DescribeRecipe]
-> ReadPrec DescribeRecipe
-> ReadPrec [DescribeRecipe]
-> Read DescribeRecipe
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecipe]
$creadListPrec :: ReadPrec [DescribeRecipe]
readPrec :: ReadPrec DescribeRecipe
$creadPrec :: ReadPrec DescribeRecipe
readList :: ReadS [DescribeRecipe]
$creadList :: ReadS [DescribeRecipe]
readsPrec :: Int -> ReadS DescribeRecipe
$creadsPrec :: Int -> ReadS DescribeRecipe
Prelude.Read, Int -> DescribeRecipe -> ShowS
[DescribeRecipe] -> ShowS
DescribeRecipe -> String
(Int -> DescribeRecipe -> ShowS)
-> (DescribeRecipe -> String)
-> ([DescribeRecipe] -> ShowS)
-> Show DescribeRecipe
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecipe] -> ShowS
$cshowList :: [DescribeRecipe] -> ShowS
show :: DescribeRecipe -> String
$cshow :: DescribeRecipe -> String
showsPrec :: Int -> DescribeRecipe -> ShowS
$cshowsPrec :: Int -> DescribeRecipe -> ShowS
Prelude.Show, (forall x. DescribeRecipe -> Rep DescribeRecipe x)
-> (forall x. Rep DescribeRecipe x -> DescribeRecipe)
-> Generic DescribeRecipe
forall x. Rep DescribeRecipe x -> DescribeRecipe
forall x. DescribeRecipe -> Rep DescribeRecipe x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRecipe x -> DescribeRecipe
$cfrom :: forall x. DescribeRecipe -> Rep DescribeRecipe x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRecipe' 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:
--
-- 'recipeVersion', 'describeRecipe_recipeVersion' - The recipe version identifier. If this parameter isn\'t specified, then
-- the latest published version is returned.
--
-- 'name', 'describeRecipe_name' - The name of the recipe to be described.
newDescribeRecipe ::
  -- | 'name'
  Prelude.Text ->
  DescribeRecipe
newDescribeRecipe :: Text -> DescribeRecipe
newDescribeRecipe Text
pName_ =
  DescribeRecipe' :: Maybe Text -> Text -> DescribeRecipe
DescribeRecipe'
    { $sel:recipeVersion:DescribeRecipe' :: Maybe Text
recipeVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeRecipe' :: Text
name = Text
pName_
    }

-- | The recipe version identifier. If this parameter isn\'t specified, then
-- the latest published version is returned.
describeRecipe_recipeVersion :: Lens.Lens' DescribeRecipe (Prelude.Maybe Prelude.Text)
describeRecipe_recipeVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipe -> f DescribeRecipe
describeRecipe_recipeVersion = (DescribeRecipe -> Maybe Text)
-> (DescribeRecipe -> Maybe Text -> DescribeRecipe)
-> Lens DescribeRecipe DescribeRecipe (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipe' {Maybe Text
recipeVersion :: Maybe Text
$sel:recipeVersion:DescribeRecipe' :: DescribeRecipe -> Maybe Text
recipeVersion} -> Maybe Text
recipeVersion) (\s :: DescribeRecipe
s@DescribeRecipe' {} Maybe Text
a -> DescribeRecipe
s {$sel:recipeVersion:DescribeRecipe' :: Maybe Text
recipeVersion = Maybe Text
a} :: DescribeRecipe)

-- | The name of the recipe to be described.
describeRecipe_name :: Lens.Lens' DescribeRecipe Prelude.Text
describeRecipe_name :: (Text -> f Text) -> DescribeRecipe -> f DescribeRecipe
describeRecipe_name = (DescribeRecipe -> Text)
-> (DescribeRecipe -> Text -> DescribeRecipe)
-> Lens DescribeRecipe DescribeRecipe Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipe' {Text
name :: Text
$sel:name:DescribeRecipe' :: DescribeRecipe -> Text
name} -> Text
name) (\s :: DescribeRecipe
s@DescribeRecipe' {} Text
a -> DescribeRecipe
s {$sel:name:DescribeRecipe' :: Text
name = Text
a} :: DescribeRecipe)

instance Core.AWSRequest DescribeRecipe where
  type
    AWSResponse DescribeRecipe =
      DescribeRecipeResponse
  request :: DescribeRecipe -> Request DescribeRecipe
request = Service -> DescribeRecipe -> Request DescribeRecipe
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeRecipe
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeRecipe)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeRecipe))
-> Logger
-> Service
-> Proxy DescribeRecipe
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeRecipe)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [RecipeStep]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> DescribeRecipeResponse
DescribeRecipeResponse'
            (Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe [RecipeStep]
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> Text
 -> DescribeRecipeResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [RecipeStep]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedDate")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [RecipeStep]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [RecipeStep]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreateDate")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [RecipeStep]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [RecipeStep]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PublishedBy")
            Either
  String
  (Maybe Text
   -> Maybe [RecipeStep]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [RecipeStep]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedBy")
            Either
  String
  (Maybe [RecipeStep]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe [RecipeStep])
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [RecipeStep]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Steps" Either String (Maybe (Maybe [RecipeStep]))
-> Maybe [RecipeStep] -> Either String (Maybe [RecipeStep])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RecipeStep]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PublishedDate")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ResourceArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RecipeVersion")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProjectName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> Text
      -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedBy")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> Text
   -> DescribeRecipeResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> Text -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Description")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> Text -> DescribeRecipeResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> Text -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> Text -> DescribeRecipeResponse)
-> Either String Int
-> Either String (Text -> DescribeRecipeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either String (Text -> DescribeRecipeResponse)
-> Either String Text -> Either String DescribeRecipeResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Name")
      )

instance Prelude.Hashable DescribeRecipe

instance Prelude.NFData DescribeRecipe

instance Core.ToHeaders DescribeRecipe where
  toHeaders :: DescribeRecipe -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeRecipe -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeRecipe where
  toPath :: DescribeRecipe -> ByteString
toPath DescribeRecipe' {Maybe Text
Text
name :: Text
recipeVersion :: Maybe Text
$sel:name:DescribeRecipe' :: DescribeRecipe -> Text
$sel:recipeVersion:DescribeRecipe' :: DescribeRecipe -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/recipes/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]

instance Core.ToQuery DescribeRecipe where
  toQuery :: DescribeRecipe -> QueryString
toQuery DescribeRecipe' {Maybe Text
Text
name :: Text
recipeVersion :: Maybe Text
$sel:name:DescribeRecipe' :: DescribeRecipe -> Text
$sel:recipeVersion:DescribeRecipe' :: DescribeRecipe -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"recipeVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
recipeVersion]

-- | /See:/ 'newDescribeRecipeResponse' smart constructor.
data DescribeRecipeResponse = DescribeRecipeResponse'
  { -- | The date and time that the recipe was last modified.
    DescribeRecipeResponse -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Core.POSIX,
    -- | The date and time that the recipe was created.
    DescribeRecipeResponse -> Maybe POSIX
createDate :: Prelude.Maybe Core.POSIX,
    -- | The identifier (user name) of the user who last published the recipe.
    DescribeRecipeResponse -> Maybe Text
publishedBy :: Prelude.Maybe Prelude.Text,
    -- | The identifier (user name) of the user who created the recipe.
    DescribeRecipeResponse -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | One or more steps to be performed by the recipe. Each step consists of
    -- an action, and the conditions under which the action should succeed.
    DescribeRecipeResponse -> Maybe [RecipeStep]
steps :: Prelude.Maybe [RecipeStep],
    -- | The date and time when the recipe was last published.
    DescribeRecipeResponse -> Maybe POSIX
publishedDate :: Prelude.Maybe Core.POSIX,
    -- | The ARN of the recipe.
    DescribeRecipeResponse -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text,
    -- | The recipe version identifier.
    DescribeRecipeResponse -> Maybe Text
recipeVersion :: Prelude.Maybe Prelude.Text,
    -- | The name of the project associated with this recipe.
    DescribeRecipeResponse -> Maybe Text
projectName :: Prelude.Maybe Prelude.Text,
    -- | The identifier (user name) of the user who last modified the recipe.
    DescribeRecipeResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    -- | The description of the recipe.
    DescribeRecipeResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | Metadata tags associated with this project.
    DescribeRecipeResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeRecipeResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the recipe.
    DescribeRecipeResponse -> Text
name :: Prelude.Text
  }
  deriving (DescribeRecipeResponse -> DescribeRecipeResponse -> Bool
(DescribeRecipeResponse -> DescribeRecipeResponse -> Bool)
-> (DescribeRecipeResponse -> DescribeRecipeResponse -> Bool)
-> Eq DescribeRecipeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRecipeResponse -> DescribeRecipeResponse -> Bool
$c/= :: DescribeRecipeResponse -> DescribeRecipeResponse -> Bool
== :: DescribeRecipeResponse -> DescribeRecipeResponse -> Bool
$c== :: DescribeRecipeResponse -> DescribeRecipeResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRecipeResponse]
ReadPrec DescribeRecipeResponse
Int -> ReadS DescribeRecipeResponse
ReadS [DescribeRecipeResponse]
(Int -> ReadS DescribeRecipeResponse)
-> ReadS [DescribeRecipeResponse]
-> ReadPrec DescribeRecipeResponse
-> ReadPrec [DescribeRecipeResponse]
-> Read DescribeRecipeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRecipeResponse]
$creadListPrec :: ReadPrec [DescribeRecipeResponse]
readPrec :: ReadPrec DescribeRecipeResponse
$creadPrec :: ReadPrec DescribeRecipeResponse
readList :: ReadS [DescribeRecipeResponse]
$creadList :: ReadS [DescribeRecipeResponse]
readsPrec :: Int -> ReadS DescribeRecipeResponse
$creadsPrec :: Int -> ReadS DescribeRecipeResponse
Prelude.Read, Int -> DescribeRecipeResponse -> ShowS
[DescribeRecipeResponse] -> ShowS
DescribeRecipeResponse -> String
(Int -> DescribeRecipeResponse -> ShowS)
-> (DescribeRecipeResponse -> String)
-> ([DescribeRecipeResponse] -> ShowS)
-> Show DescribeRecipeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRecipeResponse] -> ShowS
$cshowList :: [DescribeRecipeResponse] -> ShowS
show :: DescribeRecipeResponse -> String
$cshow :: DescribeRecipeResponse -> String
showsPrec :: Int -> DescribeRecipeResponse -> ShowS
$cshowsPrec :: Int -> DescribeRecipeResponse -> ShowS
Prelude.Show, (forall x. DescribeRecipeResponse -> Rep DescribeRecipeResponse x)
-> (forall x.
    Rep DescribeRecipeResponse x -> DescribeRecipeResponse)
-> Generic DescribeRecipeResponse
forall x. Rep DescribeRecipeResponse x -> DescribeRecipeResponse
forall x. DescribeRecipeResponse -> Rep DescribeRecipeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRecipeResponse x -> DescribeRecipeResponse
$cfrom :: forall x. DescribeRecipeResponse -> Rep DescribeRecipeResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRecipeResponse' 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:
--
-- 'lastModifiedDate', 'describeRecipeResponse_lastModifiedDate' - The date and time that the recipe was last modified.
--
-- 'createDate', 'describeRecipeResponse_createDate' - The date and time that the recipe was created.
--
-- 'publishedBy', 'describeRecipeResponse_publishedBy' - The identifier (user name) of the user who last published the recipe.
--
-- 'createdBy', 'describeRecipeResponse_createdBy' - The identifier (user name) of the user who created the recipe.
--
-- 'steps', 'describeRecipeResponse_steps' - One or more steps to be performed by the recipe. Each step consists of
-- an action, and the conditions under which the action should succeed.
--
-- 'publishedDate', 'describeRecipeResponse_publishedDate' - The date and time when the recipe was last published.
--
-- 'resourceArn', 'describeRecipeResponse_resourceArn' - The ARN of the recipe.
--
-- 'recipeVersion', 'describeRecipeResponse_recipeVersion' - The recipe version identifier.
--
-- 'projectName', 'describeRecipeResponse_projectName' - The name of the project associated with this recipe.
--
-- 'lastModifiedBy', 'describeRecipeResponse_lastModifiedBy' - The identifier (user name) of the user who last modified the recipe.
--
-- 'description', 'describeRecipeResponse_description' - The description of the recipe.
--
-- 'tags', 'describeRecipeResponse_tags' - Metadata tags associated with this project.
--
-- 'httpStatus', 'describeRecipeResponse_httpStatus' - The response's http status code.
--
-- 'name', 'describeRecipeResponse_name' - The name of the recipe.
newDescribeRecipeResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'name'
  Prelude.Text ->
  DescribeRecipeResponse
newDescribeRecipeResponse :: Int -> Text -> DescribeRecipeResponse
newDescribeRecipeResponse Int
pHttpStatus_ Text
pName_ =
  DescribeRecipeResponse' :: Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [RecipeStep]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> DescribeRecipeResponse
DescribeRecipeResponse'
    { $sel:lastModifiedDate:DescribeRecipeResponse' :: Maybe POSIX
lastModifiedDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:createDate:DescribeRecipeResponse' :: Maybe POSIX
createDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:publishedBy:DescribeRecipeResponse' :: Maybe Text
publishedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:DescribeRecipeResponse' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:steps:DescribeRecipeResponse' :: Maybe [RecipeStep]
steps = Maybe [RecipeStep]
forall a. Maybe a
Prelude.Nothing,
      $sel:publishedDate:DescribeRecipeResponse' :: Maybe POSIX
publishedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceArn:DescribeRecipeResponse' :: Maybe Text
resourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:recipeVersion:DescribeRecipeResponse' :: Maybe Text
recipeVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:projectName:DescribeRecipeResponse' :: Maybe Text
projectName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:DescribeRecipeResponse' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:DescribeRecipeResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeRecipeResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeRecipeResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:name:DescribeRecipeResponse' :: Text
name = Text
pName_
    }

-- | The date and time that the recipe was last modified.
describeRecipeResponse_lastModifiedDate :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.UTCTime)
describeRecipeResponse_lastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_lastModifiedDate = (DescribeRecipeResponse -> Maybe POSIX)
-> (DescribeRecipeResponse
    -> Maybe POSIX -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe POSIX
a -> DescribeRecipeResponse
s {$sel:lastModifiedDate:DescribeRecipeResponse' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: DescribeRecipeResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeRecipeResponse -> f DescribeRecipeResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse
-> f DescribeRecipeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The date and time that the recipe was created.
describeRecipeResponse_createDate :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.UTCTime)
describeRecipeResponse_createDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_createDate = (DescribeRecipeResponse -> Maybe POSIX)
-> (DescribeRecipeResponse
    -> Maybe POSIX -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe POSIX
createDate :: Maybe POSIX
$sel:createDate:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe POSIX
createDate} -> Maybe POSIX
createDate) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe POSIX
a -> DescribeRecipeResponse
s {$sel:createDate:DescribeRecipeResponse' :: Maybe POSIX
createDate = Maybe POSIX
a} :: DescribeRecipeResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeRecipeResponse -> f DescribeRecipeResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse
-> f DescribeRecipeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The identifier (user name) of the user who last published the recipe.
describeRecipeResponse_publishedBy :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_publishedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_publishedBy = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
publishedBy :: Maybe Text
$sel:publishedBy:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
publishedBy} -> Maybe Text
publishedBy) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:publishedBy:DescribeRecipeResponse' :: Maybe Text
publishedBy = Maybe Text
a} :: DescribeRecipeResponse)

-- | The identifier (user name) of the user who created the recipe.
describeRecipeResponse_createdBy :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_createdBy :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_createdBy = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:createdBy:DescribeRecipeResponse' :: Maybe Text
createdBy = Maybe Text
a} :: DescribeRecipeResponse)

-- | One or more steps to be performed by the recipe. Each step consists of
-- an action, and the conditions under which the action should succeed.
describeRecipeResponse_steps :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe [RecipeStep])
describeRecipeResponse_steps :: (Maybe [RecipeStep] -> f (Maybe [RecipeStep]))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_steps = (DescribeRecipeResponse -> Maybe [RecipeStep])
-> (DescribeRecipeResponse
    -> Maybe [RecipeStep] -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe [RecipeStep])
     (Maybe [RecipeStep])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe [RecipeStep]
steps :: Maybe [RecipeStep]
$sel:steps:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe [RecipeStep]
steps} -> Maybe [RecipeStep]
steps) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe [RecipeStep]
a -> DescribeRecipeResponse
s {$sel:steps:DescribeRecipeResponse' :: Maybe [RecipeStep]
steps = Maybe [RecipeStep]
a} :: DescribeRecipeResponse) ((Maybe [RecipeStep] -> f (Maybe [RecipeStep]))
 -> DescribeRecipeResponse -> f DescribeRecipeResponse)
-> ((Maybe [RecipeStep] -> f (Maybe [RecipeStep]))
    -> Maybe [RecipeStep] -> f (Maybe [RecipeStep]))
-> (Maybe [RecipeStep] -> f (Maybe [RecipeStep]))
-> DescribeRecipeResponse
-> f DescribeRecipeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [RecipeStep] [RecipeStep] [RecipeStep] [RecipeStep]
-> Iso
     (Maybe [RecipeStep])
     (Maybe [RecipeStep])
     (Maybe [RecipeStep])
     (Maybe [RecipeStep])
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 [RecipeStep] [RecipeStep] [RecipeStep] [RecipeStep]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date and time when the recipe was last published.
describeRecipeResponse_publishedDate :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.UTCTime)
describeRecipeResponse_publishedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_publishedDate = (DescribeRecipeResponse -> Maybe POSIX)
-> (DescribeRecipeResponse
    -> Maybe POSIX -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe POSIX
publishedDate :: Maybe POSIX
$sel:publishedDate:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe POSIX
publishedDate} -> Maybe POSIX
publishedDate) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe POSIX
a -> DescribeRecipeResponse
s {$sel:publishedDate:DescribeRecipeResponse' :: Maybe POSIX
publishedDate = Maybe POSIX
a} :: DescribeRecipeResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeRecipeResponse -> f DescribeRecipeResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRecipeResponse
-> f DescribeRecipeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The ARN of the recipe.
describeRecipeResponse_resourceArn :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_resourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_resourceArn = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:resourceArn:DescribeRecipeResponse' :: Maybe Text
resourceArn = Maybe Text
a} :: DescribeRecipeResponse)

-- | The recipe version identifier.
describeRecipeResponse_recipeVersion :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_recipeVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_recipeVersion = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
recipeVersion :: Maybe Text
$sel:recipeVersion:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
recipeVersion} -> Maybe Text
recipeVersion) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:recipeVersion:DescribeRecipeResponse' :: Maybe Text
recipeVersion = Maybe Text
a} :: DescribeRecipeResponse)

-- | The name of the project associated with this recipe.
describeRecipeResponse_projectName :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_projectName :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_projectName = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
projectName :: Maybe Text
$sel:projectName:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
projectName} -> Maybe Text
projectName) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:projectName:DescribeRecipeResponse' :: Maybe Text
projectName = Maybe Text
a} :: DescribeRecipeResponse)

-- | The identifier (user name) of the user who last modified the recipe.
describeRecipeResponse_lastModifiedBy :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe Prelude.Text)
describeRecipeResponse_lastModifiedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_lastModifiedBy = (DescribeRecipeResponse -> Maybe Text)
-> (DescribeRecipeResponse -> Maybe Text -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe Text
lastModifiedBy :: Maybe Text
$sel:lastModifiedBy:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe Text
lastModifiedBy} -> Maybe Text
lastModifiedBy) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe Text
a -> DescribeRecipeResponse
s {$sel:lastModifiedBy:DescribeRecipeResponse' :: Maybe Text
lastModifiedBy = Maybe Text
a} :: DescribeRecipeResponse)

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

-- | Metadata tags associated with this project.
describeRecipeResponse_tags :: Lens.Lens' DescribeRecipeResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeRecipeResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_tags = (DescribeRecipeResponse -> Maybe (HashMap Text Text))
-> (DescribeRecipeResponse
    -> Maybe (HashMap Text Text) -> DescribeRecipeResponse)
-> Lens
     DescribeRecipeResponse
     DescribeRecipeResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeRecipeResponse' :: DescribeRecipeResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Maybe (HashMap Text Text)
a -> DescribeRecipeResponse
s {$sel:tags:DescribeRecipeResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeRecipeResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeRecipeResponse -> f DescribeRecipeResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRecipeResponse
-> f DescribeRecipeResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeRecipeResponse_httpStatus :: Lens.Lens' DescribeRecipeResponse Prelude.Int
describeRecipeResponse_httpStatus :: (Int -> f Int)
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_httpStatus = (DescribeRecipeResponse -> Int)
-> (DescribeRecipeResponse -> Int -> DescribeRecipeResponse)
-> Lens DescribeRecipeResponse DescribeRecipeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRecipeResponse' :: DescribeRecipeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Int
a -> DescribeRecipeResponse
s {$sel:httpStatus:DescribeRecipeResponse' :: Int
httpStatus = Int
a} :: DescribeRecipeResponse)

-- | The name of the recipe.
describeRecipeResponse_name :: Lens.Lens' DescribeRecipeResponse Prelude.Text
describeRecipeResponse_name :: (Text -> f Text)
-> DescribeRecipeResponse -> f DescribeRecipeResponse
describeRecipeResponse_name = (DescribeRecipeResponse -> Text)
-> (DescribeRecipeResponse -> Text -> DescribeRecipeResponse)
-> Lens DescribeRecipeResponse DescribeRecipeResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRecipeResponse' {Text
name :: Text
$sel:name:DescribeRecipeResponse' :: DescribeRecipeResponse -> Text
name} -> Text
name) (\s :: DescribeRecipeResponse
s@DescribeRecipeResponse' {} Text
a -> DescribeRecipeResponse
s {$sel:name:DescribeRecipeResponse' :: Text
name = Text
a} :: DescribeRecipeResponse)

instance Prelude.NFData DescribeRecipeResponse