blib/lib/Paws/RedShift/RestoreTableFromClusterSnapshot.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RedShift::RestoreTableFromClusterSnapshot;
3 use Moose;
4 has ClusterIdentifier => (is => 'ro', isa => 'Str', required => 1);
5 has EnableCaseSensitiveIdentifier => (is => 'ro', isa => 'Bool');
6 has NewTableName => (is => 'ro', isa => 'Str', required => 1);
7 has SnapshotIdentifier => (is => 'ro', isa => 'Str', required => 1);
8 has SourceDatabaseName => (is => 'ro', isa => 'Str', required => 1);
9 has SourceSchemaName => (is => 'ro', isa => 'Str');
10 has SourceTableName => (is => 'ro', isa => 'Str', required => 1);
11 has TargetDatabaseName => (is => 'ro', isa => 'Str');
12 has TargetSchemaName => (is => 'ro', isa => 'Str');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'RestoreTableFromClusterSnapshot');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::RestoreTableFromClusterSnapshotResult');
18 class_has _result_key => (isa => 'Str', is => 'ro', default => 'RestoreTableFromClusterSnapshotResult');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::RedShift::RestoreTableFromClusterSnapshot - Arguments for method RestoreTableFromClusterSnapshot on L<Paws::RedShift>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method RestoreTableFromClusterSnapshot on the
30 L<Amazon Redshift|Paws::RedShift> service. Use the attributes of this class
31 as arguments to method RestoreTableFromClusterSnapshot.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RestoreTableFromClusterSnapshot.
34  
35 =head1 SYNOPSIS
36  
37 my $redshift = Paws->service('RedShift');
38 my $RestoreTableFromClusterSnapshotResult =
39 $redshift->RestoreTableFromClusterSnapshot(
40 ClusterIdentifier => 'MyString',
41 NewTableName => 'MyString',
42 SnapshotIdentifier => 'MyString',
43 SourceDatabaseName => 'MyString',
44 SourceTableName => 'MyString',
45 EnableCaseSensitiveIdentifier => 1, # OPTIONAL
46 SourceSchemaName => 'MyString', # OPTIONAL
47 TargetDatabaseName => 'MyString', # OPTIONAL
48 TargetSchemaName => 'MyString', # OPTIONAL
49 );
50  
51 # Results:
52 my $TableRestoreStatus =
53 $RestoreTableFromClusterSnapshotResult->TableRestoreStatus;
54  
55 # Returns a L<Paws::RedShift::RestoreTableFromClusterSnapshotResult> object.
56  
57 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.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift/RestoreTableFromClusterSnapshot>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 B<REQUIRED> ClusterIdentifier => Str
64  
65 The identifier of the Amazon Redshift cluster to restore the table to.
66  
67  
68  
69 =head2 EnableCaseSensitiveIdentifier => Bool
70  
71 Indicates whether name identifiers for database, schema, and table are
72 case sensitive. If C<true>, the names are case sensitive. If C<false>
73 (default), the names are not case sensitive.
74  
75  
76  
77 =head2 B<REQUIRED> NewTableName => Str
78  
79 The name of the table to create as a result of the current request.
80  
81  
82  
83 =head2 B<REQUIRED> SnapshotIdentifier => Str
84  
85 The identifier of the snapshot to restore the table from. This snapshot
86 must have been created from the Amazon Redshift cluster specified by
87 the C<ClusterIdentifier> parameter.
88  
89  
90  
91 =head2 B<REQUIRED> SourceDatabaseName => Str
92  
93 The name of the source database that contains the table to restore
94 from.
95  
96  
97  
98 =head2 SourceSchemaName => Str
99  
100 The name of the source schema that contains the table to restore from.
101 If you do not specify a C<SourceSchemaName> value, the default is
102 C<public>.
103  
104  
105  
106 =head2 B<REQUIRED> SourceTableName => Str
107  
108 The name of the source table to restore from.
109  
110  
111  
112 =head2 TargetDatabaseName => Str
113  
114 The name of the database to restore the table to.
115  
116  
117  
118 =head2 TargetSchemaName => Str
119  
120 The name of the schema to restore the table to.
121  
122  
123  
124  
125 =head1 SEE ALSO
126  
127 This class forms part of L<Paws>, documenting arguments for method RestoreTableFromClusterSnapshot in L<Paws::RedShift>
128  
129 =head1 BUGS and CONTRIBUTIONS
130  
131 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
132  
133 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
134  
135 =cut
136