File Coverage

blib/lib/Paws/KinesisAnalytics/CreateApplication.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::KinesisAnalytics::CreateApplication;
3 1     1   287 use Moose;
  1         3  
  1         7  
4             has ApplicationCode => (is => 'ro', isa => 'Str');
5             has ApplicationDescription => (is => 'ro', isa => 'Str');
6             has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
7             has CloudWatchLoggingOptions => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalytics::CloudWatchLoggingOption]');
8             has Inputs => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalytics::Input]');
9             has Outputs => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalytics::Output]');
10              
11 1     1   5328 use MooseX::ClassAttribute;
  1         3  
  1         7  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApplication');
14             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalytics::CreateApplicationResponse');
15             class_has _result_key => (isa => 'Str', is => 'ro');
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::KinesisAnalytics::CreateApplication - Arguments for method CreateApplication on Paws::KinesisAnalytics
23              
24             =head1 DESCRIPTION
25              
26             This class represents the parameters used for calling the method CreateApplication on the
27             Amazon Kinesis Analytics service. Use the attributes of this class
28             as arguments to method CreateApplication.
29              
30             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApplication.
31              
32             As an example:
33              
34             $service_obj->CreateApplication(Att1 => $value1, Att2 => $value2, ...);
35              
36             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.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 ApplicationCode => Str
42              
43             One or more SQL statements that read input data, transform it, and
44             generate output. For example, you can write a SQL statement that reads
45             data from one in-application stream, generates a running average of the
46             number of advertisement clicks by vendor, and insert resulting rows in
47             another in-application stream using pumps. For more inforamtion about
48             the typical pattern, see Application Code.
49              
50             You can provide such series of SQL statements, where output of one
51             statement can be used as the input for the next statement. You store
52             intermediate results by creating in-application streams and pumps.
53              
54             Note that the application code must create the streams with names
55             specified in the C<Outputs>. For example, if your C<Outputs> defines
56             output streams named C<ExampleOutputStream1> and
57             C<ExampleOutputStream2>, then your application code must create these
58             streams.
59              
60              
61              
62             =head2 ApplicationDescription => Str
63              
64             Summary description of the application.
65              
66              
67              
68             =head2 B<REQUIRED> ApplicationName => Str
69              
70             Name of your Amazon Kinesis Analytics application (for example,
71             C<sample-app>).
72              
73              
74              
75             =head2 CloudWatchLoggingOptions => ArrayRef[L<Paws::KinesisAnalytics::CloudWatchLoggingOption>]
76              
77             Use this parameter to configure a CloudWatch log stream to monitor
78             application configuration errors. For more information, see Working
79             with Amazon CloudWatch Logs.
80              
81              
82              
83             =head2 Inputs => ArrayRef[L<Paws::KinesisAnalytics::Input>]
84              
85             Use this parameter to configure the application input.
86              
87             You can configure your application to receive input from a single
88             streaming source. In this configuration, you map this streaming source
89             to an in-application stream that is created. Your application code can
90             then query the in-application stream like a table (you can think of it
91             as a constantly updating table).
92              
93             For the streaming source, you provide its Amazon Resource Name (ARN)
94             and format of data on the stream (for example, JSON, CSV, etc). You
95             also must provide an IAM role that Amazon Kinesis Analytics can assume
96             to read this stream on your behalf.
97              
98             To create the in-application stream, you need to specify a schema to
99             transform your data into a schematized version used in SQL. In the
100             schema, you provide the necessary mapping of the data elements in the
101             streaming source to record columns in the in-app stream.
102              
103              
104              
105             =head2 Outputs => ArrayRef[L<Paws::KinesisAnalytics::Output>]
106              
107             You can configure application output to write data from any of the
108             in-application streams to up to five destinations.
109              
110             These destinations can be Amazon Kinesis streams, Amazon Kinesis
111             Firehose delivery streams, or both.
112              
113             In the configuration, you specify the in-application stream name, the
114             destination stream Amazon Resource Name (ARN), and the format to use
115             when writing data. You must also provide an IAM role that Amazon
116             Kinesis Analytics can assume to write to the destination stream on your
117             behalf.
118              
119             In the output configuration, you also provide the output stream Amazon
120             Resource Name (ARN) and the format of data in the stream (for example,
121             JSON, CSV). You also must provide an IAM role that Amazon Kinesis
122             Analytics can assume to write to this stream on your behalf.
123              
124              
125              
126              
127             =head1 SEE ALSO
128              
129             This class forms part of L<Paws>, documenting arguments for method CreateApplication in L<Paws::KinesisAnalytics>
130              
131             =head1 BUGS and CONTRIBUTIONS
132              
133             The source code is located here: https://github.com/pplu/aws-sdk-perl
134              
135             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
136              
137             =cut
138