blib/lib/Paws/Quicksight/UpdateDataSource.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Quicksight::UpdateDataSource;
3 use Moose;
4 has AwsAccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'AwsAccountId', required => 1);
5 has Credentials => (is => 'ro', isa => 'Paws::Quicksight::DataSourceCredentials');
6 has DataSourceId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'DataSourceId', required => 1);
7 has DataSourceParameters => (is => 'ro', isa => 'Paws::Quicksight::DataSourceParameters');
8 has Name => (is => 'ro', isa => 'Str', required => 1);
9 has SslProperties => (is => 'ro', isa => 'Paws::Quicksight::SslProperties');
10 has VpcConnectionProperties => (is => 'ro', isa => 'Paws::Quicksight::VpcConnectionProperties');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateDataSource');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/accounts/{AwsAccountId}/data-sources/{DataSourceId}');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Quicksight::UpdateDataSourceResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::Quicksight::UpdateDataSource - Arguments for method UpdateDataSource on L<Paws::Quicksight>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method UpdateDataSource on the
29 L<Amazon QuickSight|Paws::Quicksight> service. Use the attributes of this class
30 as arguments to method UpdateDataSource.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDataSource.
33  
34 =head1 SYNOPSIS
35  
36 my $quicksight = Paws->service('Quicksight');
37 my $UpdateDataSourceResponse = $quicksight->UpdateDataSource(
38 AwsAccountId => 'MyAwsAccountId',
39 DataSourceId => 'MyResourceId',
40 Name => 'MyResourceName',
41 Credentials => {
42 CopySourceArn => 'MyCopySourceArn', # OPTIONAL
43 CredentialPair => {
44 Password => 'MyPassword', # min: 1, max: 1024
45 Username => 'MyUsername', # min: 1, max: 64
46 AlternateDataSourceParameters => [
47 {
48 AmazonElasticsearchParameters => {
49 Domain => 'MyDomain', # min: 1, max: 64
50  
51 }, # OPTIONAL
52 AthenaParameters => {
53 WorkGroup => 'MyWorkGroup', # min: 1, max: 128; OPTIONAL
54 }, # OPTIONAL
55 AuroraParameters => {
56 Database => 'MyDatabase', # min: 1, max: 128
57 Host => 'MyHost', # min: 1, max: 256
58 Port => 1, # min: 1, max: 65535
59  
60 }, # OPTIONAL
61 AuroraPostgreSqlParameters => {
62 Database => 'MyDatabase', # min: 1, max: 128
63 Host => 'MyHost', # min: 1, max: 256
64 Port => 1, # min: 1, max: 65535
65  
66 }, # OPTIONAL
67 AwsIotAnalyticsParameters => {
68 DataSetName => 'MyDataSetName', # min: 1, max: 128
69  
70 }, # OPTIONAL
71 JiraParameters => {
72 SiteBaseUrl => 'MySiteBaseUrl', # min: 1, max: 1024
73  
74 }, # OPTIONAL
75 MariaDbParameters => {
76 Database => 'MyDatabase', # min: 1, max: 128
77 Host => 'MyHost', # min: 1, max: 256
78 Port => 1, # min: 1, max: 65535
79  
80 }, # OPTIONAL
81 MySqlParameters => {
82 Database => 'MyDatabase', # min: 1, max: 128
83 Host => 'MyHost', # min: 1, max: 256
84 Port => 1, # min: 1, max: 65535
85  
86 }, # OPTIONAL
87 OracleParameters => {
88 Database => 'MyDatabase', # min: 1, max: 128
89 Host => 'MyHost', # min: 1, max: 256
90 Port => 1, # min: 1, max: 65535
91  
92 }, # OPTIONAL
93 PostgreSqlParameters => {
94 Database => 'MyDatabase', # min: 1, max: 128
95 Host => 'MyHost', # min: 1, max: 256
96 Port => 1, # min: 1, max: 65535
97  
98 }, # OPTIONAL
99 PrestoParameters => {
100 Catalog => 'MyCatalog', # max: 128
101 Host => 'MyHost', # min: 1, max: 256
102 Port => 1, # min: 1, max: 65535
103  
104 }, # OPTIONAL
105 RdsParameters => {
106 Database => 'MyDatabase', # min: 1, max: 128
107 InstanceId => 'MyInstanceId', # min: 1, max: 64
108  
109 }, # OPTIONAL
110 RedshiftParameters => {
111 Database => 'MyDatabase', # min: 1, max: 128
112 ClusterId => 'MyClusterId', # min: 1, max: 64; OPTIONAL
113 Host => 'MyHost', # min: 1, max: 256
114 Port => 1, # max: 65535; OPTIONAL
115 }, # OPTIONAL
116 S3Parameters => {
117 ManifestFileLocation => {
118 Bucket => 'MyS3Bucket', # min: 1, max: 1024
119 Key => 'MyS3Key', # min: 1, max: 1024
120  
121 },
122  
123 }, # OPTIONAL
124 ServiceNowParameters => {
125 SiteBaseUrl => 'MySiteBaseUrl', # min: 1, max: 1024
126  
127 }, # OPTIONAL
128 SnowflakeParameters => {
129 Database => 'MyDatabase', # min: 1, max: 128
130 Host => 'MyHost', # min: 1, max: 256
131 Warehouse => 'MyWarehouse', # max: 128
132  
133 }, # OPTIONAL
134 SparkParameters => {
135 Host => 'MyHost', # min: 1, max: 256
136 Port => 1, # min: 1, max: 65535
137  
138 }, # OPTIONAL
139 SqlServerParameters => {
140 Database => 'MyDatabase', # min: 1, max: 128
141 Host => 'MyHost', # min: 1, max: 256
142 Port => 1, # min: 1, max: 65535
143  
144 }, # OPTIONAL
145 TeradataParameters => {
146 Database => 'MyDatabase', # min: 1, max: 128
147 Host => 'MyHost', # min: 1, max: 256
148 Port => 1, # min: 1, max: 65535
149  
150 }, # OPTIONAL
151 TwitterParameters => {
152 MaxRows => 1, # min: 1
153 Query => 'MyQuery', # min: 1, max: 256
154  
155 }, # OPTIONAL
156 },
157 ...
158 ], # min: 1, max: 50; OPTIONAL
159 }, # OPTIONAL
160 }, # OPTIONAL
161 DataSourceParameters => {
162 AmazonElasticsearchParameters => {
163 Domain => 'MyDomain', # min: 1, max: 64
164  
165 }, # OPTIONAL
166 AthenaParameters => {
167 WorkGroup => 'MyWorkGroup', # min: 1, max: 128; OPTIONAL
168 }, # OPTIONAL
169 AuroraParameters => {
170 Database => 'MyDatabase', # min: 1, max: 128
171 Host => 'MyHost', # min: 1, max: 256
172 Port => 1, # min: 1, max: 65535
173  
174 }, # OPTIONAL
175 AuroraPostgreSqlParameters => {
176 Database => 'MyDatabase', # min: 1, max: 128
177 Host => 'MyHost', # min: 1, max: 256
178 Port => 1, # min: 1, max: 65535
179  
180 }, # OPTIONAL
181 AwsIotAnalyticsParameters => {
182 DataSetName => 'MyDataSetName', # min: 1, max: 128
183  
184 }, # OPTIONAL
185 JiraParameters => {
186 SiteBaseUrl => 'MySiteBaseUrl', # min: 1, max: 1024
187  
188 }, # OPTIONAL
189 MariaDbParameters => {
190 Database => 'MyDatabase', # min: 1, max: 128
191 Host => 'MyHost', # min: 1, max: 256
192 Port => 1, # min: 1, max: 65535
193  
194 }, # OPTIONAL
195 MySqlParameters => {
196 Database => 'MyDatabase', # min: 1, max: 128
197 Host => 'MyHost', # min: 1, max: 256
198 Port => 1, # min: 1, max: 65535
199  
200 }, # OPTIONAL
201 OracleParameters => {
202 Database => 'MyDatabase', # min: 1, max: 128
203 Host => 'MyHost', # min: 1, max: 256
204 Port => 1, # min: 1, max: 65535
205  
206 }, # OPTIONAL
207 PostgreSqlParameters => {
208 Database => 'MyDatabase', # min: 1, max: 128
209 Host => 'MyHost', # min: 1, max: 256
210 Port => 1, # min: 1, max: 65535
211  
212 }, # OPTIONAL
213 PrestoParameters => {
214 Catalog => 'MyCatalog', # max: 128
215 Host => 'MyHost', # min: 1, max: 256
216 Port => 1, # min: 1, max: 65535
217  
218 }, # OPTIONAL
219 RdsParameters => {
220 Database => 'MyDatabase', # min: 1, max: 128
221 InstanceId => 'MyInstanceId', # min: 1, max: 64
222  
223 }, # OPTIONAL
224 RedshiftParameters => {
225 Database => 'MyDatabase', # min: 1, max: 128
226 ClusterId => 'MyClusterId', # min: 1, max: 64; OPTIONAL
227 Host => 'MyHost', # min: 1, max: 256
228 Port => 1, # max: 65535; OPTIONAL
229 }, # OPTIONAL
230 S3Parameters => {
231 ManifestFileLocation => {
232 Bucket => 'MyS3Bucket', # min: 1, max: 1024
233 Key => 'MyS3Key', # min: 1, max: 1024
234  
235 },
236  
237 }, # OPTIONAL
238 ServiceNowParameters => {
239 SiteBaseUrl => 'MySiteBaseUrl', # min: 1, max: 1024
240  
241 }, # OPTIONAL
242 SnowflakeParameters => {
243 Database => 'MyDatabase', # min: 1, max: 128
244 Host => 'MyHost', # min: 1, max: 256
245 Warehouse => 'MyWarehouse', # max: 128
246  
247 }, # OPTIONAL
248 SparkParameters => {
249 Host => 'MyHost', # min: 1, max: 256
250 Port => 1, # min: 1, max: 65535
251  
252 }, # OPTIONAL
253 SqlServerParameters => {
254 Database => 'MyDatabase', # min: 1, max: 128
255 Host => 'MyHost', # min: 1, max: 256
256 Port => 1, # min: 1, max: 65535
257  
258 }, # OPTIONAL
259 TeradataParameters => {
260 Database => 'MyDatabase', # min: 1, max: 128
261 Host => 'MyHost', # min: 1, max: 256
262 Port => 1, # min: 1, max: 65535
263  
264 }, # OPTIONAL
265 TwitterParameters => {
266 MaxRows => 1, # min: 1
267 Query => 'MyQuery', # min: 1, max: 256
268  
269 }, # OPTIONAL
270 }, # OPTIONAL
271 SslProperties => {
272 DisableSsl => 1, # OPTIONAL
273 }, # OPTIONAL
274 VpcConnectionProperties => {
275 VpcConnectionArn => 'MyArn',
276  
277 }, # OPTIONAL
278 );
279  
280 # Results:
281 my $Arn = $UpdateDataSourceResponse->Arn;
282 my $DataSourceId = $UpdateDataSourceResponse->DataSourceId;
283 my $RequestId = $UpdateDataSourceResponse->RequestId;
284 my $Status = $UpdateDataSourceResponse->Status;
285 my $UpdateStatus = $UpdateDataSourceResponse->UpdateStatus;
286  
287 # Returns a L<Paws::Quicksight::UpdateDataSourceResponse> object.
288  
289 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.
290 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/quicksight/UpdateDataSource>
291  
292 =head1 ATTRIBUTES
293  
294  
295 =head2 B<REQUIRED> AwsAccountId => Str
296  
297 The AWS account ID.
298  
299  
300  
301 =head2 Credentials => L<Paws::Quicksight::DataSourceCredentials>
302  
303 The credentials that QuickSight that uses to connect to your underlying
304 source. Currently, only credentials based on user name and password are
305 supported.
306  
307  
308  
309 =head2 B<REQUIRED> DataSourceId => Str
310  
311 The ID of the data source. This ID is unique per AWS Region for each
312 AWS account.
313  
314  
315  
316 =head2 DataSourceParameters => L<Paws::Quicksight::DataSourceParameters>
317  
318 The parameters that QuickSight uses to connect to your underlying
319 source.
320  
321  
322  
323 =head2 B<REQUIRED> Name => Str
324  
325 A display name for the data source.
326  
327  
328  
329 =head2 SslProperties => L<Paws::Quicksight::SslProperties>
330  
331 Secure Socket Layer (SSL) properties that apply when QuickSight
332 connects to your underlying source.
333  
334  
335  
336 =head2 VpcConnectionProperties => L<Paws::Quicksight::VpcConnectionProperties>
337  
338 Use this parameter only when you want QuickSight to use a VPC
339 connection when connecting to your underlying source.
340  
341  
342  
343  
344 =head1 SEE ALSO
345  
346 This class forms part of L<Paws>, documenting arguments for method UpdateDataSource in L<Paws::Quicksight>
347  
348 =head1 BUGS and CONTRIBUTIONS
349  
350 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
351  
352 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
353  
354 =cut
355