NAME

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

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('KinesisAnalyticsV2');
my $CreateApplicationResponse = $kinesisanalytics->CreateApplication(
  ApplicationName          => 'MyApplicationName',
  RuntimeEnvironment       => 'SQL-1_0',
  ServiceExecutionRole     => 'MyRoleARN',
  ApplicationConfiguration => {
    ApplicationCodeConfiguration => {
      CodeContentType => 'PLAINTEXT',    # values: PLAINTEXT, ZIPFILE
      CodeContent     => {
        S3ContentLocation => {
          BucketARN     => 'MyBucketARN',        # min: 1, max: 2048
          FileKey       => 'MyFileKey',          # min: 1, max: 1024
          ObjectVersion => 'MyObjectVersion',    # OPTIONAL
        },    # OPTIONAL
        TextContent    => 'MyTextContent',         # max: 102400; OPTIONAL
        ZipFileContent => 'BlobZipFileContent',    # max: 52428800; OPTIONAL
      },    # OPTIONAL
    },
    ApplicationSnapshotConfiguration => {
      SnapshotsEnabled => 1,    # OPTIONAL

    },    # OPTIONAL
    EnvironmentProperties => {
      PropertyGroups => [
        {
          PropertyGroupId => 'MyId',    # min: 1, max: 50
          PropertyMap     => {
            'MyPropertyKey' => 'MyPropertyValue'
            ,    # key: min: 1, max: 2048, value: min: 1, max: 2048
          },    # min: 1, max: 50

        },
        ...
      ],        # max: 50

    },    # OPTIONAL
    FlinkApplicationConfiguration => {
      CheckpointConfiguration => {
        ConfigurationType          => 'DEFAULT',   # values: DEFAULT, CUSTOM
        CheckpointInterval         => 1,           # OPTIONAL
        CheckpointingEnabled       => 1,           # OPTIONAL
        MinPauseBetweenCheckpoints => 1,           # OPTIONAL
      },    # OPTIONAL
      MonitoringConfiguration => {
        ConfigurationType => 'DEFAULT',    # values: DEFAULT, CUSTOM
        LogLevel => 'INFO',    # values: INFO, WARN, ERROR, DEBUG; OPTIONAL
        MetricsLevel => 'APPLICATION'
        ,    # values: APPLICATION, TASK, OPERATOR, PARALLELISM; OPTIONAL
      },    # OPTIONAL
      ParallelismConfiguration => {
        ConfigurationType  => 'DEFAULT',    # values: DEFAULT, CUSTOM
        AutoScalingEnabled => 1,            # OPTIONAL
        Parallelism        => 1,            # min: 1; OPTIONAL
        ParallelismPerKPU  => 1,            # min: 1; OPTIONAL
      },    # OPTIONAL
    },    # OPTIONAL
    SqlApplicationConfiguration => {
      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

            },

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

          },    # OPTIONAL
          KinesisStreamsInput => {
            ResourceARN => 'MyResourceARN',    # 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

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

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

          },    # OPTIONAL
        },
        ...
      ],        # OPTIONAL
      ReferenceDataSources => [
        {
          ReferenceSchema => {
            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
          },
          TableName             => 'MyInAppTableName',    # min: 1, max: 32
          S3ReferenceDataSource => {
            BucketARN => 'MyBucketARN',    # min: 1, max: 2048
            FileKey   => 'MyFileKey',      # min: 1, max: 1024
          },    # OPTIONAL
        },
        ...
      ],        # OPTIONAL
    },    # OPTIONAL
  },    # OPTIONAL
  ApplicationDescription   => 'MyApplicationDescription',    # OPTIONAL
  CloudWatchLoggingOptions => [
    {
      LogStreamARN => 'MyLogStreamARN',    # min: 1, max: 2048

    },
    ...
  ],                                       # OPTIONAL
);

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

# Returns a L<Paws::KinesisAnalyticsV2::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

ApplicationConfiguration => Paws::KinesisAnalyticsV2::ApplicationConfiguration

Use this parameter to configure the application.

ApplicationDescription => Str

A summary description of the application.

REQUIRED ApplicationName => Str

The name of your application (for example, sample-app).

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

Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors.

REQUIRED RuntimeEnvironment => Str

The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5).

Valid values are: "SQL-1_0", "FLINK-1_6"

REQUIRED ServiceExecutionRole => Str

The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateApplication 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