{-# 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.Greengrass.Types.BulkDeploymentResult
-- 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.Greengrass.Types.BulkDeploymentResult where

import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types.DeploymentType
import Amazonka.Greengrass.Types.ErrorDetail
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about an individual group deployment in a bulk deployment
-- operation.
--
-- /See:/ 'newBulkDeploymentResult' smart constructor.
data BulkDeploymentResult = BulkDeploymentResult'
  { -- | The ID of the group deployment.
    BulkDeploymentResult -> Maybe Text
deploymentId :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the group deployment.
    BulkDeploymentResult -> Maybe Text
deploymentArn :: Prelude.Maybe Prelude.Text,
    -- | The time, in ISO format, when the deployment was created.
    BulkDeploymentResult -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
    -- | The type of the deployment.
    BulkDeploymentResult -> Maybe DeploymentType
deploymentType :: Prelude.Maybe DeploymentType,
    -- | Details about the error.
    BulkDeploymentResult -> Maybe [ErrorDetail]
errorDetails :: Prelude.Maybe [ErrorDetail],
    -- | The ARN of the Greengrass group.
    BulkDeploymentResult -> Maybe Text
groupArn :: Prelude.Maybe Prelude.Text,
    -- | The current status of the group deployment: \'\'InProgress\'\',
    -- \'\'Building\'\', \'\'Success\'\', or \'\'Failure\'\'.
    BulkDeploymentResult -> Maybe Text
deploymentStatus :: Prelude.Maybe Prelude.Text,
    -- | The error message for a failed deployment
    BulkDeploymentResult -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text
  }
  deriving (BulkDeploymentResult -> BulkDeploymentResult -> Bool
(BulkDeploymentResult -> BulkDeploymentResult -> Bool)
-> (BulkDeploymentResult -> BulkDeploymentResult -> Bool)
-> Eq BulkDeploymentResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BulkDeploymentResult -> BulkDeploymentResult -> Bool
$c/= :: BulkDeploymentResult -> BulkDeploymentResult -> Bool
== :: BulkDeploymentResult -> BulkDeploymentResult -> Bool
$c== :: BulkDeploymentResult -> BulkDeploymentResult -> Bool
Prelude.Eq, ReadPrec [BulkDeploymentResult]
ReadPrec BulkDeploymentResult
Int -> ReadS BulkDeploymentResult
ReadS [BulkDeploymentResult]
(Int -> ReadS BulkDeploymentResult)
-> ReadS [BulkDeploymentResult]
-> ReadPrec BulkDeploymentResult
-> ReadPrec [BulkDeploymentResult]
-> Read BulkDeploymentResult
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BulkDeploymentResult]
$creadListPrec :: ReadPrec [BulkDeploymentResult]
readPrec :: ReadPrec BulkDeploymentResult
$creadPrec :: ReadPrec BulkDeploymentResult
readList :: ReadS [BulkDeploymentResult]
$creadList :: ReadS [BulkDeploymentResult]
readsPrec :: Int -> ReadS BulkDeploymentResult
$creadsPrec :: Int -> ReadS BulkDeploymentResult
Prelude.Read, Int -> BulkDeploymentResult -> ShowS
[BulkDeploymentResult] -> ShowS
BulkDeploymentResult -> String
(Int -> BulkDeploymentResult -> ShowS)
-> (BulkDeploymentResult -> String)
-> ([BulkDeploymentResult] -> ShowS)
-> Show BulkDeploymentResult
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BulkDeploymentResult] -> ShowS
$cshowList :: [BulkDeploymentResult] -> ShowS
show :: BulkDeploymentResult -> String
$cshow :: BulkDeploymentResult -> String
showsPrec :: Int -> BulkDeploymentResult -> ShowS
$cshowsPrec :: Int -> BulkDeploymentResult -> ShowS
Prelude.Show, (forall x. BulkDeploymentResult -> Rep BulkDeploymentResult x)
-> (forall x. Rep BulkDeploymentResult x -> BulkDeploymentResult)
-> Generic BulkDeploymentResult
forall x. Rep BulkDeploymentResult x -> BulkDeploymentResult
forall x. BulkDeploymentResult -> Rep BulkDeploymentResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BulkDeploymentResult x -> BulkDeploymentResult
$cfrom :: forall x. BulkDeploymentResult -> Rep BulkDeploymentResult x
Prelude.Generic)

