{-# 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.BatchDeleteRecipeVersion
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes one or more versions of a recipe at a time.
--
-- The entire request will be rejected if:
--
-- -   The recipe does not exist.
--
-- -   There is an invalid version identifier in the list of versions.
--
-- -   The version list is empty.
--
-- -   The version list size exceeds 50.
--
-- -   The version list contains duplicate entries.
--
-- The request will complete successfully, but with partial failures, if:
--
-- -   A version does not exist.
--
-- -   A version is being used by a job.
--
-- -   You specify @LATEST_WORKING@, but it\'s being used by a project.
--
-- -   The version fails to be deleted.
--
-- The @LATEST_WORKING@ version will only be deleted if the recipe has no
-- other versions. If you try to delete @LATEST_WORKING@ while other
-- versions exist (or if they can\'t be deleted), then @LATEST_WORKING@
-- will be listed as partial failure in the response.
module Amazonka.DataBrew.BatchDeleteRecipeVersion
  ( -- * Creating a Request
    BatchDeleteRecipeVersion (..),
    newBatchDeleteRecipeVersion,

    -- * Request Lenses
    batchDeleteRecipeVersion_name,
    batchDeleteRecipeVersion_recipeVersions,

    -- * Destructuring the Response
    BatchDeleteRecipeVersionResponse (..),
    newBatchDeleteRecipeVersionResponse,

    -- * Response Lenses
    batchDeleteRecipeVersionResponse_errors,
    batchDeleteRecipeVersionResponse_httpStatus,
    batchDeleteRecipeVersionResponse_name,
  )
where

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

-- | /See:/ 'newBatchDeleteRecipeVersion' smart constructor.
data BatchDeleteRecipeVersion = BatchDeleteRecipeVersion'
  { -- | The name of the recipe whose versions are to be deleted.
    BatchDeleteRecipeVersion -> Text
name :: Prelude.Text,
    -- | An array of version identifiers, for the recipe versions to be deleted.
    -- You can specify numeric versions (@X.Y@) or @LATEST_WORKING@.
    -- @LATEST_PUBLISHED@ is not supported.
    BatchDeleteRecipeVersion -> NonEmpty Text
recipeVersions :: Prelude.NonEmpty Prelude.Text
  }
  deriving (BatchDeleteRecipeVersion -> BatchDeleteRecipeVersion -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteRecipeVersion -> BatchDeleteRecipeVersion -> Bool
$c/= :: BatchDeleteRecipeVersion -> BatchDeleteRecipeVersion -> Bool
== :: BatchDeleteRecipeVersion -> BatchDeleteRecipeVersion -> Bool
$c== :: BatchDeleteRecipeVersion -> BatchDeleteRecipeVersion -> Bool
Prelude.Eq, ReadPrec [BatchDeleteRecipeVersion]
ReadPrec BatchDeleteRecipeVersion
Int -> ReadS BatchDeleteRecipeVersion
ReadS [BatchDeleteRecipeVersion]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteRecipeVersion]
$creadListPrec :: ReadPrec [BatchDeleteRecipeVersion]
readPrec :: ReadPrec BatchDeleteRecipeVersion
$creadPrec :: ReadPrec BatchDeleteRecipeVersion
readList :: ReadS [BatchDeleteRecipeVersion]
$creadList :: ReadS [BatchDeleteRecipeVersion]
readsPrec :: Int -> ReadS BatchDeleteRecipeVersion
$creadsPrec :: Int -> ReadS BatchDeleteRecipeVersion
Prelude.Read, Int -> BatchDeleteRecipeVersion -> ShowS
[BatchDeleteRecipeVersion] -> ShowS
BatchDeleteRecipeVersion -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteRecipeVersion] -> ShowS
$cshowList :: [BatchDeleteRecipeVersion] -> ShowS
show :: BatchDeleteRecipeVersion -> String
$cshow :: BatchDeleteRecipeVersion -> String
showsPrec :: Int -> BatchDeleteRecipeVersion -> ShowS
$cshowsPrec :: Int -> BatchDeleteRecipeVersion -> ShowS
Prelude.Show, forall x.
Rep BatchDeleteRecipeVersion x -> BatchDeleteRecipeVersion
forall x.
BatchDeleteRecipeVersion -> Rep BatchDeleteRecipeVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteRecipeVersion x -> BatchDeleteRecipeVersion
$cfrom :: forall x.
BatchDeleteRecipeVersion -> Rep BatchDeleteRecipeVersion x
Prelude.Generic)

