{-# 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.Discovery.StartContinuousExport
-- 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)
--
-- Start the continuous flow of agent\'s discovered data into Amazon
-- Athena.
module Amazonka.Discovery.StartContinuousExport
  ( -- * Creating a Request
    StartContinuousExport (..),
    newStartContinuousExport,

    -- * Destructuring the Response
    StartContinuousExportResponse (..),
    newStartContinuousExportResponse,

    -- * Response Lenses
    startContinuousExportResponse_startTime,
    startContinuousExportResponse_schemaStorageConfig,
    startContinuousExportResponse_dataSource,
    startContinuousExportResponse_s3Bucket,
    startContinuousExportResponse_exportId,
    startContinuousExportResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Discovery.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:/ 'newStartContinuousExport' smart constructor.
data StartContinuousExport = StartContinuousExport'
  {
  }
  deriving (StartContinuousExport -> StartContinuousExport -> Bool
(StartContinuousExport -> StartContinuousExport -> Bool)
-> (StartContinuousExport -> StartContinuousExport -> Bool)
-> Eq StartContinuousExport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartContinuousExport -> StartContinuousExport -> Bool
$c/= :: StartContinuousExport -> StartContinuousExport -> Bool
== :: StartContinuousExport -> StartContinuousExport -> Bool
$c== :: StartContinuousExport -> StartContinuousExport -> Bool
Prelude.Eq, ReadPrec [StartContinuousExport]
ReadPrec StartContinuousExport
Int -> ReadS StartContinuousExport
ReadS [StartContinuousExport]
(Int -> ReadS StartContinuousExport)
-> ReadS [StartContinuousExport]
-> ReadPrec StartContinuousExport
-> ReadPrec [StartContinuousExport]
-> Read StartContinuousExport
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartContinuousExport]
$creadListPrec :: ReadPrec [StartContinuousExport]
readPrec :: ReadPrec StartContinuousExport
$creadPrec :: ReadPrec StartContinuousExport
readList :: ReadS [StartContinuousExport]
$creadList :: ReadS [StartContinuousExport]
readsPrec :: Int -> ReadS StartContinuousExport
$creadsPrec :: Int -> ReadS StartContinuousExport
Prelude.Read, Int -> StartContinuousExport -> ShowS
[StartContinuousExport] -> ShowS
StartContinuousExport -> String
(Int -> StartContinuousExport -> ShowS)
-> (StartContinuousExport -> String)
-> ([StartContinuousExport] -> ShowS)
-> Show StartContinuousExport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartContinuousExport] -> ShowS
$cshowList :: [StartContinuousExport] -> ShowS
show :: StartContinuousExport -> String
$cshow :: StartContinuousExport -> String
showsPrec :: Int -> StartContinuousExport -> ShowS
$cshowsPrec :: Int -> StartContinuousExport -> ShowS
Prelude.Show, (forall x. StartContinuousExport -> Rep StartContinuousExport x)
-> (forall x. Rep StartContinuousExport x -> StartContinuousExport)
-> Generic StartContinuousExport
forall x. Rep StartContinuousExport x -> StartContinuousExport
forall x. StartContinuousExport -> Rep StartContinuousExport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartContinuousExport x -> StartContinuousExport
$cfrom :: forall x. StartContinuousExport -> Rep StartContinuousExport x
Prelude.Generic)

-- |
-- Create a value of 'StartContinuousExport' 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.
newStartContinuousExport ::
  StartContinuousExport
newStartContinuousExport :: StartContinuousExport
newStartContinuousExport = StartContinuousExport
StartContinuousExport'

instance Core.AWSRequest StartContinuousExport where
  type
    AWSResponse StartContinuousExport =
      StartContinuousExportResponse
  request :: StartContinuousExport -> Request StartContinuousExport
