File Coverage

blib/lib/Paws/RedShift/ModifyCluster.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::RedShift::ModifyCluster;
3 1     1   314 use Moose;
  1         3  
  1         5  
4             has AllowVersionUpgrade => (is => 'ro', isa => 'Bool');
5             has AutomatedSnapshotRetentionPeriod => (is => 'ro', isa => 'Int');
6             has ClusterIdentifier => (is => 'ro', isa => 'Str', required => 1);
7             has ClusterParameterGroupName => (is => 'ro', isa => 'Str');
8             has ClusterSecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
9             has ClusterType => (is => 'ro', isa => 'Str');
10             has ClusterVersion => (is => 'ro', isa => 'Str');
11             has ElasticIp => (is => 'ro', isa => 'Str');
12             has EnhancedVpcRouting => (is => 'ro', isa => 'Bool');
13             has HsmClientCertificateIdentifier => (is => 'ro', isa => 'Str');
14             has HsmConfigurationIdentifier => (is => 'ro', isa => 'Str');
15             has MasterUserPassword => (is => 'ro', isa => 'Str');
16             has NewClusterIdentifier => (is => 'ro', isa => 'Str');
17             has NodeType => (is => 'ro', isa => 'Str');
18             has NumberOfNodes => (is => 'ro', isa => 'Int');
19             has PreferredMaintenanceWindow => (is => 'ro', isa => 'Str');
20             has PubliclyAccessible => (is => 'ro', isa => 'Bool');
21             has VpcSecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
22              
23 1     1   5527 use MooseX::ClassAttribute;
  1         3  
  1         7  
