{-# 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.Personalize.Types.DatasetGroup
-- 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.Personalize.Types.DatasetGroup where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | A dataset group is a collection of related datasets (Interactions, User,
-- and Item). You create a dataset group by calling CreateDatasetGroup. You
-- then create a dataset and add it to a dataset group by calling
-- CreateDataset. The dataset group is used to create and train a solution
-- by calling CreateSolution. A dataset group can contain only one of each
-- type of dataset.
--
-- You can specify an Key Management Service (KMS) key to encrypt the
-- datasets in the group.
--
-- /See:/ 'newDatasetGroup' smart constructor.
data DatasetGroup = DatasetGroup'
  { -- | If creating a dataset group fails, provides the reason why.
    DatasetGroup -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | The current status of the dataset group.
    --
    -- A dataset group can be in one of the following states:
    --
    -- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
    --
    -- -   DELETE PENDING
    DatasetGroup -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key
    -- used to encrypt the datasets.
    DatasetGroup -> Maybe Text
kmsKeyArn :: Prelude.Maybe Prelude.Text,
    -- | The last update date and time (in Unix time) of the dataset group.
    DatasetGroup -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the dataset group.
    DatasetGroup -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The creation date and time (in Unix time) of the dataset group.
    DatasetGroup -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the dataset group.
    DatasetGroup -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the IAM role that has permissions to create the dataset
    -- group.
    DatasetGroup -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
  }
  deriving (DatasetGroup -> DatasetGroup -> Bool
(DatasetGroup -> DatasetGroup -> Bool)
-> (DatasetGroup -> DatasetGroup -> Bool) -> Eq DatasetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DatasetGroup -> DatasetGroup -> Bool
$c/= :: DatasetGroup -> DatasetGroup -> Bool
== :: DatasetGroup -> DatasetGroup -> Bool
$c== :: DatasetGroup -> DatasetGroup -> Bool
Prelude.Eq, ReadPrec [DatasetGroup]
ReadPrec DatasetGroup
Int -> ReadS DatasetGroup
ReadS [DatasetGroup]
(Int -> ReadS DatasetGroup)
-> ReadS [DatasetGroup]
-> ReadPrec DatasetGroup
-> ReadPrec [DatasetGroup]
-> Read DatasetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DatasetGroup]
$creadListPrec :: ReadPrec [DatasetGroup]
readPrec :: ReadPrec DatasetGroup
$creadPrec :: ReadPrec DatasetGroup
readList :: ReadS [DatasetGroup]
$creadList :: ReadS [DatasetGroup]
readsPrec :: Int -> ReadS DatasetGroup
$creadsPrec :: Int -> ReadS DatasetGroup
Prelude.Read, Int -> DatasetGroup -> ShowS
[DatasetGroup] -> ShowS
DatasetGroup -> String
(Int -> DatasetGroup -> ShowS)
-> (DatasetGroup -> String)
-> ([DatasetGroup] -> ShowS)
-> Show DatasetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DatasetGroup] -> ShowS
$cshowList :: [DatasetGroup] -> ShowS
show :: DatasetGroup -> String
$cshow :: DatasetGroup -> String
showsPrec :: Int -> DatasetGroup -> ShowS
$cshowsPrec :: Int -> DatasetGroup -> ShowS
Prelude.Show, (forall x. DatasetGroup -> Rep DatasetGroup x)
-> (forall x. Rep DatasetGroup x -> DatasetGroup)
-> Generic DatasetGroup
forall x. Rep DatasetGroup x -> DatasetGroup
forall x. DatasetGroup -> Rep DatasetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DatasetGroup x -> DatasetGroup
$cfrom :: forall x. DatasetGroup -> Rep DatasetGroup x
Prelude.Generic)

-- |
-- Create a value of 'DatasetGroup' 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:
--
-- 'failureReason', 'datasetGroup_failureReason' - If creating a dataset group fails, provides the reason why.
--
-- 'status', 'datasetGroup_status' - The current status of the dataset group.
--
-- A dataset group can be in one of the following states:
--
-- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
--
-- -   DELETE PENDING
--
-- 'kmsKeyArn', 'datasetGroup_kmsKeyArn' - The Amazon Resource Name (ARN) of the Key Management Service (KMS) key
-- used to encrypt the datasets.
--
-- 'lastUpdatedDateTime', 'datasetGroup_lastUpdatedDateTime' - The last update date and time (in Unix time) of the dataset group.
--
-- 'name', 'datasetGroup_name' - The name of the dataset group.
--
-- 'creationDateTime', 'datasetGroup_creationDateTime' - The creation date and time (in Unix time) of the dataset group.
--
-- 'datasetGroupArn', 'datasetGroup_datasetGroupArn' - The Amazon Resource Name (ARN) of the dataset group.
--
-- 'roleArn', 'datasetGroup_roleArn' - The ARN of the IAM role that has permissions to create the dataset
-- group.
newDatasetGroup ::
  DatasetGroup
newDatasetGroup :: DatasetGroup
newDatasetGroup =
  DatasetGroup' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> DatasetGroup
DatasetGroup'
    { $sel:failureReason:DatasetGroup' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DatasetGroup' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKeyArn:DatasetGroup' :: Maybe Text
kmsKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:DatasetGroup' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DatasetGroup' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:DatasetGroup' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetGroupArn:DatasetGroup' :: Maybe Text
datasetGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DatasetGroup' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | If creating a dataset group fails, provides the reason why.
datasetGroup_failureReason :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_failureReason :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_failureReason = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DatasetGroup' :: DatasetGroup -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:failureReason:DatasetGroup' :: Maybe Text
failureReason = Maybe Text
a} :: DatasetGroup)