request = Service -> StartContinuousExport -> Request StartContinuousExport
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy StartContinuousExport
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartContinuousExport)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse StartContinuousExport))
-> Logger
-> Service
-> Proxy StartContinuousExport
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartContinuousExport)))
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 (HashMap Text Text)
-> Maybe DataSource
-> Maybe Text
-> Maybe Text
-> Int
-> StartContinuousExportResponse
StartContinuousExportResponse'
            (Maybe POSIX
 -> Maybe (HashMap Text Text)
 -> Maybe DataSource
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> StartContinuousExportResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe DataSource
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> StartContinuousExportResponse)
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
"startTime")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe DataSource
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> StartContinuousExportResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Maybe DataSource
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> StartContinuousExportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"schemaStorageConfig"
                            Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe DataSource
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> StartContinuousExportResponse)
-> Either String (Maybe DataSource)
-> Either
     String
     (Maybe Text -> Maybe Text -> Int -> StartContinuousExportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DataSource)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"dataSource")
            Either
  String
  (Maybe Text -> Maybe Text -> Int -> StartContinuousExportResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> StartContinuousExportResponse)
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
"s3Bucket")
            Either String (Maybe Text -> Int -> StartContinuousExportResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartContinuousExportResponse)
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
"exportId")
            Either String (Int -> StartContinuousExportResponse)
-> Either String Int -> Either String StartContinuousExportResponse
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 StartContinuousExport

instance Prelude.NFData StartContinuousExport

instance Core.ToHeaders StartContinuousExport where
  toHeaders :: StartContinuousExport -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StartContinuousExport -> 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
"AWSPoseidonService_V2015_11_01.StartContinuousExport" ::
                          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 StartContinuousExport where
  toJSON :: StartContinuousExport -> Value
toJSON = Value -> StartContinuousExport -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

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

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

-- | /See:/ 'newStartContinuousExportResponse' smart constructor.
data StartContinuousExportResponse = StartContinuousExportResponse'
  { -- | The timestamp representing when the continuous export was started.
    StartContinuousExportResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | A dictionary which describes how the data is stored.
    --
    -- -   @databaseName@ - the name of the Glue database used to store the
    --     schema.
    StartContinuousExportResponse -> Maybe (HashMap Text Text)
schemaStorageConfig :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The type of data collector used to gather this data (currently only
    -- offered for AGENT).
    StartContinuousExportResponse -> Maybe DataSource
dataSource :: Prelude.Maybe DataSource,
    -- | The name of the s3 bucket where the export data parquet files are
    -- stored.
    StartContinuousExportResponse -> Maybe Text
s3Bucket :: Prelude.Maybe Prelude.Text,
    -- | The unique ID assigned to this export.
    StartContinuousExportResponse -> Maybe Text
exportId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    StartContinuousExportResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartContinuousExportResponse
-> StartContinuousExportResponse -> Bool
(StartContinuousExportResponse
 -> StartContinuousExportResponse -> Bool)
-> (StartContinuousExportResponse
    -> StartContinuousExportResponse -> Bool)
-> Eq StartContinuousExportResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartContinuousExportResponse
-> StartContinuousExportResponse -> Bool
$c/= :: StartContinuousExportResponse
-> StartContinuousExportResponse -> Bool
== :: StartContinuousExportResponse
-> StartContinuousExportResponse -> Bool
$c== :: StartContinuousExportResponse
-> StartContinuousExportResponse -> Bool
Prelude.Eq, ReadPrec [StartContinuousExportResponse]
ReadPrec StartContinuousExportResponse
Int -> ReadS StartContinuousExportResponse
ReadS [StartContinuousExportResponse]
(Int -> ReadS StartContinuousExportResponse)
-> ReadS [StartContinuousExportResponse]
-> ReadPrec StartContinuousExportResponse
-> ReadPrec [StartContinuousExportResponse]
-> Read StartContinuousExportResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartContinuousExportResponse]
$creadListPrec :: ReadPrec [StartContinuousExportResponse]
readPrec :: ReadPrec StartContinuousExportResponse
$creadPrec :: ReadPrec StartContinuousExportResponse
readList :: ReadS [StartContinuousExportResponse]
$creadList :: ReadS [StartContinuousExportResponse]
readsPrec :: Int -> ReadS StartContinuousExportResponse
$creadsPrec :: Int -> ReadS StartContinuousExportResponse
Prelude.Read, Int -> StartContinuousExportResponse -> ShowS
[StartContinuousExportResponse] -> ShowS
StartContinuousExportResponse -> String
(Int -> StartContinuousExportResponse -> ShowS)
-> (StartContinuousExportResponse -> String)
-> ([StartContinuousExportResponse] -> ShowS)
-> Show StartContinuousExportResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartContinuousExportResponse] -> ShowS
$cshowList :: [StartContinuousExportResponse] -> ShowS
show :: StartContinuousExportResponse -> String
$cshow :: StartContinuousExportResponse -> String
showsPrec :: Int -> StartContinuousExportResponse -> ShowS
$cshowsPrec :: Int -> StartContinuousExportResponse -> ShowS
Prelude.Show, (forall x.
 StartContinuousExportResponse
 -> Rep StartContinuousExportResponse x)
