/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the kinesisanalyticsv2-2018-05-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.KinesisAnalyticsV2.Model
{
///
/// Container for the parameters to the DiscoverInputSchema operation.
/// Infers a schema for a SQL-based Kinesis Data Analytics application by evaluating sample
/// records on the specified streaming source (Kinesis data stream or Kinesis Data Firehose
/// delivery stream) or Amazon S3 object. 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.
/// When you create an application using the Kinesis Data Analytics console, the console
/// uses this operation to infer a schema and show it in the console user interface.
///
///
public partial class DiscoverInputSchemaRequest : AmazonKinesisAnalyticsV2Request
{
private InputProcessingConfiguration _inputProcessingConfiguration;
private InputStartingPositionConfiguration _inputStartingPositionConfiguration;
private string _resourceARN;
private S3Configuration _s3Configuration;
private string _serviceExecutionRole;
///
/// Gets and sets the property InputProcessingConfiguration.
///
/// The InputProcessingConfiguration to use to preprocess the records before discovering
/// the schema of the records.
///
///
public InputProcessingConfiguration InputProcessingConfiguration
{
get { return this._inputProcessingConfiguration; }
set { this._inputProcessingConfiguration = value; }
}
// Check to see if InputProcessingConfiguration property is set
internal bool IsSetInputProcessingConfiguration()
{
return this._inputProcessingConfiguration != null;
}
///
/// Gets and sets the property InputStartingPositionConfiguration.
///
/// The point at which you want Kinesis Data Analytics to start reading records from the
/// specified streaming source discovery purposes.
///
///
public InputStartingPositionConfiguration InputStartingPositionConfiguration
{
get { return this._inputStartingPositionConfiguration; }
set { this._inputStartingPositionConfiguration = value; }
}
// Check to see if InputStartingPositionConfiguration property is set
internal bool IsSetInputStartingPositionConfiguration()
{
return this._inputStartingPositionConfiguration != null;
}
///
/// Gets and sets the property ResourceARN.
///
/// The Amazon Resource Name (ARN) of the streaming source.
///
///
[AWSProperty(Min=1, Max=2048)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
///
/// Gets and sets the property S3Configuration.
///
/// Specify this parameter to discover a schema from data in an Amazon S3 object.
///
///
public S3Configuration S3Configuration
{
get { return this._s3Configuration; }
set { this._s3Configuration = value; }
}
// Check to see if S3Configuration property is set
internal bool IsSetS3Configuration()
{
return this._s3Configuration != null;
}
///
/// Gets and sets the property ServiceExecutionRole.
///
/// The ARN of the role that is used to access the streaming source.
///
///
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ServiceExecutionRole
{
get { return this._serviceExecutionRole; }
set { this._serviceExecutionRole = value; }
}
// Check to see if ServiceExecutionRole property is set
internal bool IsSetServiceExecutionRole()
{
return this._serviceExecutionRole != null;
}
}
}