-- |
-- Create a value of 'BatchDeleteRecipeVersion' 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:
--
-- 'name', 'batchDeleteRecipeVersion_name' - The name of the recipe whose versions are to be deleted.
--
-- 'recipeVersions', 'batchDeleteRecipeVersion_recipeVersions' - An array of version identifiers, for the recipe versions to be deleted.
-- You can specify numeric versions (@X.Y@) or @LATEST_WORKING@.
-- @LATEST_PUBLISHED@ is not supported.
newBatchDeleteRecipeVersion ::
  -- | 'name'
  Prelude.Text ->
  -- | 'recipeVersions'
  Prelude.NonEmpty Prelude.Text ->
  BatchDeleteRecipeVersion
newBatchDeleteRecipeVersion :: Text -> NonEmpty Text -> BatchDeleteRecipeVersion
newBatchDeleteRecipeVersion Text
pName_ NonEmpty Text
pRecipeVersions_ =
  BatchDeleteRecipeVersion'
    { $sel:name:BatchDeleteRecipeVersion' :: Text
name = Text
pName_,
      $sel:recipeVersions:BatchDeleteRecipeVersion' :: NonEmpty Text
recipeVersions =
        forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pRecipeVersions_
    }

-- | The name of the recipe whose versions are to be deleted.
batchDeleteRecipeVersion_name :: Lens.Lens' BatchDeleteRecipeVersion Prelude.Text
batchDeleteRecipeVersion_name :: Lens' BatchDeleteRecipeVersion Text
batchDeleteRecipeVersion_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteRecipeVersion' {Text
name :: Text
$sel:name:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> Text
name} -> Text
name) (\s :: BatchDeleteRecipeVersion
s@BatchDeleteRecipeVersion' {} Text
a -> BatchDeleteRecipeVersion
s {$sel:name:BatchDeleteRecipeVersion' :: Text
name = Text
a} :: BatchDeleteRecipeVersion)

-- | An array of version identifiers, for the recipe versions to be deleted.
-- You can specify numeric versions (@X.Y@) or @LATEST_WORKING@.
-- @LATEST_PUBLISHED@ is not supported.
batchDeleteRecipeVersion_recipeVersions :: Lens.Lens' BatchDeleteRecipeVersion (Prelude.NonEmpty Prelude.Text)
batchDeleteRecipeVersion_recipeVersions :: Lens' BatchDeleteRecipeVersion (NonEmpty Text)
batchDeleteRecipeVersion_recipeVersions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteRecipeVersion' {NonEmpty Text
recipeVersions :: NonEmpty Text
$sel:recipeVersions:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> NonEmpty Text
recipeVersions} -> NonEmpty Text
recipeVersions) (\s :: BatchDeleteRecipeVersion
s@BatchDeleteRecipeVersion' {} NonEmpty Text
a -> BatchDeleteRecipeVersion
s {$sel:recipeVersions:BatchDeleteRecipeVersion' :: NonEmpty Text
recipeVersions = NonEmpty Text
a} :: BatchDeleteRecipeVersion) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest BatchDeleteRecipeVersion where
  type
    AWSResponse BatchDeleteRecipeVersion =
      BatchDeleteRecipeVersionResponse
  request :: (Service -> Service)
-> BatchDeleteRecipeVersion -> Request BatchDeleteRecipeVersion
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy BatchDeleteRecipeVersion
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchDeleteRecipeVersion)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [RecipeVersionErrorDetail]
-> Int -> Text -> BatchDeleteRecipeVersionResponse
BatchDeleteRecipeVersionResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Errors" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"Name")
      )

instance Prelude.Hashable BatchDeleteRecipeVersion where
  hashWithSalt :: Int -> BatchDeleteRecipeVersion -> Int
