{-# 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.Forecast.DescribeDatasetGroup
-- 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)
--
-- Describes a dataset group created using the CreateDatasetGroup
-- operation.
--
-- In addition to listing the parameters provided in the
-- @CreateDatasetGroup@ request, this operation includes the following
-- properties:
--
-- -   @DatasetArns@ - The datasets belonging to the group.
--
-- -   @CreationTime@
--
-- -   @LastModificationTime@
--
-- -   @Status@
module Amazonka.Forecast.DescribeDatasetGroup
  ( -- * Creating a Request
    DescribeDatasetGroup (..),
    newDescribeDatasetGroup,

    -- * Request Lenses
    describeDatasetGroup_datasetGroupArn,

    -- * Destructuring the Response
    DescribeDatasetGroupResponse (..),
    newDescribeDatasetGroupResponse,

    -- * Response Lenses
    describeDatasetGroupResponse_creationTime,
    describeDatasetGroupResponse_datasetArns,
    describeDatasetGroupResponse_status,
    describeDatasetGroupResponse_domain,
    describeDatasetGroupResponse_datasetGroupName,
    describeDatasetGroupResponse_datasetGroupArn,
    describeDatasetGroupResponse_lastModificationTime,
    describeDatasetGroupResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Forecast.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:/ 'newDescribeDatasetGroup' smart constructor.
data DescribeDatasetGroup = DescribeDatasetGroup'
  { -- | The Amazon Resource Name (ARN) of the dataset group.
    DescribeDatasetGroup -> Text
datasetGroupArn :: Prelude.Text
  }
  deriving (DescribeDatasetGroup -> DescribeDatasetGroup -> Bool
(DescribeDatasetGroup -> DescribeDatasetGroup -> Bool)
-> (DescribeDatasetGroup -> DescribeDatasetGroup -> Bool)
-> Eq DescribeDatasetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDatasetGroup -> DescribeDatasetGroup -> Bool
$c/= :: DescribeDatasetGroup -> DescribeDatasetGroup -> Bool
== :: DescribeDatasetGroup -> DescribeDatasetGroup -> Bool
$c== :: DescribeDatasetGroup -> DescribeDatasetGroup -> Bool
Prelude.Eq, ReadPrec [DescribeDatasetGroup]
ReadPrec DescribeDatasetGroup
Int -> ReadS DescribeDatasetGroup
ReadS [DescribeDatasetGroup]
(Int -> ReadS DescribeDatasetGroup)
-> ReadS [DescribeDatasetGroup]
-> ReadPrec DescribeDatasetGroup
-> ReadPrec [DescribeDatasetGroup]
-> Read DescribeDatasetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDatasetGroup]
$creadListPrec :: ReadPrec [DescribeDatasetGroup]
readPrec :: ReadPrec DescribeDatasetGroup
$creadPrec :: ReadPrec DescribeDatasetGroup
readList :: ReadS [DescribeDatasetGroup]
$creadList :: ReadS [DescribeDatasetGroup]
readsPrec :: Int -> ReadS DescribeDatasetGroup
$creadsPrec :: Int -> ReadS DescribeDatasetGroup
Prelude.Read, Int -> DescribeDatasetGroup -> ShowS
[DescribeDatasetGroup] -> ShowS
DescribeDatasetGroup -> String
(Int -> DescribeDatasetGroup -> ShowS)
-> (DescribeDatasetGroup -> String)
-> ([DescribeDatasetGroup] -> ShowS)
-> Show DescribeDatasetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDatasetGroup] -> ShowS
$cshowList :: [DescribeDatasetGroup] -> ShowS
show :: DescribeDatasetGroup -> String
$cshow :: DescribeDatasetGroup -> String
showsPrec :: Int -> DescribeDatasetGroup -> ShowS
$cshowsPrec :: Int -> DescribeDatasetGroup -> ShowS
Prelude.Show, (forall x. DescribeDatasetGroup -> Rep DescribeDatasetGroup x)
-> (forall x. Rep DescribeDatasetGroup x -> DescribeDatasetGroup)
-> Generic DescribeDatasetGroup
forall x. Rep DescribeDatasetGroup x -> DescribeDatasetGroup
forall x. DescribeDatasetGroup -> Rep DescribeDatasetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDatasetGroup x -> DescribeDatasetGroup
$cfrom :: forall x. DescribeDatasetGroup -> Rep DescribeDatasetGroup x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDatasetGroup' 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:
--
-- 'datasetGroupArn', 'describeDatasetGroup_datasetGroupArn' - The Amazon Resource Name (ARN) of the dataset group.
newDescribeDatasetGroup ::
  -- | 'datasetGroupArn'
  Prelude.Text ->
  DescribeDatasetGroup