-> (forall x.
    Rep StartContinuousExportResponse x
    -> StartContinuousExportResponse)
-> Generic StartContinuousExportResponse
forall x.
Rep StartContinuousExportResponse x
-> StartContinuousExportResponse
forall x.
StartContinuousExportResponse
-> Rep StartContinuousExportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartContinuousExportResponse x
-> StartContinuousExportResponse
$cfrom :: forall x.
StartContinuousExportResponse
-> Rep StartContinuousExportResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartContinuousExportResponse' 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:
--
-- 'startTime', 'startContinuousExportResponse_startTime' - The timestamp representing when the continuous export was started.
--
-- 'schemaStorageConfig', 'startContinuousExportResponse_schemaStorageConfig' - A dictionary which describes how the data is stored.
--
-- -   @databaseName@ - the name of the Glue database used to store the
--     schema.
--
-- 'dataSource', 'startContinuousExportResponse_dataSource' - The type of data collector used to gather this data (currently only
-- offered for AGENT).
--
-- 's3Bucket', 'startContinuousExportResponse_s3Bucket' - The name of the s3 bucket where the export data parquet files are
-- stored.
--
-- 'exportId', 'startContinuousExportResponse_exportId' - The unique ID assigned to this export.
--
-- 'httpStatus', 'startContinuousExportResponse_httpStatus' - The response's http status code.
newStartContinuousExportResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartContinuousExportResponse
newStartContinuousExportResponse :: Int -> StartContinuousExportResponse
newStartContinuousExportResponse Int
pHttpStatus_ =
  StartContinuousExportResponse' :: Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe DataSource
-> Maybe Text
-> Maybe Text
-> Int
-> StartContinuousExportResponse
StartContinuousExportResponse'
    { $sel:startTime:StartContinuousExportResponse' :: Maybe POSIX
startTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:schemaStorageConfig:StartContinuousExportResponse' :: Maybe (HashMap Text Text)
schemaStorageConfig = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSource:StartContinuousExportResponse' :: Maybe DataSource
dataSource = Maybe DataSource
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Bucket:StartContinuousExportResponse' :: Maybe Text
s3Bucket = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:exportId:StartContinuousExportResponse' :: Maybe Text
exportId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StartContinuousExportResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The timestamp representing when the continuous export was started.
startContinuousExportResponse_startTime :: Lens.Lens' StartContinuousExportResponse (Prelude.Maybe Prelude.UTCTime)
startContinuousExportResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StartContinuousExportResponse -> f StartContinuousExportResponse
startContinuousExportResponse_startTime = (StartContinuousExportResponse -> Maybe POSIX)
-> (StartContinuousExportResponse
    -> Maybe POSIX -> StartContinuousExportResponse)
-> Lens
     StartContinuousExportResponse
     StartContinuousExportResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartContinuousExportResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:StartContinuousExportResponse' :: StartContinuousExportResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: StartContinuousExportResponse
s@StartContinuousExportResponse' {} Maybe POSIX
a -> StartContinuousExportResponse
s {$sel:startTime:StartContinuousExportResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: StartContinuousExportResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> StartContinuousExportResponse
 -> f StartContinuousExportResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StartContinuousExportResponse
-> f StartContinuousExportResponse
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

-- | A dictionary which describes how the data is stored.
--
-- -   @databaseName@ - the name of the Glue database used to store the
--     schema.
startContinuousExportResponse_schemaStorageConfig :: Lens.Lens' StartContinuousExportResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startContinuousExportResponse_schemaStorageConfig :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartContinuousExportResponse -> f StartContinuousExportResponse
startContinuousExportResponse_schemaStorageConfig = (StartContinuousExportResponse -> Maybe (HashMap Text Text))
-> (StartContinuousExportResponse
    -> Maybe (HashMap Text Text) -> StartContinuousExportResponse)
-> Lens
     StartContinuousExportResponse
     StartContinuousExportResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartContinuousExportResponse' {Maybe (HashMap Text Text)
schemaStorageConfig :: Maybe (HashMap Text Text)
$sel:schemaStorageConfig:StartContinuousExportResponse' :: StartContinuousExportResponse -> Maybe (HashMap Text Text)
schemaStorageConfig} -> Maybe (HashMap Text Text)
schemaStorageConfig) (\s :: StartContinuousExportResponse
s@StartContinuousExportResponse' {} Maybe (HashMap Text Text)
a -> StartContinuousExportResponse
s {$sel:schemaStorageConfig:StartContinuousExportResponse' :: Maybe (HashMap Text Text)
schemaStorageConfig = Maybe (HashMap Text Text)
a} :: StartContinuousExportResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> StartContinuousExportResponse
 -> f StartContinuousExportResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartContinuousExportResponse
-> f StartContinuousExportResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The type of data collector used to gather this data (currently only
-- offered for AGENT).
startContinuousExportResponse_dataSource :: Lens.Lens' StartContinuousExportResponse (Prelude.Maybe DataSource)
startContinuousExportResponse_dataSource :: (Maybe DataSource -> f (Maybe DataSource))
-> StartContinuousExportResponse -> f StartContinuousExportResponse
startContinuousExportResponse_dataSource = (StartContinuousExportResponse -> Maybe DataSource)
-> (StartContinuousExportResponse
    -> Maybe DataSource -> StartContinuousExportResponse)
-> Lens
     StartContinuousExportResponse
     StartContinuousExportResponse
     (Maybe DataSource)
     (Maybe DataSource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartContinuousExportResponse' {Maybe DataSource
dataSource :: Maybe DataSource
$sel:dataSource:StartContinuousExportResponse' :: StartContinuousExportResponse -> Maybe DataSource
dataSource} -> Maybe DataSource
dataSource) (\s :: StartContinuousExportResponse
s@StartContinuousExportResponse' {} Maybe DataSource
a -> StartContinuousExportResponse
s {$sel:dataSource:StartContinuousExportResponse' :: Maybe DataSource
dataSource = Maybe DataSource
a} :: StartContinuousExportResponse)

