blib/lib/Paws/KinesisAnalyticsV2/AddApplicationReferenceDataSource.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::AddApplicationReferenceDataSource;
3 use Moose;
4 has ApplicationName => (is => 'ro', isa => 'Str', required => 1);
5 has CurrentApplicationVersionId => (is => 'ro', isa => 'Int', required => 1);
6 has ReferenceDataSource => (is => 'ro', isa => 'Paws::KinesisAnalyticsV2::ReferenceDataSource', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddApplicationReferenceDataSource');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KinesisAnalyticsV2::AddApplicationReferenceDataSourceResponse');
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::AddApplicationReferenceDataSource - Arguments for method AddApplicationReferenceDataSource on L<Paws::KinesisAnalyticsV2>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method AddApplicationReferenceDataSource on the
24 L<Amazon Kinesis Analytics|Paws::KinesisAnalyticsV2> service. Use the attributes of this class
25 as arguments to method AddApplicationReferenceDataSource.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddApplicationReferenceDataSource.
28  
29 =head1 SYNOPSIS
30  
31 my $kinesisanalytics = Paws->service('KinesisAnalyticsV2');
32 my $AddApplicationReferenceDataSourceResponse =
33 $kinesisanalytics->AddApplicationReferenceDataSource(
34 ApplicationName => 'MyApplicationName',
35 CurrentApplicationVersionId => 1,
36 ReferenceDataSource => {
37 ReferenceSchema => {
38 RecordColumns => [
39 {
40 Name => 'MyRecordColumnName', # min: 1, max: 256
41 SqlType => 'MyRecordColumnSqlType', # min: 1, max: 100
42 Mapping => 'MyRecordColumnMapping', # max: 65535; OPTIONAL
43 },
44 ...
45 ], # min: 1, max: 1000
46 RecordFormat => {
47 RecordFormatType => 'JSON', # values: JSON, CSV
48 MappingParameters => {
49 CSVMappingParameters => {
50 RecordColumnDelimiter =>
51 'MyRecordColumnDelimiter', # min: 1, max: 1024
52 RecordRowDelimiter =>
53 'MyRecordRowDelimiter', # min: 1, max: 1024
54  
55 }, # OPTIONAL
56 JSONMappingParameters => {
57 RecordRowPath => 'MyRecordRowPath', # min: 1, max: 65535
58  
59 }, # OPTIONAL
60 }, # OPTIONAL
61 },
62 RecordEncoding => 'MyRecordEncoding', # min: 5, max: 5; OPTIONAL
63 },
64 TableName => 'MyInAppTableName', # min: 1, max: 32
65 S3ReferenceDataSource => {
66 BucketARN => 'MyBucketARN', # min: 1, max: 2048; OPTIONAL
67 FileKey => 'MyFileKey', # min: 1, max: 1024; OPTIONAL
68 }, # OPTIONAL
69 },
70  
71 );
72  
73 # Results:
74 my $ApplicationARN =
75 $AddApplicationReferenceDataSourceResponse->ApplicationARN;
76 my $ApplicationVersionId =
77 $AddApplicationReferenceDataSourceResponse->ApplicationVersionId;
78 my $ReferenceDataSourceDescriptions =
79 $AddApplicationReferenceDataSourceResponse
80 ->ReferenceDataSourceDescriptions;
81  
82 # Returns a L<Paws::KinesisAnalyticsV2::AddApplicationReferenceDataSourceResponse> object.
83  
84 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.
85 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics/AddApplicationReferenceDataSource>
86  
87 =head1 ATTRIBUTES
88  
89  
90 =head2 B<REQUIRED> ApplicationName => Str
91  
92 The name of an existing application.
93  
94  
95  
96 =head2 B<REQUIRED> CurrentApplicationVersionId => Int
97  
98 The version of the application for which you are adding the reference
99 data source. You can use the DescribeApplication operation to get the
100 current application version. If the version specified is not the
101 current version, the C<ConcurrentModificationException> is returned.
102  
103  
104  
105 =head2 B<REQUIRED> ReferenceDataSource => L<Paws::KinesisAnalyticsV2::ReferenceDataSource>
106  
107 The reference data source can be an object in your Amazon S3 bucket.
108 Kinesis Data Analytics reads the object and copies the data into the
109 in-application table that is created. You provide an S3 bucket, object
110 key name, and the resulting in-application table that is created.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method AddApplicationReferenceDataSource in L<Paws::KinesisAnalyticsV2>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126