newDescribeDatasetGroup :: Text -> DescribeDatasetGroup
newDescribeDatasetGroup Text
pDatasetGroupArn_ =
  DescribeDatasetGroup' :: Text -> DescribeDatasetGroup
DescribeDatasetGroup'
    { $sel:datasetGroupArn:DescribeDatasetGroup' :: Text
datasetGroupArn =
        Text
pDatasetGroupArn_
    }

-- | The Amazon Resource Name (ARN) of the dataset group.
describeDatasetGroup_datasetGroupArn :: Lens.Lens' DescribeDatasetGroup Prelude.Text
describeDatasetGroup_datasetGroupArn :: (Text -> f Text) -> DescribeDatasetGroup -> f DescribeDatasetGroup
describeDatasetGroup_datasetGroupArn = (DescribeDatasetGroup -> Text)
-> (DescribeDatasetGroup -> Text -> DescribeDatasetGroup)
-> Lens DescribeDatasetGroup DescribeDatasetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroup' {Text
datasetGroupArn :: Text
$sel:datasetGroupArn:DescribeDatasetGroup' :: DescribeDatasetGroup -> Text
datasetGroupArn} -> Text
datasetGroupArn) (\s :: DescribeDatasetGroup
s@DescribeDatasetGroup' {} Text
a -> DescribeDatasetGroup
s {$sel:datasetGroupArn:DescribeDatasetGroup' :: Text
datasetGroupArn = Text
a} :: DescribeDatasetGroup)

instance Core.AWSRequest DescribeDatasetGroup where
  type
    AWSResponse DescribeDatasetGroup =
      DescribeDatasetGroupResponse
  request :: DescribeDatasetGroup -> Request DescribeDatasetGroup
request = Service -> DescribeDatasetGroup -> Request DescribeDatasetGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeDatasetGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDatasetGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeDatasetGroup))
-> Logger
-> Service
-> Proxy DescribeDatasetGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDatasetGroup)))
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 [Text]
-> Maybe Text
-> Maybe Domain
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Int
-> DescribeDatasetGroupResponse
DescribeDatasetGroupResponse'
            (Maybe POSIX
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Domain
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Int
 -> DescribeDatasetGroupResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Domain
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Int
      -> DescribeDatasetGroupResponse)
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
"CreationTime")
            Either
  String
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Domain
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Int
   -> DescribeDatasetGroupResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Domain
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Int
      -> DescribeDatasetGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DatasetArns" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Domain
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Int
   -> DescribeDatasetGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Domain
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Int
      -> DescribeDatasetGroupResponse)
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
"Status")
            Either
  String
  (Maybe Domain
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Int
   -> DescribeDatasetGroupResponse)
-> Either String (Maybe Domain)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Int
      -> DescribeDatasetGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Domain)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Domain")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Int
   -> DescribeDatasetGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Maybe POSIX -> Int -> DescribeDatasetGroupResponse)
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
"DatasetGroupName")
            Either
  String
  (Maybe Text -> Maybe POSIX -> Int -> DescribeDatasetGroupResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe POSIX -> Int -> DescribeDatasetGroupResponse)
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
"DatasetGroupArn")
            Either String (Maybe POSIX -> Int -> DescribeDatasetGroupResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> DescribeDatasetGroupResponse)
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
"LastModificationTime")
            Either String (Int -> DescribeDatasetGroupResponse)
-> Either String Int -> Either String DescribeDatasetGroupResponse
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))
      )

instance Prelude.Hashable DescribeDatasetGroup

instance Prelude.NFData DescribeDatasetGroup

instance Core.ToHeaders DescribeDatasetGroup where
  toHeaders :: DescribeDatasetGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeDatasetGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonForecast.DescribeDatasetGroup" ::
                          Prelude.ByteString
                      ),
            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.ToJSON DescribeDatasetGroup where
  toJSON :: DescribeDatasetGroup -> Value
toJSON DescribeDatasetGroup' {Text
datasetGroupArn :: Text
$sel:datasetGroupArn:DescribeDatasetGroup' :: DescribeDatasetGroup -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"DatasetGroupArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetGroupArn)
          ]
      )

instance Core.ToPath DescribeDatasetGroup where
  toPath :: DescribeDatasetGroup -> ByteString