-- | The name of the s3 bucket where the export data parquet files are
-- stored.
startContinuousExportResponse_s3Bucket :: Lens.Lens' StartContinuousExportResponse (Prelude.Maybe Prelude.Text)
startContinuousExportResponse_s3Bucket :: (Maybe Text -> f (Maybe Text))
-> StartContinuousExportResponse -> f StartContinuousExportResponse
startContinuousExportResponse_s3Bucket = (StartContinuousExportResponse -> Maybe Text)
-> (StartContinuousExportResponse
    -> Maybe Text -> StartContinuousExportResponse)
-> Lens
     StartContinuousExportResponse
     StartContinuousExportResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartContinuousExportResponse' {Maybe Text
s3Bucket :: Maybe Text
$sel:s3Bucket:StartContinuousExportResponse' :: StartContinuousExportResponse -> Maybe Text
s3Bucket} -> Maybe Text
s3Bucket) (\s :: StartContinuousExportResponse
s@StartContinuousExportResponse' {} Maybe Text
a -> StartContinuousExportResponse
s {$sel:s3Bucket:StartContinuousExportResponse' :: Maybe Text
s3Bucket = Maybe Text
a} :: StartContinuousExportResponse)

-- | The unique ID assigned to this export.
startContinuousExportResponse_exportId :: Lens.Lens' StartContinuousExportResponse (Prelude.Maybe Prelude.Text)
startContinuousExportResponse_exportId :: (Maybe Text -> f (Maybe Text))
-> StartContinuousExportResponse -> f StartContinuousExportResponse
startContinuousExportResponse_exportId = (StartContinuousExportResponse -> Maybe Text)
-> (StartContinuousExportResponse
    -> Maybe Text -> StartContinuousExportResponse)
-> Lens
     StartContinuousExportResponse
     StartContinuousExportResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartContinuousExportResponse' {Maybe Text
exportId :: Maybe Text
$sel:exportId:StartContinuousExportResponse' :: StartContinuousExportResponse -> Maybe Text
exportId} -> Maybe Text
exportId) (\s :: StartContinuousExportResponse
s@StartContinuousExportResponse' {} Maybe Text
a -> StartContinuousExportResponse
s {$sel:exportId:StartContinuousExportResponse' :: Maybe Text
exportId = Maybe Text
a} :: StartContinuousExportResponse)

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

instance Prelude.NFData StartContinuousExportResponse