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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::KinesisAnalyticsV2::AddApplicationInput;
3 use Moose;
4 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
5 has CurrentApplicationVersionId => (is => 'ro', isa => 'Int', required => 1);
6 has Input => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::Input', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddApplicationInput');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalyticsV2::AddApplicationInputResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::KinesisAnalyticsV2::AddApplicationInput - Arguments for method AddApplicationInput on L<Paws::KinesisAnalyticsV2>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method AddApplicationInput on the
24 L<Amazon Kinesis Analytics|Paws::KinesisAnalyticsV2> service. Use the attributes of this class
25 as arguments to method AddApplicationInput.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddApplicationInput.
28  
29 =head1 SYNOPSIS
30  
31 my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
32 my $AddApplicationInputResponse = $kinesisanalytics->AddApplicationInput(
33 ApplicationName => 'MyApplicationName',
34 CurrentApplicationVersionId => 1,
35 Input => {
36 InputSchema => {
37 RecordColumns => [
38 {
39 Name => 'MyRecordColumnName', # min: 1, max: 256
40 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
41 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
42 },
43 ...
44 ], # min: 1, max: 1000
45 RecordFormat => {
46 RecordFormatType => 'JSON', # values: JSON, CSV
47 MappingParameters => {
48 CSVMappingParameters => {
49 RecordColumnDelimiter =>
50 'MyRecordColumnDelimiter', # min: 1, max: 1024
51 RecordRowDelimiter =>
52 'MyRecordRowDelimiter', # min: 1, max: 1024
53  
54 }, # OPTIONAL
55 JSONMappingParameters => {
56 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
57  
58 }, # OPTIONAL
59 }, # OPTIONAL
60 },
61 RecordEncoding => 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
62 },
63 NamePrefix => 'MyInAppStreamName', # min: 1, max: 32
64 InputParallelism => {
65 Count => 1, # min: 1, max: 64; OPTIONAL
66 }, # OPTIONAL
67 InputProcessingConfiguration => {
68 InputLambdaProcessor => {
69 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
70  
71 },
72  
73 }, # OPTIONAL
74 KinesisFirehoseInput => {
75 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
76  
77 }, # OPTIONAL
78 KinesisStreamsInput => {
79 ResourceARN => 'MyResourceARN', # min: 1, max: 2048
80  
81 }, # OPTIONAL
82 },
83  
84 );
85  
86 # Results:
87 my $ApplicationARN = $AddApplicationInputResponse->ApplicationARN;
88 my $ApplicationVersionId =
89 $AddApplicationInputResponse->ApplicationVersionId;
90 my $InputDescriptions = $AddApplicationInputResponse->InputDescriptions;
91  
92 # Returns a L<Paws::KinesisAnalyticsV2::AddApplicationInputResponse> object.
93  
94 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.
95 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/AddApplicationInput>
96  
97 =head1 ATTRIBUTES
98  
99  
100 =head2 B<REQUIRED> ApplicationName => Str
101  
102 The name of your existing application to which you want to add the
103 streaming source.
104  
105  
106  
107 =head2 B<REQUIRED> CurrentApplicationVersionId => Int
108  
109 The current version of your application. You must provide the
110 C<ApplicationVersionID> or the C<ConditionalToken>.You can use the
111 DescribeApplication operation to find the current application version.
112  
113  
114  
115 =head2 B<REQUIRED> Input => L<Paws::KinesisAnalyticsV2::Input>
116  
117 The Input to add.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method AddApplicationInput in L<Paws::KinesisAnalyticsV2>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133