toPath = ByteString -> DescribeDatasetGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newDescribeDatasetGroupResponse' smart constructor.
data DescribeDatasetGroupResponse = DescribeDatasetGroupResponse'
  { -- | When the dataset group was created.
    DescribeDatasetGroupResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | An array of Amazon Resource Names (ARNs) of the datasets contained in
    -- the dataset group.
    DescribeDatasetGroupResponse -> Maybe [Text]
datasetArns :: Prelude.Maybe [Prelude.Text],
    -- | The status of the dataset group. States include:
    --
    -- -   @ACTIVE@
    --
    -- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
    --
    -- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
    --
    -- -   @UPDATE_PENDING@, @UPDATE_IN_PROGRESS@, @UPDATE_FAILED@
    --
    -- The @UPDATE@ states apply when you call the UpdateDatasetGroup
    -- operation.
    --
    -- The @Status@ of the dataset group must be @ACTIVE@ before you can use
    -- the dataset group to create a predictor.
    DescribeDatasetGroupResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The domain associated with the dataset group.
    DescribeDatasetGroupResponse -> Maybe Domain
domain :: Prelude.Maybe Domain,
    -- | The name of the dataset group.
    DescribeDatasetGroupResponse -> Maybe Text
datasetGroupName :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the dataset group.
    DescribeDatasetGroupResponse -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
    -- | When the dataset group was created or last updated from a call to the
    -- UpdateDatasetGroup operation. While the dataset group is being updated,
    -- @LastModificationTime@ is the current time of the @DescribeDatasetGroup@
    -- call.
    DescribeDatasetGroupResponse -> Maybe POSIX
lastModificationTime :: Prelude.Maybe Core.POSIX,
    -- | The response's http status code.
    DescribeDatasetGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeDatasetGroupResponse
-> DescribeDatasetGroupResponse -> Bool
(DescribeDatasetGroupResponse
 -> DescribeDatasetGroupResponse -> Bool)
-> (DescribeDatasetGroupResponse
    -> DescribeDatasetGroupResponse -> Bool)
-> Eq DescribeDatasetGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDatasetGroupResponse
-> DescribeDatasetGroupResponse -> Bool
$c/= :: DescribeDatasetGroupResponse
-> DescribeDatasetGroupResponse -> Bool
== :: DescribeDatasetGroupResponse
-> DescribeDatasetGroupResponse -> Bool
$c== :: DescribeDatasetGroupResponse
-> DescribeDatasetGroupResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDatasetGroupResponse]
ReadPrec DescribeDatasetGroupResponse
Int -> ReadS DescribeDatasetGroupResponse
ReadS [DescribeDatasetGroupResponse]
(Int -> ReadS DescribeDatasetGroupResponse)
-> ReadS [DescribeDatasetGroupResponse]
-> ReadPrec DescribeDatasetGroupResponse
-> ReadPrec [DescribeDatasetGroupResponse]
-> Read DescribeDatasetGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDatasetGroupResponse]
$creadListPrec :: ReadPrec [DescribeDatasetGroupResponse]
readPrec :: ReadPrec DescribeDatasetGroupResponse
$creadPrec :: ReadPrec DescribeDatasetGroupResponse
readList :: ReadS [DescribeDatasetGroupResponse]
$creadList :: ReadS [DescribeDatasetGroupResponse]
readsPrec :: Int -> ReadS DescribeDatasetGroupResponse
$creadsPrec :: Int -> ReadS DescribeDatasetGroupResponse
Prelude.Read, Int -> DescribeDatasetGroupResponse -> ShowS
[DescribeDatasetGroupResponse] -> ShowS
DescribeDatasetGroupResponse -> String
(Int -> DescribeDatasetGroupResponse -> ShowS)
-> (DescribeDatasetGroupResponse -> String)
-> ([DescribeDatasetGroupResponse] -> ShowS)
-> Show DescribeDatasetGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDatasetGroupResponse] -> ShowS
$cshowList :: [DescribeDatasetGroupResponse] -> ShowS
show :: DescribeDatasetGroupResponse -> String
$cshow :: DescribeDatasetGroupResponse -> String
showsPrec :: Int -> DescribeDatasetGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeDatasetGroupResponse -> ShowS
Prelude.Show, (forall x.
 DescribeDatasetGroupResponse -> Rep DescribeDatasetGroupResponse x)
-> (forall x.
    Rep DescribeDatasetGroupResponse x -> DescribeDatasetGroupResponse)
