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

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::KinesisAnalyticsV2::UpdateApplication;
3 use Moose;
4 has ApplicationConfigurationUpdate => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::ApplicationConfigurationUpdate');
5 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
6 has CloudWatchLoggingOptionUpdates => (is => 'ro', isa => 'ArrayRef[Paws::KinesisAnalyticsV2::CloudWatchLoggingOptionUpdate]');
7 has ConditionalToken => (is => 'ro', isa => 'Str');
8 has CurrentApplicationVersionId => (is => 'ro', isa => 'Int');
9 has RunConfigurationUpdate => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::RunConfigurationUpdate');
10 has ServiceExecutionRoleUpdate => (is => 'ro', isa => 'Str');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateApplication');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalyticsV2::UpdateApplicationResponse');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::KinesisAnalyticsV2::UpdateApplication - Arguments for method UpdateApplication on L<Paws::KinesisAnalyticsV2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateApplication on the
28 L<Amazon Kinesis Analytics|Paws::KinesisAnalyticsV2> service. Use the attributes of this class
29 as arguments to method UpdateApplication.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateApplication.
32  
33 =head1 SYNOPSIS
34  
35 my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
36 my $UpdateApplicationResponse = $kinesisanalytics->UpdateApplication(
37 ApplicationName => 'MyApplicationName',
38 ApplicationConfigurationUpdate => {
39 ApplicationCodeConfigurationUpdate => {
40 CodeContentTypeUpdate =>
41 'PLAINTEXT', # values: PLAINTEXT, ZIPFILE; OPTIONAL
42 CodeContentUpdate => {
43 S3ContentLocationUpdate => {
44 BucketARNUpdate => 'MyBucketARN', # min: 1, max: 2048; OPTIONAL
45 FileKeyUpdate => 'MyFileKey', # min: 1, max: 1024; OPTIONAL
46 ObjectVersionUpdate => 'MyObjectVersion', # max: 1024; OPTIONAL
47 }, # OPTIONAL
48 TextContentUpdate => 'MyTextContent', # max: 102400; OPTIONAL
49 ZipFileContentUpdate =>
50 'BlobZipFileContent', # max: 52428800; OPTIONAL
51 }, # OPTIONAL
52 }, # OPTIONAL
53 ApplicationSnapshotConfigurationUpdate => {
54 SnapshotsEnabledUpdate => 1,
55  
56 }, # OPTIONAL
57 EnvironmentPropertyUpdates => {
58 PropertyGroups => [
59 {
60 PropertyGroupId => 'MyId', # min: 1, max: 50
61 PropertyMap => {
62 'MyPropertyKey' => 'MyPropertyValue'
63 , # key: min: 1, max: 2048, value: min: 1, max: 2048
64 }, # min: 1, max: 50
65  
66 },
67 ...
68 ], # max: 50
69  
70 }, # OPTIONAL
71 FlinkApplicationConfigurationUpdate => {
72 CheckpointConfigurationUpdate => {
73 CheckpointIntervalUpdate => 1, # min: 1; OPTIONAL
74 CheckpointingEnabledUpdate => 1,
75 ConfigurationTypeUpdate =>
76 'DEFAULT', # values: DEFAULT, CUSTOM; OPTIONAL
77 MinPauseBetweenCheckpointsUpdate => 1, # OPTIONAL
78 }, # OPTIONAL
79 MonitoringConfigurationUpdate => {
80 ConfigurationTypeUpdate =>
81 'DEFAULT', # values: DEFAULT, CUSTOM; OPTIONAL
82 LogLevelUpdate =>
83 'INFO', # values: INFO, WARN, ERROR, DEBUG; OPTIONAL
84 MetricsLevelUpdate => 'APPLICATION'
85 , # values: APPLICATION, TASK, OPERATOR, PARALLELISM; OPTIONAL
86 }, # OPTIONAL
87 ParallelismConfigurationUpdate => {
88 AutoScalingEnabledUpdate => 1,
89 ConfigurationTypeUpdate =>
90 'DEFAULT', # values: DEFAULT, CUSTOM; OPTIONAL
91 ParallelismPerKPUUpdate => 1, # min: 1; OPTIONAL
92 ParallelismUpdate => 1, # min: 1; OPTIONAL
93 }, # OPTIONAL
94 }, # OPTIONAL
95 SqlApplicationConfigurationUpdate => {
96 InputUpdates => [
97 {
98 InputId => 'MyId', # min: 1, max: 50
99 InputParallelismUpdate => {
100 CountUpdate => 1, # min: 1, max: 64
101  
102 }, # OPTIONAL
103 InputProcessingConfigurationUpdate => {
104 InputLambdaProcessorUpdate => {
105 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
106  
107 },
108  
109 }, # OPTIONAL
110 InputSchemaUpdate => {
111 RecordColumnUpdates => [
112 {
113 Name => 'MyRecordColumnName', # min: 1, max: 256
114 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
115 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
116 },
117 ...
118 ], # min: 1, max: 1000; OPTIONAL
119 RecordEncodingUpdate =>
120 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
121 RecordFormatUpdate => {
122 RecordFormatType => 'JSON', # values: JSON, CSV
123 MappingParameters => {
124 CSVMappingParameters => {
125 RecordColumnDelimiter =>
126 'MyRecordColumnDelimiter', # min: 1, max: 1024
127 RecordRowDelimiter =>
128 'MyRecordRowDelimiter', # min: 1, max: 1024
129  
130 }, # OPTIONAL
131 JSONMappingParameters => {
132 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
133  
134 }, # OPTIONAL
135 }, # OPTIONAL
136 }, # OPTIONAL
137 }, # OPTIONAL
138 KinesisFirehoseInputUpdate => {
139 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
140  
141 }, # OPTIONAL
142 KinesisStreamsInputUpdate => {
143 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
144  
145 }, # OPTIONAL
146 NamePrefixUpdate =>
147 'MyInAppStreamName', # min: 1, max: 32; OPTIONAL
148 },
149 ...
150 ], # OPTIONAL
151 OutputUpdates => [
152 {
153 OutputId => 'MyId', # min: 1, max: 50
154 DestinationSchemaUpdate => {
155 RecordFormatType => 'JSON', # values: JSON, CSV
156  
157 }, # OPTIONAL
158 KinesisFirehoseOutputUpdate => {
159 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
160  
161 }, # OPTIONAL
162 KinesisStreamsOutputUpdate => {
163 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
164  
165 }, # OPTIONAL
166 LambdaOutputUpdate => {
167 ResourceARNUpdate => 'MyResourceARN', # min: 1, max: 2048
168  
169 }, # OPTIONAL
170 NameUpdate => 'MyInAppStreamName', # min: 1, max: 32; OPTIONAL
171 },
172 ...
173 ], # OPTIONAL
174 ReferenceDataSourceUpdates => [
175 {
176 ReferenceId => 'MyId', # min: 1, max: 50
177 ReferenceSchemaUpdate => {
178 RecordColumns => [
179 {
180 Name => 'MyRecordColumnName', # min: 1, max: 256
181 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
182 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
183 },
184 ...
185 ], # min: 1, max: 1000; OPTIONAL
186 RecordFormat => {
187 RecordFormatType => 'JSON', # values: JSON, CSV
188 MappingParameters => {
189 CSVMappingParameters => {
190 RecordColumnDelimiter =>
191 'MyRecordColumnDelimiter', # min: 1, max: 1024
192 RecordRowDelimiter =>
193 'MyRecordRowDelimiter', # min: 1, max: 1024
194  
195 }, # OPTIONAL
196 JSONMappingParameters => {
197 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
198  
199 }, # OPTIONAL
200 }, # OPTIONAL
201 }, # OPTIONAL
202 RecordEncoding => 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
203 }, # OPTIONAL
204 S3ReferenceDataSourceUpdate => {
205 BucketARNUpdate => 'MyBucketARN', # min: 1, max: 2048; OPTIONAL
206 FileKeyUpdate => 'MyFileKey', # min: 1, max: 1024; OPTIONAL
207 }, # OPTIONAL
208 TableNameUpdate => 'MyInAppTableName', # min: 1, max: 32; OPTIONAL
209 },
210 ...
211 ], # OPTIONAL
212 }, # OPTIONAL
213 VpcConfigurationUpdates => [
214 {
215 VpcConfigurationId => 'MyId', # min: 1, max: 50
216 SecurityGroupIdUpdates => [ 'MySecurityGroupId', ... ]
217 , # min: 1, max: 5; OPTIONAL
218 SubnetIdUpdates => [ 'MySubnetId', ... ]
219 , # min: 1, max: 16; OPTIONAL
220 },
221 ...
222 ], # OPTIONAL
223 ZeppelinApplicationConfigurationUpdate => {
224 CatalogConfigurationUpdate => {
225 GlueDataCatalogConfigurationUpdate => {
226 DatabaseARNUpdate =>
227 'MyDatabaseARN', # min: 1, max: 2048; OPTIONAL
228 },
229  
230 }, # OPTIONAL
231 CustomArtifactsConfigurationUpdate => [
232 {
233 ArtifactType => 'UDF', # values: UDF, DEPENDENCY_JAR
234 MavenReference => {
235 ArtifactId => 'MyMavenArtifactId', # min: 1, max: 256
236 GroupId => 'MyMavenGroupId', # min: 1, max: 256
237 Version => 'MyMavenVersion', # min: 1, max: 256
238  
239 }, # OPTIONAL
240 S3ContentLocation => {
241 BucketARN => 'MyBucketARN', # min: 1, max: 2048; OPTIONAL
242 FileKey => 'MyFileKey', # min: 1, max: 1024; OPTIONAL
243 ObjectVersion => 'MyObjectVersion', # max: 1024; OPTIONAL
244 }, # OPTIONAL
245 },
246 ...
247 ], # max: 50; OPTIONAL
248 DeployAsApplicationConfigurationUpdate => {
249 S3ContentLocationUpdate => {
250 BucketARNUpdate => 'MyBucketARN', # min: 1, max: 2048; OPTIONAL
251 BasePathUpdate => 'MyBasePath', # min: 1, max: 1024; OPTIONAL
252 },
253  
254 }, # OPTIONAL
255 MonitoringConfigurationUpdate => {
256 LogLevelUpdate =>
257 'INFO', # values: INFO, WARN, ERROR, DEBUG; OPTIONAL
258  
259 }, # OPTIONAL
260 }, # OPTIONAL
261 }, # OPTIONAL
262 CloudWatchLoggingOptionUpdates => [
263 {
264 CloudWatchLoggingOptionId => 'MyId', # min: 1, max: 50
265 LogStreamARNUpdate => 'MyLogStreamARN', # min: 1, max: 2048; OPTIONAL
266 },
267 ...
268 ], # OPTIONAL
269 ConditionalToken => 'MyConditionalToken', # OPTIONAL
270 CurrentApplicationVersionId => 1, # OPTIONAL
271 RunConfigurationUpdate => {
272 ApplicationRestoreConfiguration => {
273 ApplicationRestoreType => 'SKIP_RESTORE_FROM_SNAPSHOT'
274 , # values: SKIP_RESTORE_FROM_SNAPSHOT, RESTORE_FROM_LATEST_SNAPSHOT, RESTORE_FROM_CUSTOM_SNAPSHOT
275 SnapshotName => 'MySnapshotName', # min: 1, max: 256; OPTIONAL
276 }, # OPTIONAL
277 FlinkRunConfiguration => { AllowNonRestoredState => 1, }, # OPTIONAL
278 }, # OPTIONAL
279 ServiceExecutionRoleUpdate => 'MyRoleARN', # OPTIONAL
280 );
281  
282 # Results:
283 my $ApplicationDetail = $UpdateApplicationResponse->ApplicationDetail;
284  
285 # Returns a L<Paws::KinesisAnalyticsV2::UpdateApplicationResponse> object.
286  
287 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.
288 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/UpdateApplication>
289  
290 =head1 ATTRIBUTES
291  
292  
293 =head2 ApplicationConfigurationUpdate => L<Paws::KinesisAnalyticsV2::ApplicationConfigurationUpdate>
294  
295 Describes application configuration updates.
296  
297  
298  
299 =head2 B<REQUIRED> ApplicationName => Str
300  
301 The name of the application to update.
302  
303  
304  
305 =head2 CloudWatchLoggingOptionUpdates => ArrayRef[L<Paws::KinesisAnalyticsV2::CloudWatchLoggingOptionUpdate>]
306  
307 Describes application Amazon CloudWatch logging option updates. You can
308 only update existing CloudWatch logging options with this action. To
309 add a new CloudWatch logging option, use
310 AddApplicationCloudWatchLoggingOption.
311  
312  
313  
314 =head2 ConditionalToken => Str
315  
316 A value you use to implement strong concurrency for application
317 updates. You must provide the C<CurrentApplicationVersionId> or the
318 C<ConditionalToken>. You get the application's current
319 C<ConditionalToken> using DescribeApplication. For better concurrency
320 support, use the C<ConditionalToken> parameter instead of
321 C<CurrentApplicationVersionId>.
322  
323  
324  
325 =head2 CurrentApplicationVersionId => Int
326  
327 The current application version ID. You must provide the
328 C<CurrentApplicationVersionId> or the C<ConditionalToken>.You can
329 retrieve the application version ID using DescribeApplication. For
330 better concurrency support, use the C<ConditionalToken> parameter
331 instead of C<CurrentApplicationVersionId>.
332  
333  
334  
335 =head2 RunConfigurationUpdate => L<Paws::KinesisAnalyticsV2::RunConfigurationUpdate>
336  
337 Describes updates to the application's starting parameters.
338  
339  
340  
341 =head2 ServiceExecutionRoleUpdate => Str
342  
343 Describes updates to the service execution role.
344  
345  
346  
347  
348 =head1 SEE ALSO
349  
350 This class forms part of L<Paws>, documenting arguments for method UpdateApplication in L<Paws::KinesisAnalyticsV2>
351  
352 =head1 BUGS and CONTRIBUTIONS
353  
354 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
355  
356 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
357  
358 =cut
359