amazonka-kinesis-analytics-1.4.5: Amazon Kinesis Analytics SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.KinesisAnalytics.DiscoverInputSchema

Contents

Description

Infers a schema by evaluating sample records on the specified streaming source (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). In the response, the operation returns the inferred schema and also the sample records that the operation used to infer the schema.

You can use the inferred schema when configuring a streaming source for your application. For conceptual information, see Configuring Application Input . Note that when you create an application using the Amazon Kinesis Analytics console, the console uses this operation to infer a schema and show it in the console user interface.

This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema action.

Synopsis

Creating a Request

discoverInputSchema Source #

Creates a value of DiscoverInputSchema with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • disResourceARN - Amazon Resource Name (ARN) of the streaming source.
  • disRoleARN - ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf.
  • disInputStartingPositionConfiguration - Point at which you want Amazon Kinesis Analytics to start reading records from the specified streaming source discovery purposes.

data DiscoverInputSchema Source #

See: discoverInputSchema smart constructor.

Instances

Eq DiscoverInputSchema Source # 
Data DiscoverInputSchema Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DiscoverInputSchema -> c DiscoverInputSchema #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DiscoverInputSchema #

toConstr :: DiscoverInputSchema -> Constr #

dataTypeOf :: DiscoverInputSchema -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DiscoverInputSchema) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DiscoverInputSchema) #

gmapT :: (forall b. Data b => b -> b) -> DiscoverInputSchema -> DiscoverInputSchema #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DiscoverInputSchema -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DiscoverInputSchema -> r #

gmapQ :: (forall d. Data d => d -> u) -> DiscoverInputSchema -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DiscoverInputSchema -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DiscoverInputSchema -> m DiscoverInputSchema #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DiscoverInputSchema -> m DiscoverInputSchema #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DiscoverInputSchema -> m DiscoverInputSchema #

Read DiscoverInputSchema Source # 
Show DiscoverInputSchema Source # 
Generic DiscoverInputSchema Source # 
Hashable DiscoverInputSchema Source # 
ToJSON DiscoverInputSchema Source # 
NFData DiscoverInputSchema Source # 

Methods

rnf :: DiscoverInputSchema -> () #

AWSRequest DiscoverInputSchema Source # 
ToPath DiscoverInputSchema Source # 
ToHeaders DiscoverInputSchema Source # 
ToQuery DiscoverInputSchema Source # 
type Rep DiscoverInputSchema Source # 
type Rep DiscoverInputSchema = D1 (MetaData "DiscoverInputSchema" "Network.AWS.KinesisAnalytics.DiscoverInputSchema" "amazonka-kinesis-analytics-1.4.5-DpDyCtiVBNX33lFwhhmzva" False) (C1 (MetaCons "DiscoverInputSchema'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_disResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_disRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_disInputStartingPositionConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InputStartingPositionConfiguration)))))
type Rs DiscoverInputSchema Source # 

Request Lenses

disResourceARN :: Lens' DiscoverInputSchema Text Source #

Amazon Resource Name (ARN) of the streaming source.

disRoleARN :: Lens' DiscoverInputSchema Text Source #

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf.

disInputStartingPositionConfiguration :: Lens' DiscoverInputSchema InputStartingPositionConfiguration Source #

Point at which you want Amazon Kinesis Analytics to start reading records from the specified streaming source discovery purposes.

Destructuring the Response

discoverInputSchemaResponse Source #

Creates a value of DiscoverInputSchemaResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • disrsRawInputRecords - Raw stream data that was sampled to infer the schema.
  • disrsInputSchema - Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
  • disrsParsedInputRecords - An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
  • disrsResponseStatus - -- | The response status code.

data DiscoverInputSchemaResponse Source #

See: discoverInputSchemaResponse smart constructor.

Instances

Eq DiscoverInputSchemaResponse Source # 
Data DiscoverInputSchemaResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DiscoverInputSchemaResponse -> c DiscoverInputSchemaResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DiscoverInputSchemaResponse #

toConstr :: DiscoverInputSchemaResponse -> Constr #

dataTypeOf :: DiscoverInputSchemaResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DiscoverInputSchemaResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DiscoverInputSchemaResponse) #

gmapT :: (forall b. Data b => b -> b) -> DiscoverInputSchemaResponse -> DiscoverInputSchemaResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DiscoverInputSchemaResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DiscoverInputSchemaResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DiscoverInputSchemaResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DiscoverInputSchemaResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DiscoverInputSchemaResponse -> m DiscoverInputSchemaResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DiscoverInputSchemaResponse -> m DiscoverInputSchemaResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DiscoverInputSchemaResponse -> m DiscoverInputSchemaResponse #

Read DiscoverInputSchemaResponse Source # 
Show DiscoverInputSchemaResponse Source # 
Generic DiscoverInputSchemaResponse Source # 
NFData DiscoverInputSchemaResponse Source # 
type Rep DiscoverInputSchemaResponse Source # 
type Rep DiscoverInputSchemaResponse = D1 (MetaData "DiscoverInputSchemaResponse" "Network.AWS.KinesisAnalytics.DiscoverInputSchema" "amazonka-kinesis-analytics-1.4.5-DpDyCtiVBNX33lFwhhmzva" False) (C1 (MetaCons "DiscoverInputSchemaResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_disrsRawInputRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_disrsInputSchema") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SourceSchema)))) ((:*:) (S1 (MetaSel (Just Symbol "_disrsParsedInputRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [[Text]]))) (S1 (MetaSel (Just Symbol "_disrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

disrsRawInputRecords :: Lens' DiscoverInputSchemaResponse [Text] Source #

Raw stream data that was sampled to infer the schema.

disrsInputSchema :: Lens' DiscoverInputSchemaResponse (Maybe SourceSchema) Source #

Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.

disrsParsedInputRecords :: Lens' DiscoverInputSchemaResponse [[Text]] Source #

An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).