blib/lib/Paws/KinesisAnalyticsV2/CreateApplication.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::KinesisAnalyticsV2::CreateApplication;
3 use Moose;
4 has ApplicationConfiguration => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::ApplicationConfiguration');
5 has ApplicationDescription => (is => 'ro', isa => 'Str');
6 has ApplicationMode => (is => 'ro', isa => 'Str');
7 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
8 has CloudWatchLoggingOptions => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalyticsV2::CloudWatchLoggingOption]');
9 has RuntimeEnvironment => (is => 'ro', isa => 'Str', required => 1);
10 has ServiceExecutionRole => (is => 'ro', isa => 'Str', required => 1);
11 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalyticsV2::Tag]');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApplication');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalyticsV2::CreateApplicationResponse');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::KinesisAnalyticsV2::CreateApplication - Arguments for method CreateApplication on L<Paws::KinesisAnalyticsV2>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateApplication on the
29 L<Amazon Kinesis Analytics|Paws::KinesisAnalyticsV2> service. Use the attributes of this class
30 as arguments to method CreateApplication.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApplication.
33  
34 =head1 SYNOPSIS
35  
36 my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
37 my $CreateApplicationResponse = $kinesisanalytics->CreateApplication(
38 ApplicationName => 'MyApplicationName',
39 RuntimeEnvironment => 'SQL-1_0',
40 ServiceExecutionRole => 'MyRoleARN',
41 ApplicationConfiguration => {
42 ApplicationCodeConfiguration => {
43 CodeContentType => 'PLAINTEXT', # values: PLAINTEXT, ZIPFILE
44 CodeContent => {
45 S3ContentLocation => {
46 BucketARN => 'MyBucketARN', # min: 1, max: 2048
47 FileKey => 'MyFileKey', # min: 1, max: 1024
48 ObjectVersion => 'MyObjectVersion', # max: 1024; OPTIONAL
49 }, # OPTIONAL
50 TextContent => 'MyTextContent', # max: 102400; OPTIONAL
51 ZipFileContent => 'BlobZipFileContent', # max: 52428800; OPTIONAL
52 }, # OPTIONAL
53 }, # OPTIONAL
54 ApplicationSnapshotConfiguration => {
55 SnapshotsEnabled => 1,
56  
57 }, # OPTIONAL
58 EnvironmentProperties => {
59 PropertyGroups => [
60 {
61 PropertyGroupId => 'MyId', # min: 1, max: 50
62 PropertyMap => {
63 'MyPropertyKey' => 'MyPropertyValue'
64 , # key: min: 1, max: 2048, value: min: 1, max: 2048
65 }, # min: 1, max: 50
66  
67 },
68 ...
69 ], # max: 50
70  
71 }, # OPTIONAL
72 FlinkApplicationConfiguration => {
73 CheckpointConfiguration => {
74 ConfigurationType => 'DEFAULT', # values: DEFAULT, CUSTOM
75 CheckpointInterval => 1, # min: 1; OPTIONAL
76 CheckpointingEnabled => 1,
77 MinPauseBetweenCheckpoints => 1, # OPTIONAL
78 }, # OPTIONAL
79 MonitoringConfiguration => {
80 ConfigurationType => 'DEFAULT', # values: DEFAULT, CUSTOM
81 LogLevel => 'INFO', # values: INFO, WARN, ERROR, DEBUG; OPTIONAL
82 MetricsLevel => 'APPLICATION'
83 , # values: APPLICATION, TASK, OPERATOR, PARALLELISM; OPTIONAL
84 }, # OPTIONAL
85 ParallelismConfiguration => {
86 ConfigurationType => 'DEFAULT', # values: DEFAULT, CUSTOM
87 AutoScalingEnabled => 1,
88 Parallelism => 1, # min: 1; OPTIONAL
89 ParallelismPerKPU => 1, # min: 1; OPTIONAL
90 }, # OPTIONAL
91 }, # OPTIONAL
92 SqlApplicationConfiguration => {
93 Inputs => [
94 {
95 InputSchema => {
96 RecordColumns => [
97 {
98 Name => 'MyRecordColumnName', # min: 1, max: 256
99 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
100 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
101 },
102 ...
103 ], # min: 1, max: 1000
104 RecordFormat => {
105 RecordFormatType => 'JSON', # values: JSON, CSV
106 MappingParameters => {
107 CSVMappingParameters => {
108 RecordColumnDelimiter =>
109 'MyRecordColumnDelimiter', # min: 1, max: 1024
110 RecordRowDelimiter =>
111 'MyRecordRowDelimiter', # min: 1, max: 1024
112  
113 }, # OPTIONAL
114 JSONMappingParameters => {
115 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
116  
117 }, # OPTIONAL
118 }, # OPTIONAL
119 },
120 RecordEncoding => 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
121 },
122 NamePrefix => 'MyInAppStreamName', # min: 1, max: 32
123 InputParallelism => {
124 Count => 1, # min: 1, max: 64; OPTIONAL
125 }, # OPTIONAL
126 InputProcessingConfiguration => {
127 InputLambdaProcessor => {
128 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
129  
130 },
131  
132 }, # OPTIONAL
133 KinesisFirehoseInput => {
134 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
135  
136 }, # OPTIONAL
137 KinesisStreamsInput => {
138 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
139  
140 }, # OPTIONAL
141 },
142 ...
143 ], # OPTIONAL
144 Outputs => [
145 {
146 DestinationSchema => {
147 RecordFormatType => 'JSON', # values: JSON, CSV
148  
149 },
150 Name => 'MyInAppStreamName', # min: 1, max: 32
151 KinesisFirehoseOutput => {
152 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
153  
154 }, # OPTIONAL
155 KinesisStreamsOutput => {
156 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
157  
158 }, # OPTIONAL
159 LambdaOutput => {
160 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
161  
162 }, # OPTIONAL
163 },
164 ...
165 ], # OPTIONAL
166 ReferenceDataSources => [
167 {
168 ReferenceSchema => {
169 RecordColumns => [
170 {
171 Name => 'MyRecordColumnName', # min: 1, max: 256
172 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
173 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
174 },
175 ...
176 ], # min: 1, max: 1000
177 RecordFormat => {
178 RecordFormatType => 'JSON', # values: JSON, CSV
179 MappingParameters => {
180 CSVMappingParameters => {
181 RecordColumnDelimiter =>
182 'MyRecordColumnDelimiter', # min: 1, max: 1024
183 RecordRowDelimiter =>
184 'MyRecordRowDelimiter', # min: 1, max: 1024
185  
186 }, # OPTIONAL
187 JSONMappingParameters => {
188 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
189  
190 }, # OPTIONAL
191 }, # OPTIONAL
192 },
193 RecordEncoding => 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
194 },
195 TableName => 'MyInAppTableName', # min: 1, max: 32
196 S3ReferenceDataSource => {
197 BucketARN => 'MyBucketARN', # min: 1, max: 2048
198 FileKey => 'MyFileKey', # min: 1, max: 1024
199 }, # OPTIONAL
200 },
201 ...
202 ], # OPTIONAL
203 }, # OPTIONAL
204 VpcConfigurations => [
205 {
206 SecurityGroupIds => [ 'MySecurityGroupId', ... ], # min: 1, max: 5
207 SubnetIds => [ 'MySubnetId', ... ], # min: 1, max: 16
208  
209 },
210 ...
211 ], # OPTIONAL
212 ZeppelinApplicationConfiguration => {
213 CatalogConfiguration => {
214 GlueDataCatalogConfiguration => {
215 DatabaseARN => 'MyDatabaseARN', # min: 1, max: 2048
216  
217 },
218  
219 }, # OPTIONAL
220 CustomArtifactsConfiguration => [
221 {
222 ArtifactType => 'UDF', # values: UDF, DEPENDENCY_JAR
223 MavenReference => {
224 ArtifactId => 'MyMavenArtifactId', # min: 1, max: 256
225 GroupId => 'MyMavenGroupId', # min: 1, max: 256
226 Version => 'MyMavenVersion', # min: 1, max: 256
227  
228 }, # OPTIONAL
229 S3ContentLocation => {
230 BucketARN => 'MyBucketARN', # min: 1, max: 2048
231 FileKey => 'MyFileKey', # min: 1, max: 1024
232 ObjectVersion => 'MyObjectVersion', # max: 1024; OPTIONAL
233 }, # OPTIONAL
234 },
235 ...
236 ], # max: 50; OPTIONAL
237 DeployAsApplicationConfiguration => {
238 S3ContentLocation => {
239 BucketARN => 'MyBucketARN', # min: 1, max: 2048
240 BasePath => 'MyBasePath', # min: 1, max: 1024; OPTIONAL
241 },
242  
243 }, # OPTIONAL
244 MonitoringConfiguration => {
245 LogLevel => 'INFO', # values: INFO, WARN, ERROR, DEBUG; OPTIONAL
246  
247 }, # OPTIONAL
248 }, # OPTIONAL
249 }, # OPTIONAL
250 ApplicationDescription => 'MyApplicationDescription', # OPTIONAL
251 ApplicationMode => 'STREAMING', # OPTIONAL
252 CloudWatchLoggingOptions => [
253 {
254 LogStreamARN => 'MyLogStreamARN', # min: 1, max: 2048
255  
256 },
257 ...
258 ], # OPTIONAL
259 Tags => [
260 {
261 Key => 'MyTagKey', # min: 1, max: 128
262 Value => 'MyTagValue', # max: 256; OPTIONAL
263 },
264 ...
265 ], # OPTIONAL
266 );
267  
268 # Results:
269 my $ApplicationDetail = $CreateApplicationResponse->ApplicationDetail;
270  
271 # Returns a L<Paws::KinesisAnalyticsV2::CreateApplicationResponse> object.
272  
273 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.
274 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/CreateApplication>
275  
276 =head1 ATTRIBUTES
277  
278  
279 =head2 ApplicationConfiguration => L<Paws::KinesisAnalyticsV2::ApplicationConfiguration>
280  
281 Use this parameter to configure the application.
282  
283  
284  
285 =head2 ApplicationDescription => Str
286  
287 A summary description of the application.
288  
289  
290  
291 =head2 ApplicationMode => Str
292  
293 Use the C<STREAMING> mode to create a Kinesis Data Analytics Studio
294 notebook. To create a Kinesis Data Analytics Studio notebook, use the
295 C<INTERACTIVE> mode.
296  
297 Valid values are: C<"STREAMING">, C<"INTERACTIVE">
298  
299 =head2 B<REQUIRED> ApplicationName => Str
300  
301 The name of your application (for example, C<sample-app>).
302  
303  
304  
305 =head2 CloudWatchLoggingOptions => ArrayRef[L<Paws::KinesisAnalyticsV2::CloudWatchLoggingOption>]
306  
307 Use this parameter to configure an Amazon CloudWatch log stream to
308 monitor application configuration errors.
309  
310  
311  
312 =head2 B<REQUIRED> RuntimeEnvironment => Str
313  
314 The runtime environment for the application (C<SQL-1_0>, C<FLINK-1_6>,
315 C<FLINK-1_8>, or C<FLINK-1_11>).
316  
317 Valid values are: C<"SQL-1_0">, C<"FLINK-1_6">, C<"FLINK-1_8">, C<"FLINK-1_11">, C<"ZEPPELIN-FLINK-1_0">
318  
319 =head2 B<REQUIRED> ServiceExecutionRole => Str
320  
321 The IAM role used by the application to access Kinesis data streams,
322 Kinesis Data Firehose delivery streams, Amazon S3 objects, and other
323 external resources.
324  
325  
326  
327 =head2 Tags => ArrayRef[L<Paws::KinesisAnalyticsV2::Tag>]
328  
329 A list of one or more tags to assign to the application. A tag is a
330 key-value pair that identifies an application. Note that the maximum
331 number of application tags includes system tags. The maximum number of
332 user-defined application tags is 50. For more information, see Using
333 Tagging
334 (https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html).
335  
336  
337  
338  
339 =head1 SEE ALSO
340  
341 This class forms part of L<Paws>, documenting arguments for method CreateApplication in L<Paws::KinesisAnalyticsV2>
342  
343 =head1 BUGS and CONTRIBUTIONS
344  
345 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
346  
347 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
348  
349 =cut
350