24              
25             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyCluster');
26             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::ModifyClusterResult');
27             class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyClusterResult');
28             1;
29              
30             ### main pod documentation begin ###
31              
32             =head1 NAME
33              
34             Paws::RedShift::ModifyCluster - Arguments for method ModifyCluster on Paws::RedShift
35              
36             =head1 DESCRIPTION
37              
38             This class represents the parameters used for calling the method ModifyCluster on the
39             Amazon Redshift service. Use the attributes of this class
40             as arguments to method ModifyCluster.
41              
42             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyCluster.
43              
44             As an example:
45              
46             $service_obj->ModifyCluster(Att1 => $value1, Att2 => $value2, ...);
47              
48             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.
49              
50             =head1 ATTRIBUTES
51              
52              
53             =head2 AllowVersionUpgrade => Bool
54              
55             If C<true>, major version upgrades will be applied automatically to the
56             cluster during the maintenance window.
57              
58             Default: C<false>
59              
60              
61              
62             =head2 AutomatedSnapshotRetentionPeriod => Int
63              
64             The number of days that automated snapshots are retained. If the value
65             is 0, automated snapshots are disabled. Even if automated snapshots are
66             disabled, you can still create manual snapshots when you want with
67             CreateClusterSnapshot.
68              
69             If you decrease the automated snapshot retention period from its
70             current value, existing automated snapshots that fall outside of the
71             new retention period will be immediately deleted.
72              
73             Default: Uses existing setting.
74              
75             Constraints: Must be a value from 0 to 35.
76              
77              
78              
79             =head2 B<REQUIRED> ClusterIdentifier => Str
80              
81             The unique identifier of the cluster to be modified.
82              
83             Example: C<examplecluster>
84              
85              
86              
87             =head2 ClusterParameterGroupName => Str
88              
89             The name of the cluster parameter group to apply to this cluster. This
90             change is applied only after the cluster is rebooted. To reboot a
91             cluster use RebootCluster.
92              
93             Default: Uses existing setting.
94              
95             Constraints: The cluster parameter group must be in the same parameter
96             group family that matches the cluster version.
97              
98              
99              
100             =head2 ClusterSecurityGroups => ArrayRef[Str|Undef]
101              
102             A list of cluster security groups to be authorized on this cluster.
103             This change is asynchronously applied as soon as possible.
104              
105             Security groups currently associated with the cluster, and not in the
106             list of groups to apply, will be revoked from the cluster.
107              
108             Constraints:
109              
110             =over
111              
112             =item *
113              
114             Must be 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             =back
125              
126              
127              
128              
129             =head2 ClusterType => Str
130              
131             The new cluster type.
132              
133             When you submit your cluster resize request, your existing cluster goes
134             into a read-only mode. After Amazon Redshift provisions a new cluster
135             based on your resize requirements, there will be outage for a period
136             while the old cluster is deleted and your connection is switched to the
137             new cluster. You can use DescribeResize to track the progress of the
138             resize request.
139              
140             Valid Values: C< multi-node | single-node>
141              
142              
143              
144             =head2 ClusterVersion => Str
145              
146             The new version number of the Amazon Redshift engine to upgrade to.
147              
148             For major version upgrades, if a non-default cluster parameter group is
149             currently in use, a new cluster parameter group in the cluster
150             parameter group family for the new version must be specified. The new
151             cluster parameter group can be the default for that cluster parameter
152             group family. For more information about parameters and parameter
153             groups, go to Amazon Redshift Parameter Groups in the I<Amazon Redshift
154             Cluster Management Guide>.
155              
156             Example: C<1.0>
157              
158              
159              
160             =head2 ElasticIp => Str
161              
162             The Elastic IP (EIP) address for the cluster.
163              
164             Constraints: The cluster must be provisioned in EC2-VPC and
165             publicly-accessible through an Internet gateway. For more information
166             about provisioning clusters in EC2-VPC, go to Supported Platforms to
167             Launch Your Cluster in the Amazon Redshift Cluster Management Guide.
168              
169              
170              
171             =head2 EnhancedVpcRouting => Bool
172              
173             An option that specifies whether to create the cluster with enhanced
174             VPC routing enabled. To create a cluster that uses enhanced VPC
175             routing, the cluster must be in a VPC. For more information, see
176             Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
177              
178             If this option is C<true>, enhanced VPC routing is enabled.
179              
180             Default: false
181              
182              
183              
184             =head2 HsmClientCertificateIdentifier => Str
185              
186             Specifies the name of the HSM client certificate the Amazon Redshift
187             cluster uses to retrieve the data encryption keys stored in an HSM.
188              
189              
190              
191             =head2 HsmConfigurationIdentifier => Str
192              
193             Specifies the name of the HSM configuration that contains the
194             information the Amazon Redshift cluster can use to retrieve and store
195             keys in an HSM.
196              
197              
198              
199             =head2 MasterUserPassword => Str
200              
201             The new password for the cluster master user. This change is
202             asynchronously applied as soon as possible. Between the time of the
203             request and the completion of the request, the C<MasterUserPassword>
204             element exists in the C<PendingModifiedValues> element of the operation
205             response.
206              
207             Operations never return the password, so this operation provides a way
208             to regain access to the master user account for a cluster if the
209             password is lost.
210              
211             Default: Uses existing setting.
212              
213             Constraints:
214              
215             =over
216              
217             =item *
218              
219             Must be between 8 and 64 characters in length.
220              
221             =item *
222              
223             Must contain at least one uppercase letter.
224              
225             =item *
226              
227             Must contain at least one lowercase letter.
228              
229             =item *
230              
231             Must contain one number.
232              
233             =item *
234              
235             Can be any printable ASCII character (ASCII code 33 to 126) except '
236             (single quote), " (double quote), \, /, @, or space.
237              
238             =back
239              
240              
241              
242              
243             =head2 NewClusterIdentifier => Str
244              
245             The new identifier for the cluster.
246              
247             Constraints:
248              
249             =over
250              
251             =item *
252              
253             Must contain from 1 to 63 alphanumeric characters or hyphens.
254              
255             =item *
256              
257             Alphabetic characters must be lowercase.
258              
259             =item *
260              
261             First character must be a letter.
262              
263             =item *
264              
265             Cannot end with a hyphen or contain two consecutive hyphens.
266              
267             =item *
268              
269             Must be unique for all clusters within an AWS account.
270              
271             =back
272              
273             Example: C<examplecluster>
274              
275              
276              
277             =head2 NodeType => Str
278              
279             The new node type of the cluster. If you specify a new node type, you
280             must also specify the number of nodes parameter.
281              
282             When you submit your request to resize a cluster, Amazon Redshift sets
283             access permissions for the cluster to read-only. After Amazon Redshift
284             provisions a new cluster according to your resize requirements, there
285             will be a temporary outage while the old cluster is deleted and your
286             connection is switched to the new cluster. When the new connection is
287             complete, the original access permissions for the cluster are restored.
288             You can use DescribeResize to track the progress of the resize request.
289              
290             Valid Values: C< ds1.xlarge> | C<ds1.8xlarge> | C< ds2.xlarge> |
291             C<ds2.8xlarge> | C<dc1.large> | C<dc1.8xlarge>.
292              
293              
294              
295             =head2 NumberOfNodes => Int
296              
297             The new number of nodes of the cluster. If you specify a new number of
298             nodes, you must also specify the node type parameter.
299              
300             When you submit your request to resize a cluster, Amazon Redshift sets
301             access permissions for the cluster to read-only. After Amazon Redshift
302             provisions a new cluster according to your resize requirements, there
303             will be a temporary outage while the old cluster is deleted and your
304             connection is switched to the new cluster. When the new connection is
305             complete, the original access permissions for the cluster are restored.
306             You can use DescribeResize to track the progress of the resize request.
307              
308             Valid Values: Integer greater than C<0>.
309              
310              
311              
312             =head2 PreferredMaintenanceWindow => Str
313              
314             The weekly time range (in UTC) during which system maintenance can
315             occur, if necessary. If system maintenance is necessary during the
316             window, it may result in an outage.
317              
318             This maintenance window change is made immediately. If the new
319             maintenance window indicates the current time, there must be at least
320             120 minutes between the current time and end of the window in order to
321             ensure that pending changes are applied.
322              
323             Default: Uses existing setting.
324              
325             Format: ddd:hh24:mi-ddd:hh24:mi, for example C<wed:07:30-wed:08:00>.
326              
327             Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
328              
329             Constraints: Must be at least 30 minutes.
330              
331              
332              
333             =head2 PubliclyAccessible => Bool
334              
335             If C<true>, the cluster can be accessed from a public network. Only
336             clusters in VPCs can be set to be publicly available.
337              
338              
339              
340             =head2 VpcSecurityGroupIds => ArrayRef[Str|Undef]
341              
342             A list of virtual private cloud (VPC) security groups to be associated
343             with the cluster.
344              
345              
346              
347              
348             =head1 SEE ALSO
349              
350             This class forms part of L<Paws>, documenting arguments for method ModifyCluster in L<Paws::RedShift>
351              
352             =head1 BUGS and CONTRIBUTIONS
353              
354             The source code is located here: https://github.com/pplu/aws-sdk-perl
355              
356             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
357              
358             =cut
359