{-# 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 #-}
module Amazonka.KinesisAnalytics.DiscoverInputSchema
(
DiscoverInputSchema (..),
newDiscoverInputSchema,
discoverInputSchema_inputStartingPositionConfiguration,
discoverInputSchema_inputProcessingConfiguration,
discoverInputSchema_s3Configuration,
discoverInputSchema_resourceARN,
discoverInputSchema_roleARN,
DiscoverInputSchemaResponse (..),
newDiscoverInputSchemaResponse,
discoverInputSchemaResponse_rawInputRecords,
discoverInputSchemaResponse_inputSchema,
discoverInputSchemaResponse_processedInputRecords,
discoverInputSchemaResponse_parsedInputRecords,
discoverInputSchemaResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalytics.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
data DiscoverInputSchema = DiscoverInputSchema'
{
DiscoverInputSchema -> Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration :: Prelude.Maybe InputStartingPositionConfiguration,
DiscoverInputSchema -> Maybe InputProcessingConfiguration
inputProcessingConfiguration :: Prelude.Maybe InputProcessingConfiguration,
DiscoverInputSchema -> Maybe S3Configuration
s3Configuration :: Prelude.Maybe S3Configuration,
DiscoverInputSchema -> Maybe Text
resourceARN :: Prelude.Maybe Prelude.Text,
DiscoverInputSchema -> Maybe Text
roleARN :: Prelude.Maybe Prelude.Text
}
deriving (DiscoverInputSchema -> DiscoverInputSchema -> Bool
(DiscoverInputSchema -> DiscoverInputSchema -> Bool)
-> (DiscoverInputSchema -> DiscoverInputSchema -> Bool)
-> Eq DiscoverInputSchema
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DiscoverInputSchema -> DiscoverInputSchema -> Bool
$c/= :: DiscoverInputSchema -> DiscoverInputSchema -> Bool
== :: DiscoverInputSchema -> DiscoverInputSchema -> Bool
$c== :: DiscoverInputSchema -> DiscoverInputSchema -> Bool
Prelude.Eq, ReadPrec [DiscoverInputSchema]
ReadPrec DiscoverInputSchema
Int -> ReadS DiscoverInputSchema
ReadS [DiscoverInputSchema]
(Int -> ReadS DiscoverInputSchema)
-> ReadS [DiscoverInputSchema]
-> ReadPrec DiscoverInputSchema
-> ReadPrec [DiscoverInputSchema]
-> Read DiscoverInputSchema
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DiscoverInputSchema]
$creadListPrec :: ReadPrec [DiscoverInputSchema]
readPrec :: ReadPrec DiscoverInputSchema
$creadPrec :: ReadPrec DiscoverInputSchema
readList :: ReadS [DiscoverInputSchema]
$creadList :: ReadS [DiscoverInputSchema]
readsPrec :: Int -> ReadS DiscoverInputSchema
$creadsPrec :: Int -> ReadS DiscoverInputSchema
Prelude.Read, Int -> DiscoverInputSchema -> ShowS
[DiscoverInputSchema] -> ShowS
DiscoverInputSchema -> String
(Int -> DiscoverInputSchema -> ShowS)
-> (DiscoverInputSchema -> String)
-> ([DiscoverInputSchema] -> ShowS)
-> Show DiscoverInputSchema
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DiscoverInputSchema] -> ShowS
$cshowList :: [DiscoverInputSchema] -> ShowS
show :: DiscoverInputSchema -> String
$cshow :: DiscoverInputSchema -> String
showsPrec :: Int -> DiscoverInputSchema -> ShowS
$cshowsPrec :: Int -> DiscoverInputSchema -> ShowS
Prelude.Show, (forall x. DiscoverInputSchema -> Rep DiscoverInputSchema x)
-> (forall x. Rep DiscoverInputSchema x -> DiscoverInputSchema)
-> Generic DiscoverInputSchema
forall x. Rep DiscoverInputSchema x -> DiscoverInputSchema
forall x. DiscoverInputSchema -> Rep DiscoverInputSchema x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DiscoverInputSchema x -> DiscoverInputSchema
$cfrom :: forall x. DiscoverInputSchema -> Rep DiscoverInputSchema x
Prelude.Generic)
newDiscoverInputSchema ::
DiscoverInputSchema
newDiscoverInputSchema :: DiscoverInputSchema
newDiscoverInputSchema =
DiscoverInputSchema' :: Maybe InputStartingPositionConfiguration
-> Maybe InputProcessingConfiguration
-> Maybe S3Configuration
-> Maybe Text
-> Maybe Text
-> DiscoverInputSchema
DiscoverInputSchema'
{ $sel:inputStartingPositionConfiguration:DiscoverInputSchema' :: Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration =
Maybe InputStartingPositionConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:inputProcessingConfiguration:DiscoverInputSchema' :: Maybe InputProcessingConfiguration
inputProcessingConfiguration = Maybe InputProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:s3Configuration:DiscoverInputSchema' :: Maybe S3Configuration
s3Configuration = Maybe S3Configuration
forall a. Maybe a
Prelude.Nothing,
$sel:resourceARN:DiscoverInputSchema' :: Maybe Text
resourceARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:DiscoverInputSchema' :: Maybe Text
roleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
discoverInputSchema_inputStartingPositionConfiguration :: Lens.Lens' DiscoverInputSchema (Prelude.Maybe InputStartingPositionConfiguration)
discoverInputSchema_inputStartingPositionConfiguration :: (Maybe InputStartingPositionConfiguration
-> f (Maybe InputStartingPositionConfiguration))
-> DiscoverInputSchema -> f DiscoverInputSchema
discoverInputSchema_inputStartingPositionConfiguration = (DiscoverInputSchema -> Maybe InputStartingPositionConfiguration)
-> (DiscoverInputSchema
-> Maybe InputStartingPositionConfiguration -> DiscoverInputSchema)
-> Lens
DiscoverInputSchema
DiscoverInputSchema
(Maybe InputStartingPositionConfiguration)
(Maybe InputStartingPositionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchema' {Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration :: Maybe InputStartingPositionConfiguration
$sel:inputStartingPositionConfiguration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration} -> Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration) (\s :: DiscoverInputSchema
s@DiscoverInputSchema' {} Maybe InputStartingPositionConfiguration
a -> DiscoverInputSchema
s {$sel:inputStartingPositionConfiguration:DiscoverInputSchema' :: Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration = Maybe InputStartingPositionConfiguration
a} :: DiscoverInputSchema)
discoverInputSchema_inputProcessingConfiguration :: Lens.Lens' DiscoverInputSchema (Prelude.Maybe InputProcessingConfiguration)
discoverInputSchema_inputProcessingConfiguration :: (Maybe InputProcessingConfiguration
-> f (Maybe InputProcessingConfiguration))
-> DiscoverInputSchema -> f DiscoverInputSchema
discoverInputSchema_inputProcessingConfiguration = (DiscoverInputSchema -> Maybe InputProcessingConfiguration)
-> (DiscoverInputSchema
-> Maybe InputProcessingConfiguration -> DiscoverInputSchema)
-> Lens
DiscoverInputSchema
DiscoverInputSchema
(Maybe InputProcessingConfiguration)
(Maybe InputProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchema' {Maybe InputProcessingConfiguration
inputProcessingConfiguration :: Maybe InputProcessingConfiguration
$sel:inputProcessingConfiguration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe InputProcessingConfiguration
inputProcessingConfiguration} -> Maybe InputProcessingConfiguration
inputProcessingConfiguration) (\s :: DiscoverInputSchema
s@DiscoverInputSchema' {} Maybe InputProcessingConfiguration
a -> DiscoverInputSchema
s {$sel:inputProcessingConfiguration:DiscoverInputSchema' :: Maybe InputProcessingConfiguration
inputProcessingConfiguration = Maybe InputProcessingConfiguration
a} :: DiscoverInputSchema)
discoverInputSchema_s3Configuration :: Lens.Lens' DiscoverInputSchema (Prelude.Maybe S3Configuration)
discoverInputSchema_s3Configuration :: (Maybe S3Configuration -> f (Maybe S3Configuration))
-> DiscoverInputSchema -> f DiscoverInputSchema
discoverInputSchema_s3Configuration = (DiscoverInputSchema -> Maybe S3Configuration)
-> (DiscoverInputSchema
-> Maybe S3Configuration -> DiscoverInputSchema)
-> Lens
DiscoverInputSchema
DiscoverInputSchema
(Maybe S3Configuration)
(Maybe S3Configuration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchema' {Maybe S3Configuration
s3Configuration :: Maybe S3Configuration
$sel:s3Configuration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe S3Configuration
s3Configuration} -> Maybe S3Configuration
s3Configuration) (\s :: DiscoverInputSchema
s@DiscoverInputSchema' {} Maybe S3Configuration
a -> DiscoverInputSchema
s {$sel:s3Configuration:DiscoverInputSchema' :: Maybe S3Configuration
s3Configuration = Maybe S3Configuration
a} :: DiscoverInputSchema)
discoverInputSchema_resourceARN :: Lens.Lens' DiscoverInputSchema (Prelude.Maybe Prelude.Text)
discoverInputSchema_resourceARN :: (Maybe Text -> f (Maybe Text))
-> DiscoverInputSchema -> f DiscoverInputSchema
discoverInputSchema_resourceARN = (DiscoverInputSchema -> Maybe Text)
-> (DiscoverInputSchema -> Maybe Text -> DiscoverInputSchema)
-> Lens
DiscoverInputSchema DiscoverInputSchema (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchema' {Maybe Text
resourceARN :: Maybe Text
$sel:resourceARN:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe Text
resourceARN} -> Maybe Text
resourceARN) (\s :: DiscoverInputSchema
s@DiscoverInputSchema' {} Maybe Text
a -> DiscoverInputSchema
s {$sel:resourceARN:DiscoverInputSchema' :: Maybe Text
resourceARN = Maybe Text
a} :: DiscoverInputSchema)
discoverInputSchema_roleARN :: Lens.Lens' DiscoverInputSchema (Prelude.Maybe Prelude.Text)
discoverInputSchema_roleARN :: (Maybe Text -> f (Maybe Text))
-> DiscoverInputSchema -> f DiscoverInputSchema
discoverInputSchema_roleARN = (DiscoverInputSchema -> Maybe Text)
-> (DiscoverInputSchema -> Maybe Text -> DiscoverInputSchema)
-> Lens
DiscoverInputSchema DiscoverInputSchema (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchema' {Maybe Text
roleARN :: Maybe Text
$sel:roleARN:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe Text
roleARN} -> Maybe Text
roleARN) (\s :: DiscoverInputSchema
s@DiscoverInputSchema' {} Maybe Text
a -> DiscoverInputSchema
s {$sel:roleARN:DiscoverInputSchema' :: Maybe Text
roleARN = Maybe Text
a} :: DiscoverInputSchema)
instance Core.AWSRequest DiscoverInputSchema where
type
AWSResponse DiscoverInputSchema =
DiscoverInputSchemaResponse
request :: DiscoverInputSchema -> Request DiscoverInputSchema
request = Service -> DiscoverInputSchema -> Request DiscoverInputSchema
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DiscoverInputSchema
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DiscoverInputSchema)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DiscoverInputSchema))
-> Logger
-> Service
-> Proxy DiscoverInputSchema
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DiscoverInputSchema)))
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 [Text]
-> Maybe SourceSchema
-> Maybe [Text]
-> Maybe [[Text]]
-> Int
-> DiscoverInputSchemaResponse
DiscoverInputSchemaResponse'
(Maybe [Text]
-> Maybe SourceSchema
-> Maybe [Text]
-> Maybe [[Text]]
-> Int
-> DiscoverInputSchemaResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe SourceSchema
-> Maybe [Text]
-> Maybe [[Text]]
-> Int
-> DiscoverInputSchemaResponse)
forall (f :: * -> *) a b. Functor 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
"RawInputRecords"
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 SourceSchema
-> Maybe [Text]
-> Maybe [[Text]]
-> Int
-> DiscoverInputSchemaResponse)
-> Either String (Maybe SourceSchema)
-> Either
String
(Maybe [Text]
-> Maybe [[Text]] -> Int -> DiscoverInputSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SourceSchema)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InputSchema")
Either
String
(Maybe [Text]
-> Maybe [[Text]] -> Int -> DiscoverInputSchemaResponse)
-> Either String (Maybe [Text])
-> Either
String (Maybe [[Text]] -> Int -> DiscoverInputSchemaResponse)
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
"ProcessedInputRecords"
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]] -> Int -> DiscoverInputSchemaResponse)
-> Either String (Maybe [[Text]])
-> Either String (Int -> DiscoverInputSchemaResponse)
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
"ParsedInputRecords"
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 (Int -> DiscoverInputSchemaResponse)
-> Either String Int -> Either String DiscoverInputSchemaResponse
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 DiscoverInputSchema
instance Prelude.NFData DiscoverInputSchema
instance Core.ToHeaders DiscoverInputSchema where
toHeaders :: DiscoverInputSchema -> ResponseHeaders
toHeaders =
ResponseHeaders -> DiscoverInputSchema -> 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
"KinesisAnalytics_20150814.DiscoverInputSchema" ::
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 DiscoverInputSchema where
toJSON :: DiscoverInputSchema -> Value
toJSON DiscoverInputSchema' {Maybe Text
Maybe InputProcessingConfiguration
Maybe InputStartingPositionConfiguration
Maybe S3Configuration
roleARN :: Maybe Text
resourceARN :: Maybe Text
s3Configuration :: Maybe S3Configuration
inputProcessingConfiguration :: Maybe InputProcessingConfiguration
inputStartingPositionConfiguration :: Maybe InputStartingPositionConfiguration
$sel:roleARN:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe Text
$sel:resourceARN:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe Text
$sel:s3Configuration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe S3Configuration
$sel:inputProcessingConfiguration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe InputProcessingConfiguration
$sel:inputStartingPositionConfiguration:DiscoverInputSchema' :: DiscoverInputSchema -> Maybe InputStartingPositionConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"InputStartingPositionConfiguration" Text -> InputStartingPositionConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(InputStartingPositionConfiguration -> Pair)
-> Maybe InputStartingPositionConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputStartingPositionConfiguration
inputStartingPositionConfiguration,
(Text
"InputProcessingConfiguration" Text -> InputProcessingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(InputProcessingConfiguration -> Pair)
-> Maybe InputProcessingConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputProcessingConfiguration
inputProcessingConfiguration,
(Text
"S3Configuration" Text -> S3Configuration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(S3Configuration -> Pair) -> Maybe S3Configuration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3Configuration
s3Configuration,
(Text
"ResourceARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
resourceARN,
(Text
"RoleARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roleARN
]
)
instance Core.ToPath DiscoverInputSchema where
toPath :: DiscoverInputSchema -> ByteString
toPath = ByteString -> DiscoverInputSchema -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DiscoverInputSchema where
toQuery :: DiscoverInputSchema -> QueryString
toQuery = QueryString -> DiscoverInputSchema -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DiscoverInputSchemaResponse = DiscoverInputSchemaResponse'
{
DiscoverInputSchemaResponse -> Maybe [Text]
rawInputRecords :: Prelude.Maybe [Prelude.Text],
DiscoverInputSchemaResponse -> Maybe SourceSchema
inputSchema :: Prelude.Maybe SourceSchema,
DiscoverInputSchemaResponse -> Maybe [Text]
processedInputRecords :: Prelude.Maybe [Prelude.Text],
DiscoverInputSchemaResponse -> Maybe [[Text]]
parsedInputRecords :: Prelude.Maybe [[Prelude.Text]],
DiscoverInputSchemaResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse -> Bool
(DiscoverInputSchemaResponse
-> DiscoverInputSchemaResponse -> Bool)
-> (DiscoverInputSchemaResponse
-> DiscoverInputSchemaResponse -> Bool)
-> Eq DiscoverInputSchemaResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse -> Bool
$c/= :: DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse -> Bool
== :: DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse -> Bool
$c== :: DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse -> Bool
Prelude.Eq, ReadPrec [DiscoverInputSchemaResponse]
ReadPrec DiscoverInputSchemaResponse
Int -> ReadS DiscoverInputSchemaResponse
ReadS [DiscoverInputSchemaResponse]
(Int -> ReadS DiscoverInputSchemaResponse)
-> ReadS [DiscoverInputSchemaResponse]
-> ReadPrec DiscoverInputSchemaResponse
-> ReadPrec [DiscoverInputSchemaResponse]
-> Read DiscoverInputSchemaResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DiscoverInputSchemaResponse]
$creadListPrec :: ReadPrec [DiscoverInputSchemaResponse]
readPrec :: ReadPrec DiscoverInputSchemaResponse
$creadPrec :: ReadPrec DiscoverInputSchemaResponse
readList :: ReadS [DiscoverInputSchemaResponse]
$creadList :: ReadS [DiscoverInputSchemaResponse]
readsPrec :: Int -> ReadS DiscoverInputSchemaResponse
$creadsPrec :: Int -> ReadS DiscoverInputSchemaResponse
Prelude.Read, Int -> DiscoverInputSchemaResponse -> ShowS
[DiscoverInputSchemaResponse] -> ShowS
DiscoverInputSchemaResponse -> String
(Int -> DiscoverInputSchemaResponse -> ShowS)
-> (DiscoverInputSchemaResponse -> String)
-> ([DiscoverInputSchemaResponse] -> ShowS)
-> Show DiscoverInputSchemaResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DiscoverInputSchemaResponse] -> ShowS
$cshowList :: [DiscoverInputSchemaResponse] -> ShowS
show :: DiscoverInputSchemaResponse -> String
$cshow :: DiscoverInputSchemaResponse -> String
showsPrec :: Int -> DiscoverInputSchemaResponse -> ShowS
$cshowsPrec :: Int -> DiscoverInputSchemaResponse -> ShowS
Prelude.Show, (forall x.
DiscoverInputSchemaResponse -> Rep DiscoverInputSchemaResponse x)
-> (forall x.
Rep DiscoverInputSchemaResponse x -> DiscoverInputSchemaResponse)
-> Generic DiscoverInputSchemaResponse
forall x.
Rep DiscoverInputSchemaResponse x -> DiscoverInputSchemaResponse
forall x.
DiscoverInputSchemaResponse -> Rep DiscoverInputSchemaResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DiscoverInputSchemaResponse x -> DiscoverInputSchemaResponse
$cfrom :: forall x.
DiscoverInputSchemaResponse -> Rep DiscoverInputSchemaResponse x
Prelude.Generic)
newDiscoverInputSchemaResponse ::
Prelude.Int ->
DiscoverInputSchemaResponse
newDiscoverInputSchemaResponse :: Int -> DiscoverInputSchemaResponse
newDiscoverInputSchemaResponse Int
pHttpStatus_ =
DiscoverInputSchemaResponse' :: Maybe [Text]
-> Maybe SourceSchema
-> Maybe [Text]
-> Maybe [[Text]]
-> Int
-> DiscoverInputSchemaResponse
DiscoverInputSchemaResponse'
{ $sel:rawInputRecords:DiscoverInputSchemaResponse' :: Maybe [Text]
rawInputRecords =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:inputSchema:DiscoverInputSchemaResponse' :: Maybe SourceSchema
inputSchema = Maybe SourceSchema
forall a. Maybe a
Prelude.Nothing,
$sel:processedInputRecords:DiscoverInputSchemaResponse' :: Maybe [Text]
processedInputRecords = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:parsedInputRecords:DiscoverInputSchemaResponse' :: Maybe [[Text]]
parsedInputRecords = Maybe [[Text]]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DiscoverInputSchemaResponse' :: Int
httpStatus = Int
pHttpStatus_
}
discoverInputSchemaResponse_rawInputRecords :: Lens.Lens' DiscoverInputSchemaResponse (Prelude.Maybe [Prelude.Text])
discoverInputSchemaResponse_rawInputRecords :: (Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse
discoverInputSchemaResponse_rawInputRecords = (DiscoverInputSchemaResponse -> Maybe [Text])
-> (DiscoverInputSchemaResponse
-> Maybe [Text] -> DiscoverInputSchemaResponse)
-> Lens
DiscoverInputSchemaResponse
DiscoverInputSchemaResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchemaResponse' {Maybe [Text]
rawInputRecords :: Maybe [Text]
$sel:rawInputRecords:DiscoverInputSchemaResponse' :: DiscoverInputSchemaResponse -> Maybe [Text]
rawInputRecords} -> Maybe [Text]
rawInputRecords) (\s :: DiscoverInputSchemaResponse
s@DiscoverInputSchemaResponse' {} Maybe [Text]
a -> DiscoverInputSchemaResponse
s {$sel:rawInputRecords:DiscoverInputSchemaResponse' :: Maybe [Text]
rawInputRecords = Maybe [Text]
a} :: DiscoverInputSchemaResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse
-> f DiscoverInputSchemaResponse
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
discoverInputSchemaResponse_inputSchema :: Lens.Lens' DiscoverInputSchemaResponse (Prelude.Maybe SourceSchema)
discoverInputSchemaResponse_inputSchema :: (Maybe SourceSchema -> f (Maybe SourceSchema))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse
discoverInputSchemaResponse_inputSchema = (DiscoverInputSchemaResponse -> Maybe SourceSchema)
-> (DiscoverInputSchemaResponse
-> Maybe SourceSchema -> DiscoverInputSchemaResponse)
-> Lens
DiscoverInputSchemaResponse
DiscoverInputSchemaResponse
(Maybe SourceSchema)
(Maybe SourceSchema)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchemaResponse' {Maybe SourceSchema
inputSchema :: Maybe SourceSchema
$sel:inputSchema:DiscoverInputSchemaResponse' :: DiscoverInputSchemaResponse -> Maybe SourceSchema
inputSchema} -> Maybe SourceSchema
inputSchema) (\s :: DiscoverInputSchemaResponse
s@DiscoverInputSchemaResponse' {} Maybe SourceSchema
a -> DiscoverInputSchemaResponse
s {$sel:inputSchema:DiscoverInputSchemaResponse' :: Maybe SourceSchema
inputSchema = Maybe SourceSchema
a} :: DiscoverInputSchemaResponse)
discoverInputSchemaResponse_processedInputRecords :: Lens.Lens' DiscoverInputSchemaResponse (Prelude.Maybe [Prelude.Text])
discoverInputSchemaResponse_processedInputRecords :: (Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse
discoverInputSchemaResponse_processedInputRecords = (DiscoverInputSchemaResponse -> Maybe [Text])
-> (DiscoverInputSchemaResponse
-> Maybe [Text] -> DiscoverInputSchemaResponse)
-> Lens
DiscoverInputSchemaResponse
DiscoverInputSchemaResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchemaResponse' {Maybe [Text]
processedInputRecords :: Maybe [Text]
$sel:processedInputRecords:DiscoverInputSchemaResponse' :: DiscoverInputSchemaResponse -> Maybe [Text]
processedInputRecords} -> Maybe [Text]
processedInputRecords) (\s :: DiscoverInputSchemaResponse
s@DiscoverInputSchemaResponse' {} Maybe [Text]
a -> DiscoverInputSchemaResponse
s {$sel:processedInputRecords:DiscoverInputSchemaResponse' :: Maybe [Text]
processedInputRecords = Maybe [Text]
a} :: DiscoverInputSchemaResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DiscoverInputSchemaResponse
-> f DiscoverInputSchemaResponse
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
discoverInputSchemaResponse_parsedInputRecords :: Lens.Lens' DiscoverInputSchemaResponse (Prelude.Maybe [[Prelude.Text]])
discoverInputSchemaResponse_parsedInputRecords :: (Maybe [[Text]] -> f (Maybe [[Text]]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse
discoverInputSchemaResponse_parsedInputRecords = (DiscoverInputSchemaResponse -> Maybe [[Text]])
-> (DiscoverInputSchemaResponse
-> Maybe [[Text]] -> DiscoverInputSchemaResponse)
-> Lens
DiscoverInputSchemaResponse
DiscoverInputSchemaResponse
(Maybe [[Text]])
(Maybe [[Text]])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchemaResponse' {Maybe [[Text]]
parsedInputRecords :: Maybe [[Text]]
$sel:parsedInputRecords:DiscoverInputSchemaResponse' :: DiscoverInputSchemaResponse -> Maybe [[Text]]
parsedInputRecords} -> Maybe [[Text]]
parsedInputRecords) (\s :: DiscoverInputSchemaResponse
s@DiscoverInputSchemaResponse' {} Maybe [[Text]]
a -> DiscoverInputSchemaResponse
s {$sel:parsedInputRecords:DiscoverInputSchemaResponse' :: Maybe [[Text]]
parsedInputRecords = Maybe [[Text]]
a} :: DiscoverInputSchemaResponse) ((Maybe [[Text]] -> f (Maybe [[Text]]))
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse)
-> ((Maybe [[Text]] -> f (Maybe [[Text]]))
-> Maybe [[Text]] -> f (Maybe [[Text]]))
-> (Maybe [[Text]] -> f (Maybe [[Text]]))
-> DiscoverInputSchemaResponse
-> f DiscoverInputSchemaResponse
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
discoverInputSchemaResponse_httpStatus :: Lens.Lens' DiscoverInputSchemaResponse Prelude.Int
discoverInputSchemaResponse_httpStatus :: (Int -> f Int)
-> DiscoverInputSchemaResponse -> f DiscoverInputSchemaResponse
discoverInputSchemaResponse_httpStatus = (DiscoverInputSchemaResponse -> Int)
-> (DiscoverInputSchemaResponse
-> Int -> DiscoverInputSchemaResponse)
-> Lens
DiscoverInputSchemaResponse DiscoverInputSchemaResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DiscoverInputSchemaResponse' {Int
httpStatus :: Int
$sel:httpStatus:DiscoverInputSchemaResponse' :: DiscoverInputSchemaResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DiscoverInputSchemaResponse
s@DiscoverInputSchemaResponse' {} Int
a -> DiscoverInputSchemaResponse
s {$sel:httpStatus:DiscoverInputSchemaResponse' :: Int
httpStatus = Int
a} :: DiscoverInputSchemaResponse)
instance Prelude.NFData DiscoverInputSchemaResponse