-> Generic DescribeDatasetGroupResponse
forall x.
Rep DescribeDatasetGroupResponse x -> DescribeDatasetGroupResponse
forall x.
DescribeDatasetGroupResponse -> Rep DescribeDatasetGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDatasetGroupResponse x -> DescribeDatasetGroupResponse
$cfrom :: forall x.
DescribeDatasetGroupResponse -> Rep DescribeDatasetGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDatasetGroupResponse' 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:
--
-- 'creationTime', 'describeDatasetGroupResponse_creationTime' - When the dataset group was created.
--
-- 'datasetArns', 'describeDatasetGroupResponse_datasetArns' - An array of Amazon Resource Names (ARNs) of the datasets contained in
-- the dataset group.
--
-- 'status', 'describeDatasetGroupResponse_status' - The status of the dataset group. States include:
--
-- -   @ACTIVE@
--
-- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
--
-- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
--
-- -   @UPDATE_PENDING@, @UPDATE_IN_PROGRESS@, @UPDATE_FAILED@
--
-- The @UPDATE@ states apply when you call the UpdateDatasetGroup
-- operation.
--
-- The @Status@ of the dataset group must be @ACTIVE@ before you can use
-- the dataset group to create a predictor.
--
-- 'domain', 'describeDatasetGroupResponse_domain' - The domain associated with the dataset group.
--
-- 'datasetGroupName', 'describeDatasetGroupResponse_datasetGroupName' - The name of the dataset group.
--
-- 'datasetGroupArn', 'describeDatasetGroupResponse_datasetGroupArn' - The ARN of the dataset group.
--
-- 'lastModificationTime', 'describeDatasetGroupResponse_lastModificationTime' - When the dataset group was created or last updated from a call to the
-- UpdateDatasetGroup operation. While the dataset group is being updated,
-- @LastModificationTime@ is the current time of the @DescribeDatasetGroup@
-- call.
--
-- 'httpStatus', 'describeDatasetGroupResponse_httpStatus' - The response's http status code.
newDescribeDatasetGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeDatasetGroupResponse
newDescribeDatasetGroupResponse :: Int -> DescribeDatasetGroupResponse
newDescribeDatasetGroupResponse Int
pHttpStatus_ =
  DescribeDatasetGroupResponse' :: Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Domain
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Int
-> DescribeDatasetGroupResponse
DescribeDatasetGroupResponse'
    { $sel:creationTime:DescribeDatasetGroupResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetArns:DescribeDatasetGroupResponse' :: Maybe [Text]
datasetArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DescribeDatasetGroupResponse' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domain:DescribeDatasetGroupResponse' :: Maybe Domain
domain = Maybe Domain
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetGroupName:DescribeDatasetGroupResponse' :: Maybe Text
datasetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetGroupArn:DescribeDatasetGroupResponse' :: Maybe Text
datasetGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModificationTime:DescribeDatasetGroupResponse' :: Maybe POSIX
lastModificationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeDatasetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | When the dataset group was created.
describeDatasetGroupResponse_creationTime :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Prelude.UTCTime)
describeDatasetGroupResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_creationTime = (DescribeDatasetGroupResponse -> Maybe POSIX)
-> (DescribeDatasetGroupResponse
    -> Maybe POSIX -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe POSIX
a -> DescribeDatasetGroupResponse
s {$sel:creationTime:DescribeDatasetGroupResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeDatasetGroupResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDatasetGroupResponse
-> f DescribeDatasetGroupResponse
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

-- | An array of Amazon Resource Names (ARNs) of the datasets contained in
-- the dataset group.
describeDatasetGroupResponse_datasetArns :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe [Prelude.Text])
describeDatasetGroupResponse_datasetArns :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_datasetArns = (DescribeDatasetGroupResponse -> Maybe [Text])
-> (DescribeDatasetGroupResponse
    -> Maybe [Text] -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe [Text]
datasetArns :: Maybe [Text]
$sel:datasetArns:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe [Text]
datasetArns} -> Maybe [Text]
datasetArns) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe [Text]
a -> DescribeDatasetGroupResponse
s {$sel:datasetArns:DescribeDatasetGroupResponse' :: Maybe [Text]
datasetArns = Maybe [Text]
a} :: DescribeDatasetGroupResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDatasetGroupResponse
-> f DescribeDatasetGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The status of the dataset group. States include:
--
-- -   @ACTIVE@
--
-- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
--
-- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
--
-- -   @UPDATE_PENDING@, @UPDATE_IN_PROGRESS@, @UPDATE_FAILED@
--
-- The @UPDATE@ states apply when you call the UpdateDatasetGroup
-- operation.
--
-- The @Status@ of the dataset group must be @ACTIVE@ before you can use
-- the dataset group to create a predictor.
describeDatasetGroupResponse_status :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Prelude.Text)
describeDatasetGroupResponse_status :: (Maybe Text -> f (Maybe Text))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_status = (DescribeDatasetGroupResponse -> Maybe Text)
-> (DescribeDatasetGroupResponse
    -> Maybe Text -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe Text
status :: Maybe Text
$sel:status:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe Text
a -> DescribeDatasetGroupResponse
s {$sel:status:DescribeDatasetGroupResponse' :: Maybe Text
status = Maybe Text
a} :: DescribeDatasetGroupResponse)

