blib/lib/Paws/RedShift/CopyClusterSnapshot.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/RedShift/ClustersMessage.pm ↑ Summary blib/lib/Paws/RedShift/CopyClusterSnapshotResult.pm »
1  
2 package Paws::RedShift::CopyClusterSnapshot;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has ManualSnapshotRetentionPeriod => (is => 'ro', isa => 'Int');
5 1 has SourceSnapshotClusterIdentifier => (is => 'ro', isa => 'Str');
6 1 has SourceSnapshotIdentifier => (is => 'ro', isa => 'Str', required => 1);
7 1 has TargetSnapshotIdentifier => (is => 'ro', isa => 'Str', required => 1);
8  
9 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CopyClusterSnapshot');
12 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::CopyClusterSnapshotResult');
13 1 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CopyClusterSnapshotResult');
14 1 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::RedShift::CopyClusterSnapshot - Arguments for method CopyClusterSnapshot on L<Paws::RedShift>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CopyClusterSnapshot on the
25 L<Amazon Redshift|Paws::RedShift> service. Use the attributes of this class
26 as arguments to method CopyClusterSnapshot.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CopyClusterSnapshot.
29  
30 =head1 SYNOPSIS
31  
32 my $redshift = Paws->service('RedShift');
33 my $CopyClusterSnapshotResult = $redshift->CopyClusterSnapshot(
34 SourceSnapshotIdentifier => 'MyString',
35 TargetSnapshotIdentifier => 'MyString',
36 ManualSnapshotRetentionPeriod => 1, # OPTIONAL
37 SourceSnapshotClusterIdentifier => 'MyString', # OPTIONAL
38 );
39  
40 # Results:
41 my $Snapshot = $CopyClusterSnapshotResult->Snapshot;
42  
43 # Returns a L<Paws::RedShift::CopyClusterSnapshotResult> object.
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift/CopyClusterSnapshot>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 ManualSnapshotRetentionPeriod => Int
52  
53 The number of days that a manual snapshot is retained. If the value is
54 -1, the manual snapshot is retained indefinitely.
55  
56 The value must be either -1 or an integer between 1 and 3,653.
57  
58 The default value is -1.
59  
60  
61  
62 =head2 SourceSnapshotClusterIdentifier => Str
63  
64 The identifier of the cluster the source snapshot was created from.
65 This parameter is required if your IAM user has a policy containing a
66 snapshot resource element that specifies anything other than * for the
67 cluster name.
68  
69 Constraints:
70  
71 =over
72  
73 =item *
74  
75 Must be the identifier for a valid cluster.
76  
77 =back
78  
79  
80  
81  
82 =head2 B<REQUIRED> SourceSnapshotIdentifier => Str
83  
84 The identifier for the source snapshot.
85  
86 Constraints:
87  
88 =over
89  
90 =item *
91  
92 Must be the identifier for a valid automated snapshot whose state is
93 C<available>.
94  
95 =back
96  
97  
98  
99  
100 =head2 B<REQUIRED> TargetSnapshotIdentifier => Str
101  
102 The identifier given to the new manual snapshot.
103  
104 Constraints:
105  
106 =over
107  
108 =item *
109  
110 Cannot be null, empty, or blank.
111  
112 =item *
113  
114 Must contain from 1 to 255 alphanumeric characters or hyphens.
115  
116 =item *
117  
118 First character must be a letter.
119  
120 =item *
121  
122 Cannot end with a hyphen or contain two consecutive hyphens.
123  
124 =item *
125  
126 Must be unique for the AWS account that is making the request.
127  
128 =back
129  
130  
131  
132  
133  
134 =head1 SEE ALSO
135  
136 This class forms part of L<Paws>, documenting arguments for method CopyClusterSnapshot in L<Paws::RedShift>
137  
138 =head1 BUGS and CONTRIBUTIONS
139  
140 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
141  
142 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
143  
144 =cut
145  
« blib/lib/Paws/RedShift/ClustersMessage.pm ↑ Summary blib/lib/Paws/RedShift/CopyClusterSnapshotResult.pm »