blib/lib/Paws/RedshiftData/ListDatabases.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RedshiftData::ListDatabases;
3 use Moose;
4 has ClusterIdentifier => (is => 'ro', isa => 'Str', required => 1);
5 has Database => (is => 'ro', isa => 'Str');
6 has DbUser => (is => 'ro', isa => 'Str');
7 has MaxResults => (is => 'ro', isa => 'Int');
8 has NextToken => (is => 'ro', isa => 'Str');
9 has SecretArn => (is => 'ro', isa => 'Str');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListDatabases');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedshiftData::ListDatabasesResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::RedshiftData::ListDatabases - Arguments for method ListDatabases on L<Paws::RedshiftData>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ListDatabases on the
27 L<Redshift Data API Service|Paws::RedshiftData> service. Use the attributes of this class
28 as arguments to method ListDatabases.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListDatabases.
31  
32 =head1 SYNOPSIS
33  
34 my $redshift-data = Paws->service('RedshiftData');
35 my $ListDatabasesResponse = $redshift -data->ListDatabases(
36 ClusterIdentifier => 'MyLocation',
37 Database => 'MyString', # OPTIONAL
38 DbUser => 'MyString', # OPTIONAL
39 MaxResults => 1, # OPTIONAL
40 NextToken => 'MyString', # OPTIONAL
41 SecretArn => 'MySecretArn', # OPTIONAL
42 );
43  
44 # Results:
45 my $Databases = $ListDatabasesResponse->Databases;
46 my $NextToken = $ListDatabasesResponse->NextToken;
47  
48 # Returns a L<Paws::RedshiftData::ListDatabasesResponse> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift-data/ListDatabases>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 B<REQUIRED> ClusterIdentifier => Str
57  
58 The cluster identifier. This parameter is required when authenticating
59 using either AWS Secrets Manager or temporary credentials.
60  
61  
62  
63 =head2 Database => Str
64  
65 The name of the database. This parameter is required when
66 authenticating using temporary credentials.
67  
68  
69  
70 =head2 DbUser => Str
71  
72 The database user name. This parameter is required when authenticating
73 using temporary credentials.
74  
75  
76  
77 =head2 MaxResults => Int
78  
79 The maximum number of databases to return in the response. If more
80 databases exist than fit in one response, then C<NextToken> is returned
81 to page through the results.
82  
83  
84  
85 =head2 NextToken => Str
86  
87 A value that indicates the starting point for the next set of response
88 records in a subsequent request. If a value is returned in a response,
89 you can retrieve the next set of records by providing this returned
90 NextToken value in the next NextToken parameter and retrying the
91 command. If the NextToken field is empty, all response records have
92 been retrieved for the request.
93  
94  
95  
96 =head2 SecretArn => Str
97  
98 The name or ARN of the secret that enables access to the database. This
99 parameter is required when authenticating using AWS Secrets Manager.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method ListDatabases in L<Paws::RedshiftData>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115