-- |
-- Create a value of 'BulkDeploymentResult' 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:
--
-- 'deploymentId', 'bulkDeploymentResult_deploymentId' - The ID of the group deployment.
--
-- 'deploymentArn', 'bulkDeploymentResult_deploymentArn' - The ARN of the group deployment.
--
-- 'createdAt', 'bulkDeploymentResult_createdAt' - The time, in ISO format, when the deployment was created.
--
-- 'deploymentType', 'bulkDeploymentResult_deploymentType' - The type of the deployment.
--
-- 'errorDetails', 'bulkDeploymentResult_errorDetails' - Details about the error.
--
-- 'groupArn', 'bulkDeploymentResult_groupArn' - The ARN of the Greengrass group.
--
-- 'deploymentStatus', 'bulkDeploymentResult_deploymentStatus' - The current status of the group deployment: \'\'InProgress\'\',
-- \'\'Building\'\', \'\'Success\'\', or \'\'Failure\'\'.
--
-- 'errorMessage', 'bulkDeploymentResult_errorMessage' - The error message for a failed deployment
newBulkDeploymentResult ::
  BulkDeploymentResult
newBulkDeploymentResult :: BulkDeploymentResult
newBulkDeploymentResult =
  BulkDeploymentResult' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeploymentType
-> Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> BulkDeploymentResult
BulkDeploymentResult'
    { $sel:deploymentId:BulkDeploymentResult' :: Maybe Text
deploymentId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentArn:BulkDeploymentResult' :: Maybe Text
deploymentArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:BulkDeploymentResult' :: Maybe Text
createdAt = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentType:BulkDeploymentResult' :: Maybe DeploymentType
deploymentType = Maybe DeploymentType
forall a. Maybe a
Prelude.Nothing,
      $sel:errorDetails:BulkDeploymentResult' :: Maybe [ErrorDetail]
errorDetails = Maybe [ErrorDetail]
forall a. Maybe a
Prelude.Nothing,
      $sel:groupArn:BulkDeploymentResult' :: Maybe Text
groupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentStatus:BulkDeploymentResult' :: Maybe Text
deploymentStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:BulkDeploymentResult' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The ID of the group deployment.
bulkDeploymentResult_deploymentId :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_deploymentId :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_deploymentId = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
deploymentId :: Maybe Text
$sel:deploymentId:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
deploymentId} -> Maybe Text
deploymentId) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:deploymentId:BulkDeploymentResult' :: Maybe Text
deploymentId = Maybe Text
a} :: BulkDeploymentResult)

-- | The ARN of the group deployment.
bulkDeploymentResult_deploymentArn :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_deploymentArn :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_deploymentArn = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
deploymentArn :: Maybe Text
$sel:deploymentArn:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
deploymentArn} -> Maybe Text
deploymentArn) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:deploymentArn:BulkDeploymentResult' :: Maybe Text
deploymentArn = Maybe Text
a} :: BulkDeploymentResult)

-- | The time, in ISO format, when the deployment was created.
bulkDeploymentResult_createdAt :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_createdAt :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_createdAt = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
createdAt :: Maybe Text
$sel:createdAt:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
createdAt} -> Maybe Text
createdAt) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:createdAt:BulkDeploymentResult' :: Maybe Text
createdAt = Maybe Text
a} :: BulkDeploymentResult)

-- | The type of the deployment.
bulkDeploymentResult_deploymentType :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe DeploymentType)
bulkDeploymentResult_deploymentType :: (Maybe DeploymentType -> f (Maybe DeploymentType))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_deploymentType = (BulkDeploymentResult -> Maybe DeploymentType)
-> (BulkDeploymentResult
    -> Maybe DeploymentType -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult
     BulkDeploymentResult
     (Maybe DeploymentType)
     (Maybe DeploymentType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe DeploymentType
deploymentType :: Maybe DeploymentType
$sel:deploymentType:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe DeploymentType
deploymentType} -> Maybe DeploymentType
deploymentType) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe DeploymentType
a -> BulkDeploymentResult
s {$sel:deploymentType:BulkDeploymentResult' :: Maybe DeploymentType
deploymentType = Maybe DeploymentType
a} :: BulkDeploymentResult)

-- | Details about the error.
bulkDeploymentResult_errorDetails :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe [ErrorDetail])
bulkDeploymentResult_errorDetails :: (Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_errorDetails = (BulkDeploymentResult -> Maybe [ErrorDetail])
-> (BulkDeploymentResult
    -> Maybe [ErrorDetail] -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult
     BulkDeploymentResult
     (Maybe [ErrorDetail])
     (Maybe [ErrorDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe [ErrorDetail]
errorDetails :: Maybe [ErrorDetail]
$sel:errorDetails:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe [ErrorDetail]
errorDetails} -> Maybe [ErrorDetail]
errorDetails) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe [ErrorDetail]
a -> BulkDeploymentResult
s {$sel:errorDetails:BulkDeploymentResult' :: Maybe [ErrorDetail]
errorDetails = Maybe [ErrorDetail]
a} :: BulkDeploymentResult) ((Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
 -> BulkDeploymentResult -> f BulkDeploymentResult)
-> ((Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
    -> Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> (Maybe [ErrorDetail] -> f (Maybe [ErrorDetail]))
-> BulkDeploymentResult
-> f BulkDeploymentResult
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ErrorDetail] [ErrorDetail] [ErrorDetail] [ErrorDetail]
-> Iso
     (Maybe [ErrorDetail])
     (Maybe [ErrorDetail])
     (Maybe [ErrorDetail])
     (Maybe [ErrorDetail])
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 [ErrorDetail] [ErrorDetail] [ErrorDetail] [ErrorDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ARN of the Greengrass group.
bulkDeploymentResult_groupArn :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_groupArn :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_groupArn = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
groupArn :: Maybe Text
$sel:groupArn:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
groupArn} -> Maybe Text
groupArn) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:groupArn:BulkDeploymentResult' :: Maybe Text
groupArn = Maybe Text
a} :: BulkDeploymentResult)

-- | The current status of the group deployment: \'\'InProgress\'\',
-- \'\'Building\'\', \'\'Success\'\', or \'\'Failure\'\'.
bulkDeploymentResult_deploymentStatus :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_deploymentStatus :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_deploymentStatus = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
deploymentStatus :: Maybe Text
$sel:deploymentStatus:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
deploymentStatus} -> Maybe Text
deploymentStatus) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:deploymentStatus:BulkDeploymentResult' :: Maybe Text
deploymentStatus = Maybe Text
a} :: BulkDeploymentResult)

-- | The error message for a failed deployment
bulkDeploymentResult_errorMessage :: Lens.Lens' BulkDeploymentResult (Prelude.Maybe Prelude.Text)
bulkDeploymentResult_errorMessage :: (Maybe Text -> f (Maybe Text))
-> BulkDeploymentResult -> f BulkDeploymentResult
bulkDeploymentResult_errorMessage = (BulkDeploymentResult -> Maybe Text)
-> (BulkDeploymentResult -> Maybe Text -> BulkDeploymentResult)
-> Lens
     BulkDeploymentResult BulkDeploymentResult (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BulkDeploymentResult' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:BulkDeploymentResult' :: BulkDeploymentResult -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: BulkDeploymentResult
s@BulkDeploymentResult' {} Maybe Text
a -> BulkDeploymentResult
s {$sel:errorMessage:BulkDeploymentResult' :: Maybe Text
errorMessage = Maybe Text
a} :: BulkDeploymentResult)

instance Core.FromJSON BulkDeploymentResult where
  parseJSON :: Value -> Parser BulkDeploymentResult
parseJSON =
    String
-> (Object -> Parser BulkDeploymentResult)
-> Value
-> Parser BulkDeploymentResult
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"BulkDeploymentResult"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeploymentType
-> Maybe [ErrorDetail]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> BulkDeploymentResult
BulkDeploymentResult'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe DeploymentType
 -> Maybe [ErrorDetail]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> BulkDeploymentResult)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe DeploymentType
      -> Maybe [ErrorDetail]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> BulkDeploymentResult)
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
"DeploymentId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe DeploymentType
   -> Maybe [ErrorDetail]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> BulkDeploymentResult)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe DeploymentType
      -> Maybe [ErrorDetail]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> BulkDeploymentResult)
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
"DeploymentArn")
            Parser
  (Maybe Text
   -> Maybe DeploymentType
   -> Maybe [ErrorDetail]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> BulkDeploymentResult)
-> Parser (Maybe Text)
-> Parser
     (Maybe DeploymentType
      -> Maybe [ErrorDetail]
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> BulkDeploymentResult)
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
"CreatedAt")
            Parser
  (Maybe DeploymentType
   -> Maybe [ErrorDetail]
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> BulkDeploymentResult)
-> Parser (Maybe DeploymentType)
-> Parser
     (Maybe [ErrorDetail]
      -> Maybe Text -> Maybe Text -> Maybe Text -> BulkDeploymentResult)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeploymentType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeploymentType")
            Parser
  (Maybe [ErrorDetail]
   -> Maybe Text -> Maybe Text -> Maybe Text -> BulkDeploymentResult)
-> Parser (Maybe [ErrorDetail])
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> BulkDeploymentResult)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [ErrorDetail]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ErrorDetails" Parser (Maybe (Maybe [ErrorDetail]))
-> Maybe [ErrorDetail] -> Parser (Maybe [ErrorDetail])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ErrorDetail]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> BulkDeploymentResult)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> BulkDeploymentResult)
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
"GroupArn")
            Parser (Maybe Text -> Maybe Text -> BulkDeploymentResult)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> BulkDeploymentResult)
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
"DeploymentStatus")
            Parser (Maybe Text -> BulkDeploymentResult)
-> Parser (Maybe Text) -> Parser BulkDeploymentResult
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
"ErrorMessage")
      )

instance Prelude.Hashable BulkDeploymentResult

instance Prelude.NFData BulkDeploymentResult