blib/lib/Paws/Athena/UpdateDataCatalog.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Athena::UpdateDataCatalog;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has Name => (is => 'ro', isa => 'Str', required => 1);
6 has Parameters => (is => 'ro', isa => 'Paws::Athena::ParametersMap');
7 has Type => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateDataCatalog');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Athena::UpdateDataCatalogOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Athena::UpdateDataCatalog - Arguments for method UpdateDataCatalog on L<Paws::Athena>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateDataCatalog on the
25 L<Amazon Athena|Paws::Athena> service. Use the attributes of this class
26 as arguments to method UpdateDataCatalog.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDataCatalog.
29  
30 =head1 SYNOPSIS
31  
32 my $athena = Paws->service('Athena');
33 my $UpdateDataCatalogOutput = $athena->UpdateDataCatalog(
34 Name => 'MyCatalogNameString',
35 Type => 'LAMBDA',
36 Description => 'MyDescriptionString', # OPTIONAL
37 Parameters => {
38 'MyKeyString' =>
39 'MyParametersMapValue', # key: min: 1, max: 255, value: max: 51200
40 }, # OPTIONAL
41 );
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/athena/UpdateDataCatalog>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 Description => Str
50  
51 New or modified text that describes the data catalog.
52  
53  
54  
55 =head2 B<REQUIRED> Name => Str
56  
57 The name of the data catalog to update. The catalog name must be unique
58 for the AWS account and can use a maximum of 128 alphanumeric,
59 underscore, at sign, or hyphen characters.
60  
61  
62  
63 =head2 Parameters => L<Paws::Athena::ParametersMap>
64  
65 Specifies the Lambda function or functions to use for updating the data
66 catalog. This is a mapping whose values depend on the catalog type.
67  
68 =over
69  
70 =item *
71  
72 For the C<HIVE> data catalog type, use the following syntax. The
73 C<metadata-function> parameter is required. C<The sdk-version>
74 parameter is optional and defaults to the currently supported version.
75  
76 C<metadata-function=I<lambda_arn>, sdk-version=I<version_number>>
77  
78 =item *
79  
80 For the C<LAMBDA> data catalog type, use one of the following sets of
81 required parameters, but not both.
82  
83 =over
84  
85 =item *
86  
87 If you have one Lambda function that processes metadata and another for
88 reading the actual data, use the following syntax. Both parameters are
89 required.
90  
91 C<metadata-function=I<lambda_arn>, record-function=I<lambda_arn>>
92  
93 =item *
94  
95 If you have a composite Lambda function that processes both metadata
96 and data, use the following syntax to specify your Lambda function.
97  
98 C<function=I<lambda_arn>>
99  
100 =back
101  
102 =back
103  
104  
105  
106  
107 =head2 B<REQUIRED> Type => Str
108  
109 Specifies the type of data catalog to update. Specify C<LAMBDA> for a
110 federated catalog or C<HIVE> for an external hive metastore.
111  
112 Do not use the C<GLUE> type. This refers to the C<AwsDataCatalog> that
113 already exists in your account, of which you can have only one.
114 Specifying the C<GLUE> type will result in an C<INVALID_INPUT> error.
115  
116 Valid values are: C<"LAMBDA">, C<"GLUE">, C<"HIVE">
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method UpdateDataCatalog in L<Paws::Athena>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130