The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::KinesisAnalytics::CreateApplication - Arguments for method CreateApplication on Paws::KinesisAnalytics

DESCRIPTION

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

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

SYNOPSIS

my $kinesisanalytics = Paws->service('KinesisAnalytics');
my $CreateApplicationResponse = $kinesisanalytics->CreateApplication(
  ApplicationName          => 'MyApplicationName',
  ApplicationCode          => 'MyApplicationCode',           # OPTIONAL
  ApplicationDescription   => 'MyApplicationDescription',    # OPTIONAL
  CloudWatchLoggingOptions => [
    {
      LogStreamARN => 'MyLogStreamARN',    # min: 1, max: 2048
      RoleARN      => 'MyRoleARN',         # min: 1, max: 2048

    },
    ...
  ],    # OPTIONAL
  Inputs => [
    {
      InputSchema => {
        RecordColumns => [
          {
            Name    => 'MyRecordColumnName',
            SqlType => 'MyRecordColumnSqlType',    # min: 1
            Mapping => 'MyRecordColumnMapping',    # OPTIONAL
          },
          ...
        ],    # min: 1, max: 1000
        RecordFormat => {
          RecordFormatType  => 'JSON',    # values: JSON, CSV
          MappingParameters => {
            CSVMappingParameters => {
              RecordColumnDelimiter => 'MyRecordColumnDelimiter',   # min: 1
              RecordRowDelimiter    => 'MyRecordRowDelimiter',      # min: 1

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

            },    # OPTIONAL
          },    # OPTIONAL
        },
        RecordEncoding => 'MyRecordEncoding',    # OPTIONAL
      },
      NamePrefix       => 'MyInAppStreamName',    # min: 1, max: 32
      InputParallelism => {
        Count => 1,    # min: 1, max: 64; OPTIONAL
      },    # OPTIONAL
      InputProcessingConfiguration => {
        InputLambdaProcessor => {
          ResourceARN => 'MyResourceARN',    # min: 1, max: 2048
          RoleARN     => 'MyRoleARN',        # min: 1, max: 2048

        },

      },    # OPTIONAL
      KinesisFirehoseInput => {
        ResourceARN => 'MyResourceARN',    # min: 1, max: 2048
        RoleARN     => 'MyRoleARN',        # min: 1, max: 2048

      },    # OPTIONAL
      KinesisStreamsInput => {
        ResourceARN => 'MyResourceARN',    # min: 1, max: 2048
        RoleARN     => 'MyRoleARN',        # min: 1, max: 2048

      },    # OPTIONAL
    },
    ...
  ],    # OPTIONAL
  Outputs => [
    {
      DestinationSchema => {
        RecordFormatType => 'JSON',    # values: JSON, CSV

      },
      Name                  => 'MyInAppStreamName',    # min: 1, max: 32
      KinesisFirehoseOutput => {
        ResourceARN => 'MyResourceARN',                # min: 1, max: 2048
        RoleARN     => 'MyRoleARN',                    # min: 1, max: 2048

      },    # OPTIONAL
      KinesisStreamsOutput => {
        ResourceARN => 'MyResourceARN',    # min: 1, max: 2048
        RoleARN     => 'MyRoleARN',        # min: 1, max: 2048

      },    # OPTIONAL
      LambdaOutput => {
        ResourceARN => 'MyResourceARN',    # min: 1, max: 2048
        RoleARN     => 'MyRoleARN',        # min: 1, max: 2048

      },    # OPTIONAL
    },
    ...
  ],    # OPTIONAL
  Tags => [
    {
      Key   => 'MyTagKey',      # min: 1, max: 128
      Value => 'MyTagValue',    # max: 256; OPTIONAL
    },
    ...
  ],    # OPTIONAL
);

# Results:
my $ApplicationSummary = $CreateApplicationResponse->ApplicationSummary;

# Returns a L<Paws::KinesisAnalytics::CreateApplicationResponse> 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/CreateApplication

ATTRIBUTES

ApplicationCode => Str

One or more SQL statements that read input data, transform it, and generate output. For example, you can write a SQL statement that reads data from one in-application stream, generates a running average of the number of advertisement clicks by vendor, and insert resulting rows in another in-application stream using pumps. For more information about the typical pattern, see Application Code (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-app-code.html).

You can provide such series of SQL statements, where output of one statement can be used as the input for the next statement. You store intermediate results by creating in-application streams and pumps.

Note that the application code must create the streams with names specified in the Outputs. For example, if your Outputs defines output streams named ExampleOutputStream1 and ExampleOutputStream2, then your application code must create these streams.

ApplicationDescription => Str

Summary description of the application.

REQUIRED ApplicationName => Str

Name of your Amazon Kinesis Analytics application (for example, sample-app).

CloudWatchLoggingOptions => ArrayRef[Paws::KinesisAnalytics::CloudWatchLoggingOption]

Use this parameter to configure a CloudWatch log stream to monitor application configuration errors. For more information, see Working with Amazon CloudWatch Logs (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html).

Inputs => ArrayRef[Paws::KinesisAnalytics::Input]

Use this parameter to configure the application input.

You can configure your application to receive input from a single streaming source. In this configuration, you map this streaming source to an in-application stream that is created. Your application code can then query the in-application stream like a table (you can think of it as a constantly updating table).

For the streaming source, you provide its Amazon Resource Name (ARN) and format of data on the stream (for example, JSON, CSV, etc.). You also must provide an IAM role that Amazon Kinesis Analytics can assume to read this stream on your behalf.

To create the in-application stream, you need to specify a schema to transform your data into a schematized version used in SQL. In the schema, you provide the necessary mapping of the data elements in the streaming source to record columns in the in-app stream.

Outputs => ArrayRef[Paws::KinesisAnalytics::Output]

You can configure application output to write data from any of the in-application streams to up to three destinations.

These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda destinations, or any combination of the three.

In the configuration, you specify the in-application stream name, the destination stream or Lambda function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf.

In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf.

Tags => ArrayRef[Paws::KinesisAnalytics::Tag]

A list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50. For more information, see Using Tagging (https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-tagging.html).

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateApplication in Paws::KinesisAnalytics

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