-- | The current status of the dataset group.
--
-- A dataset group can be in one of the following states:
--
-- -   CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
--
-- -   DELETE PENDING
datasetGroup_status :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_status :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_status = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
status :: Maybe Text
$sel:status:DatasetGroup' :: DatasetGroup -> Maybe Text
status} -> Maybe Text
status) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:status:DatasetGroup' :: Maybe Text
status = Maybe Text
a} :: DatasetGroup)

-- | The Amazon Resource Name (ARN) of the Key Management Service (KMS) key
-- used to encrypt the datasets.
datasetGroup_kmsKeyArn :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_kmsKeyArn :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_kmsKeyArn = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
kmsKeyArn :: Maybe Text
$sel:kmsKeyArn:DatasetGroup' :: DatasetGroup -> Maybe Text
kmsKeyArn} -> Maybe Text
kmsKeyArn) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:kmsKeyArn:DatasetGroup' :: Maybe Text
kmsKeyArn = Maybe Text
a} :: DatasetGroup)

-- | The last update date and time (in Unix time) of the dataset group.
datasetGroup_lastUpdatedDateTime :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.UTCTime)
datasetGroup_lastUpdatedDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetGroup -> f DatasetGroup
datasetGroup_lastUpdatedDateTime = (DatasetGroup -> Maybe POSIX)
-> (DatasetGroup -> Maybe POSIX -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:DatasetGroup' :: DatasetGroup -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe POSIX
a -> DatasetGroup
s {$sel:lastUpdatedDateTime:DatasetGroup' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: DatasetGroup) ((Maybe POSIX -> f (Maybe POSIX))
 -> DatasetGroup -> f DatasetGroup)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetGroup
-> f DatasetGroup
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 name of the dataset group.
datasetGroup_name :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_name :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_name = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
name :: Maybe Text
$sel:name:DatasetGroup' :: DatasetGroup -> Maybe Text
name} -> Maybe Text
name) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:name:DatasetGroup' :: Maybe Text
name = Maybe Text
a} :: DatasetGroup)

-- | The creation date and time (in Unix time) of the dataset group.
datasetGroup_creationDateTime :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.UTCTime)
datasetGroup_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetGroup -> f DatasetGroup
datasetGroup_creationDateTime = (DatasetGroup -> Maybe POSIX)
-> (DatasetGroup -> Maybe POSIX -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DatasetGroup' :: DatasetGroup -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe POSIX
a -> DatasetGroup
s {$sel:creationDateTime:DatasetGroup' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DatasetGroup) ((Maybe POSIX -> f (Maybe POSIX))
 -> DatasetGroup -> f DatasetGroup)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetGroup
-> f DatasetGroup
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 Amazon Resource Name (ARN) of the dataset group.
datasetGroup_datasetGroupArn :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_datasetGroupArn :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_datasetGroupArn = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:DatasetGroup' :: DatasetGroup -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:datasetGroupArn:DatasetGroup' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: DatasetGroup)

-- | The ARN of the IAM role that has permissions to create the dataset
-- group.
datasetGroup_roleArn :: Lens.Lens' DatasetGroup (Prelude.Maybe Prelude.Text)
datasetGroup_roleArn :: (Maybe Text -> f (Maybe Text)) -> DatasetGroup -> f DatasetGroup
datasetGroup_roleArn = (DatasetGroup -> Maybe Text)
-> (DatasetGroup -> Maybe Text -> DatasetGroup)
-> Lens DatasetGroup DatasetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetGroup' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DatasetGroup' :: DatasetGroup -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DatasetGroup
s@DatasetGroup' {} Maybe Text
a -> DatasetGroup
s {$sel:roleArn:DatasetGroup' :: Maybe Text
roleArn = Maybe Text
a} :: DatasetGroup)

instance Core.FromJSON DatasetGroup where
  parseJSON :: Value -> Parser DatasetGroup
parseJSON =
    String
-> (Object -> Parser DatasetGroup) -> Value -> Parser DatasetGroup
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DatasetGroup"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> DatasetGroup
DatasetGroup'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> DatasetGroup)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> DatasetGroup)
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
"failureReason")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> DatasetGroup)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> DatasetGroup)
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
"status")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> DatasetGroup)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> DatasetGroup)
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
"kmsKeyArn")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> DatasetGroup)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX -> Maybe Text -> Maybe Text -> DatasetGroup)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdatedDateTime")
            Parser
  (Maybe Text
   -> Maybe POSIX -> Maybe Text -> Maybe Text -> DatasetGroup)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe Text -> Maybe Text -> DatasetGroup)
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
"name")
            Parser (Maybe POSIX -> Maybe Text -> Maybe Text -> DatasetGroup)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> Maybe Text -> DatasetGroup)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"creationDateTime")
            Parser (Maybe Text -> Maybe Text -> DatasetGroup)
-> Parser (Maybe Text) -> Parser (Maybe Text -> DatasetGroup)
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
"datasetGroupArn")
            Parser (Maybe Text -> DatasetGroup)
-> Parser (Maybe Text) -> Parser DatasetGroup
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
"roleArn")
      )

instance Prelude.Hashable DatasetGroup

instance Prelude.NFData DatasetGroup