hashWithSalt Int
_salt BatchDeleteRecipeVersion' {NonEmpty Text
Text
recipeVersions :: NonEmpty Text
name :: Text
$sel:recipeVersions:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> NonEmpty Text
$sel:name:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` NonEmpty Text
recipeVersions

instance Prelude.NFData BatchDeleteRecipeVersion where
  rnf :: BatchDeleteRecipeVersion -> ()
rnf BatchDeleteRecipeVersion' {NonEmpty Text
Text
recipeVersions :: NonEmpty Text
name :: Text
$sel:recipeVersions:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> NonEmpty Text
$sel:name:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf NonEmpty Text
recipeVersions

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

instance Data.ToJSON BatchDeleteRecipeVersion where
  toJSON :: BatchDeleteRecipeVersion -> Value
toJSON BatchDeleteRecipeVersion' {NonEmpty Text
Text
recipeVersions :: NonEmpty Text
name :: Text
$sel:recipeVersions:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> NonEmpty Text
$sel:name:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              (Key
"RecipeVersions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= NonEmpty Text
recipeVersions)
          ]
      )

instance Data.ToPath BatchDeleteRecipeVersion where
  toPath :: BatchDeleteRecipeVersion -> ByteString
toPath BatchDeleteRecipeVersion' {NonEmpty Text
Text
recipeVersions :: NonEmpty Text
name :: Text
$sel:recipeVersions:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> NonEmpty Text
$sel:name:BatchDeleteRecipeVersion' :: BatchDeleteRecipeVersion -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/recipes/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
name,
        ByteString
"/batchDeleteRecipeVersion"
      ]

instance Data.ToQuery BatchDeleteRecipeVersion where
  toQuery :: BatchDeleteRecipeVersion -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newBatchDeleteRecipeVersionResponse' smart constructor.
data BatchDeleteRecipeVersionResponse = BatchDeleteRecipeVersionResponse'
  { -- | Errors, if any, that occurred while attempting to delete the recipe
    -- versions.
    BatchDeleteRecipeVersionResponse
-> Maybe [RecipeVersionErrorDetail]
errors :: Prelude.Maybe [RecipeVersionErrorDetail],
    -- | The response's http status code.
    BatchDeleteRecipeVersionResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the recipe that was modified.
    BatchDeleteRecipeVersionResponse -> Text
name :: Prelude.Text
  }
  deriving (BatchDeleteRecipeVersionResponse
-> BatchDeleteRecipeVersionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteRecipeVersionResponse
-> BatchDeleteRecipeVersionResponse -> Bool
$c/= :: BatchDeleteRecipeVersionResponse
-> BatchDeleteRecipeVersionResponse -> Bool
== :: BatchDeleteRecipeVersionResponse
-> BatchDeleteRecipeVersionResponse -> Bool
$c== :: BatchDeleteRecipeVersionResponse
-> BatchDeleteRecipeVersionResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteRecipeVersionResponse]
ReadPrec BatchDeleteRecipeVersionResponse
Int -> ReadS BatchDeleteRecipeVersionResponse
ReadS [BatchDeleteRecipeVersionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteRecipeVersionResponse]
$creadListPrec :: ReadPrec [BatchDeleteRecipeVersionResponse]
readPrec :: ReadPrec BatchDeleteRecipeVersionResponse
$creadPrec :: ReadPrec BatchDeleteRecipeVersionResponse
readList :: ReadS [BatchDeleteRecipeVersionResponse]
$creadList :: ReadS [BatchDeleteRecipeVersionResponse]
readsPrec :: Int -> ReadS BatchDeleteRecipeVersionResponse
$creadsPrec :: Int -> ReadS BatchDeleteRecipeVersionResponse
Prelude.Read, Int -> BatchDeleteRecipeVersionResponse -> ShowS
[BatchDeleteRecipeVersionResponse] -> ShowS
BatchDeleteRecipeVersionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteRecipeVersionResponse] -> ShowS
$cshowList :: [BatchDeleteRecipeVersionResponse] -> ShowS
show :: BatchDeleteRecipeVersionResponse -> String
$cshow :: BatchDeleteRecipeVersionResponse -> String
showsPrec :: Int -> BatchDeleteRecipeVersionResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteRecipeVersionResponse -> ShowS
Prelude.Show, forall x.
Rep BatchDeleteRecipeVersionResponse x
-> BatchDeleteRecipeVersionResponse
forall x.
BatchDeleteRecipeVersionResponse
-> Rep BatchDeleteRecipeVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteRecipeVersionResponse x
-> BatchDeleteRecipeVersionResponse
$cfrom :: forall x.
BatchDeleteRecipeVersionResponse
-> Rep BatchDeleteRecipeVersionResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchDeleteRecipeVersionResponse' 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:
--
-- 'errors', 'batchDeleteRecipeVersionResponse_errors' - Errors, if any, that occurred while attempting to delete the recipe
-- versions.
--
-- 'httpStatus', 'batchDeleteRecipeVersionResponse_httpStatus' - The response's http status code.
--
-- 'name', 'batchDeleteRecipeVersionResponse_name' - The name of the recipe that was modified.
newBatchDeleteRecipeVersionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'name'
  Prelude.Text ->
  BatchDeleteRecipeVersionResponse
newBatchDeleteRecipeVersionResponse :: Int -> Text -> BatchDeleteRecipeVersionResponse
newBatchDeleteRecipeVersionResponse
  Int
pHttpStatus_
  Text
pName_ =
    BatchDeleteRecipeVersionResponse'
      { $sel:errors:BatchDeleteRecipeVersionResponse' :: Maybe [RecipeVersionErrorDetail]
errors =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:BatchDeleteRecipeVersionResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:name:BatchDeleteRecipeVersionResponse' :: Text
name = Text
pName_
      }

-- | Errors, if any, that occurred while attempting to delete the recipe
-- versions.
batchDeleteRecipeVersionResponse_errors :: Lens.Lens' BatchDeleteRecipeVersionResponse (Prelude.Maybe [RecipeVersionErrorDetail])
batchDeleteRecipeVersionResponse_errors :: Lens'
  BatchDeleteRecipeVersionResponse (Maybe [RecipeVersionErrorDetail])
batchDeleteRecipeVersionResponse_errors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteRecipeVersionResponse' {Maybe [RecipeVersionErrorDetail]
errors :: Maybe [RecipeVersionErrorDetail]
$sel:errors:BatchDeleteRecipeVersionResponse' :: BatchDeleteRecipeVersionResponse
-> Maybe [RecipeVersionErrorDetail]
errors} -> Maybe [RecipeVersionErrorDetail]
errors) (\s :: BatchDeleteRecipeVersionResponse
s@BatchDeleteRecipeVersionResponse' {} Maybe [RecipeVersionErrorDetail]
a -> BatchDeleteRecipeVersionResponse
s {$sel:errors:BatchDeleteRecipeVersionResponse' :: Maybe [RecipeVersionErrorDetail]
errors = Maybe [RecipeVersionErrorDetail]
a} :: BatchDeleteRecipeVersionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The name of the recipe that was modified.
batchDeleteRecipeVersionResponse_name :: Lens.Lens' BatchDeleteRecipeVersionResponse Prelude.Text
batchDeleteRecipeVersionResponse_name :: Lens' BatchDeleteRecipeVersionResponse Text
batchDeleteRecipeVersionResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteRecipeVersionResponse' {Text
name :: Text
$sel:name:BatchDeleteRecipeVersionResponse' :: BatchDeleteRecipeVersionResponse -> Text
name} -> Text
name) (\s :: BatchDeleteRecipeVersionResponse
s@BatchDeleteRecipeVersionResponse' {} Text
a -> BatchDeleteRecipeVersionResponse
s {$sel:name:BatchDeleteRecipeVersionResponse' :: Text
name = Text
a} :: BatchDeleteRecipeVersionResponse)

instance
  Prelude.NFData
    BatchDeleteRecipeVersionResponse
  where
  rnf :: BatchDeleteRecipeVersionResponse -> ()
rnf BatchDeleteRecipeVersionResponse' {Int
Maybe [RecipeVersionErrorDetail]
Text
name :: Text
httpStatus :: Int
errors :: Maybe [RecipeVersionErrorDetail]
$sel:name:BatchDeleteRecipeVersionResponse' :: BatchDeleteRecipeVersionResponse -> Text
$sel:httpStatus:BatchDeleteRecipeVersionResponse' :: BatchDeleteRecipeVersionResponse -> Int
$sel:errors:BatchDeleteRecipeVersionResponse' :: BatchDeleteRecipeVersionResponse
-> Maybe [RecipeVersionErrorDetail]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [RecipeVersionErrorDetail]
errors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name