-- | The domain associated with the dataset group.
describeDatasetGroupResponse_domain :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Domain)
describeDatasetGroupResponse_domain :: (Maybe Domain -> f (Maybe Domain))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_domain = (DescribeDatasetGroupResponse -> Maybe Domain)
-> (DescribeDatasetGroupResponse
    -> Maybe Domain -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe Domain)
     (Maybe Domain)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe Domain
domain :: Maybe Domain
$sel:domain:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe Domain
domain} -> Maybe Domain
domain) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe Domain
a -> DescribeDatasetGroupResponse
s {$sel:domain:DescribeDatasetGroupResponse' :: Maybe Domain
domain = Maybe Domain
a} :: DescribeDatasetGroupResponse)

-- | The name of the dataset group.
describeDatasetGroupResponse_datasetGroupName :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Prelude.Text)
describeDatasetGroupResponse_datasetGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_datasetGroupName = (DescribeDatasetGroupResponse -> Maybe Text)
-> (DescribeDatasetGroupResponse
    -> Maybe Text -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe Text
datasetGroupName :: Maybe Text
$sel:datasetGroupName:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe Text
datasetGroupName} -> Maybe Text
datasetGroupName) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe Text
a -> DescribeDatasetGroupResponse
s {$sel:datasetGroupName:DescribeDatasetGroupResponse' :: Maybe Text
datasetGroupName = Maybe Text
a} :: DescribeDatasetGroupResponse)

-- | The ARN of the dataset group.
describeDatasetGroupResponse_datasetGroupArn :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Prelude.Text)
describeDatasetGroupResponse_datasetGroupArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_datasetGroupArn = (DescribeDatasetGroupResponse -> Maybe Text)
-> (DescribeDatasetGroupResponse
    -> Maybe Text -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe Text
a -> DescribeDatasetGroupResponse
s {$sel:datasetGroupArn:DescribeDatasetGroupResponse' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: DescribeDatasetGroupResponse)

-- | When the dataset group was created or last updated from a call to the
-- UpdateDatasetGroup operation. While the dataset group is being updated,
-- @LastModificationTime@ is the current time of the @DescribeDatasetGroup@
-- call.
describeDatasetGroupResponse_lastModificationTime :: Lens.Lens' DescribeDatasetGroupResponse (Prelude.Maybe Prelude.UTCTime)
describeDatasetGroupResponse_lastModificationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_lastModificationTime = (DescribeDatasetGroupResponse -> Maybe POSIX)
-> (DescribeDatasetGroupResponse
    -> Maybe POSIX -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse
     DescribeDatasetGroupResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Maybe POSIX
lastModificationTime :: Maybe POSIX
$sel:lastModificationTime:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Maybe POSIX
lastModificationTime} -> Maybe POSIX
lastModificationTime) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Maybe POSIX
a -> DescribeDatasetGroupResponse
s {$sel:lastModificationTime:DescribeDatasetGroupResponse' :: Maybe POSIX
lastModificationTime = Maybe POSIX
a} :: DescribeDatasetGroupResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDatasetGroupResponse
-> f DescribeDatasetGroupResponse
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 response's http status code.
describeDatasetGroupResponse_httpStatus :: Lens.Lens' DescribeDatasetGroupResponse Prelude.Int
describeDatasetGroupResponse_httpStatus :: (Int -> f Int)
-> DescribeDatasetGroupResponse -> f DescribeDatasetGroupResponse
describeDatasetGroupResponse_httpStatus = (DescribeDatasetGroupResponse -> Int)
-> (DescribeDatasetGroupResponse
    -> Int -> DescribeDatasetGroupResponse)
-> Lens
     DescribeDatasetGroupResponse DescribeDatasetGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDatasetGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDatasetGroupResponse' :: DescribeDatasetGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDatasetGroupResponse
s@DescribeDatasetGroupResponse' {} Int
a -> DescribeDatasetGroupResponse
s {$sel:httpStatus:DescribeDatasetGroupResponse' :: Int
httpStatus = Int
a} :: DescribeDatasetGroupResponse)

instance Prelude.NFData DescribeDatasetGroupResponse