File Coverage

blib/lib/Paws/Athena/CreateNamedQuery.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Athena::CreateNamedQuery;
3 1     1   550 use Moose;
  1         3  
  1         8  
4             has ClientRequestToken => (is => 'ro', isa => 'Str');
5             has Database => (is => 'ro', isa => 'Str', required => 1);
6             has Description => (is => 'ro', isa => 'Str');
7             has Name => (is => 'ro', isa => 'Str', required => 1);
8             has QueryString => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   8115 use MooseX::ClassAttribute;
  1         3  
  1         11  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNamedQuery');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Athena::CreateNamedQueryOutput');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::Athena::CreateNamedQuery - Arguments for method CreateNamedQuery on Paws::Athena
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method CreateNamedQuery on the
26             Amazon Athena service. Use the attributes of this class
27             as arguments to method CreateNamedQuery.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNamedQuery.
30              
31             As an example:
32              
33             $service_obj->CreateNamedQuery(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 ClientRequestToken => Str
41              
42             A unique case-sensitive string used to ensure the request to create the
43             query is idempotent (executes only once). If another
44             C<CreateNamedQuery> request is received, the same response is returned
45             and another query is not created. If a parameter has changed, for
46             example, the C<QueryString>, an error is returned.
47              
48             This token is listed as not required because AWS SDKs (for example the
49             AWS SDK for Java) auto-generate the token for users. If you are not
50             using the AWS SDK or the AWS CLI, you must provide this token or the
51             action will fail.
52              
53              
54              
55             =head2 B<REQUIRED> Database => Str
56              
57             The database to which the query belongs.
58              
59              
60              
61             =head2 Description => Str
62              
63             A brief explanation of the query.
64              
65              
66              
67             =head2 B<REQUIRED> Name => Str
68              
69             The plain language name for the query.
70              
71              
72              
73             =head2 B<REQUIRED> QueryString => Str
74              
75             The text of the query itself. In other words, all query statements.
76              
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method CreateNamedQuery in L<Paws::Athena>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91