NAME

Paws::KinesisAnalyticsV2::AddApplicationReferenceDataSource - Arguments for method AddApplicationReferenceDataSource on Paws::KinesisAnalyticsV2

DESCRIPTION

This class represents the parameters used for calling the method AddApplicationReferenceDataSource on the Amazon Kinesis Analytics service. Use the attributes of this class as arguments to method AddApplicationReferenceDataSource.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddApplicationReferenceDataSource.

SYNOPSIS

my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
my $AddApplicationReferenceDataSourceResponse =
  $kinesisanalytics->AddApplicationReferenceDataSource(
  ApplicationName             => 'MyApplicationName',
  CurrentApplicationVersionId => 1,
  ReferenceDataSource         => {
    ReferenceSchema => {
      RecordColumns => [
        {
          Name    => 'MyRecordColumnName',       # min: 1, max: 256
          SqlType => 'MyRecordColumnSqlType',    # min: 1, max: 100
          Mapping => 'MyRecordColumnMapping',    # max: 65535; OPTIONAL
        },
        ...
      ],    # min: 1, max: 1000
      RecordFormat => {
        RecordFormatType  => 'JSON',    # values: JSON, CSV
        MappingParameters => {
          CSVMappingParameters => {
            RecordColumnDelimiter =>
              'MyRecordColumnDelimiter',    # min: 1, max: 1024
            RecordRowDelimiter =>
              'MyRecordRowDelimiter',       # min: 1, max: 1024

          },    # OPTIONAL
          JSONMappingParameters => {
            RecordRowPath => 'MyRecordRowPath',    # min: 1, max: 65535

          },    # OPTIONAL
        },    # OPTIONAL
      },
      RecordEncoding => 'MyRecordEncoding',    # min: 5, max: 5; OPTIONAL
    },
    TableName             => 'MyInAppTableName',    # min: 1, max: 32
    S3ReferenceDataSource => {
      BucketARN => 'MyBucketARN',    # min: 1, max: 2048; OPTIONAL
      FileKey   => 'MyFileKey',      # min: 1, max: 1024; OPTIONAL
    },    # OPTIONAL
  },

  );

# Results:
my $ApplicationARN =
  $AddApplicationReferenceDataSourceResponse->ApplicationARN;
my $ApplicationVersionId =
  $AddApplicationReferenceDataSourceResponse->ApplicationVersionId;
my $ReferenceDataSourceDescriptions =
  $AddApplicationReferenceDataSourceResponse
  ->ReferenceDataSourceDescriptions;

# Returns a Paws::KinesisAnalyticsV2::AddApplicationReferenceDataSourceResponse object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/AddApplicationReferenceDataSource

ATTRIBUTES

REQUIRED ApplicationName => Str

The name of an existing application.

REQUIRED CurrentApplicationVersionId => Int

The version of the application for which you are adding the reference data source. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

REQUIRED ReferenceDataSource => Paws::KinesisAnalyticsV2::ReferenceDataSource

The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created.

SEE ALSO

This class forms part of Paws, documenting arguments for method AddApplicationReferenceDataSource in Paws::KinesisAnalyticsV2

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues