blib/lib/Paws/EMR/Cluster.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::EMR::Cluster;
3 use Moose;
4 has Applications => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Application]');
5 has AutoScalingRole => (is => 'ro', isa => 'Str');
6 has AutoTerminate => (is => 'ro', isa => 'Bool');
7 has ClusterArn => (is => 'ro', isa => 'Str');
8 has Configurations => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Configuration]');
9 has CustomAmiId => (is => 'ro', isa => 'Str');
10 has EbsRootVolumeSize => (is => 'ro', isa => 'Int');
11 has Ec2InstanceAttributes => (is => 'ro', isa => 'Paws::EMR::Ec2InstanceAttributes');
12 has Id => (is => 'ro', isa => 'Str');
13 has InstanceCollectionType => (is => 'ro', isa => 'Str');
14 has KerberosAttributes => (is => 'ro', isa => 'Paws::EMR::KerberosAttributes');
15 has LogEncryptionKmsKeyId => (is => 'ro', isa => 'Str');
16 has LogUri => (is => 'ro', isa => 'Str');
17 has MasterPublicDnsName => (is => 'ro', isa => 'Str');
18 has Name => (is => 'ro', isa => 'Str');
19 has NormalizedInstanceHours => (is => 'ro', isa => 'Int');
20 has OutpostArn => (is => 'ro', isa => 'Str');
21 has PlacementGroups => (is => 'ro', isa => 'ArrayRef[Paws::EMR::PlacementGroupConfig]');
22 has ReleaseLabel => (is => 'ro', isa => 'Str');
23 has RepoUpgradeOnBoot => (is => 'ro', isa => 'Str');
24 has RequestedAmiVersion => (is => 'ro', isa => 'Str');
25 has RunningAmiVersion => (is => 'ro', isa => 'Str');
26 has ScaleDownBehavior => (is => 'ro', isa => 'Str');
27 has SecurityConfiguration => (is => 'ro', isa => 'Str');
28 has ServiceRole => (is => 'ro', isa => 'Str');
29 has Status => (is => 'ro', isa => 'Paws::EMR::ClusterStatus');
30 has StepConcurrencyLevel => (is => 'ro', isa => 'Int');
31 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Tag]');
32 has TerminationProtected => (is => 'ro', isa => 'Bool');
33 has VisibleToAllUsers => (is => 'ro', isa => 'Bool');
34  
35 1;
36  
37 ### main pod documentation begin ###
38  
39 =head1 NAME
40  
41 Paws::EMR::Cluster
42  
43 =head1 USAGE
44  
45 This class represents one of two things:
46  
47 =head3 Arguments in a call to a service
48  
49 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
50 Each attribute should be used as a named argument in the calls that expect this type of object.
51  
52 As an example, if Att1 is expected to be a Paws::EMR::Cluster object:
53  
54 $service_obj->Method(Att1 => { Applications => $value, ..., VisibleToAllUsers => $value });
55  
56 =head3 Results returned from an API call
57  
58 Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::Cluster object:
59  
60 $result = $service_obj->Method(...);
61 $result->Att1->Applications
62  
63 =head1 DESCRIPTION
64  
65 The detailed description of the cluster.
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 Applications => ArrayRef[L<Paws::EMR::Application>]
71  
72 The applications installed on this cluster.
73  
74  
75 =head2 AutoScalingRole => Str
76  
77 An IAM role for automatic scaling policies. The default role is
78 C<EMR_AutoScaling_DefaultRole>. The IAM role provides permissions that
79 the automatic scaling feature requires to launch and terminate EC2
80 instances in an instance group.
81  
82  
83 =head2 AutoTerminate => Bool
84  
85 Specifies whether the cluster should terminate after completing all
86 steps.
87  
88  
89 =head2 ClusterArn => Str
90  
91 The Amazon Resource Name of the cluster.
92  
93  
94 =head2 Configurations => ArrayRef[L<Paws::EMR::Configuration>]
95  
96 Applies only to Amazon EMR releases 4.x and later. The list of
97 Configurations supplied to the EMR cluster.
98  
99  
100 =head2 CustomAmiId => Str
101  
102 Available only in Amazon EMR version 5.7.0 and later. The ID of a
103 custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI.
104  
105  
106 =head2 EbsRootVolumeSize => Int
107  
108 The size, in GiB, of the Amazon EBS root device volume of the Linux AMI
109 that is used for each EC2 instance. Available in Amazon EMR version 4.x
110 and later.
111  
112  
113 =head2 Ec2InstanceAttributes => L<Paws::EMR::Ec2InstanceAttributes>
114  
115 Provides information about the EC2 instances in a cluster grouped by
116 category. For example, key name, subnet ID, IAM instance profile, and
117 so on.
118  
119  
120 =head2 Id => Str
121  
122 The unique identifier for the cluster.
123  
124  
125 =head2 InstanceCollectionType => Str
126  
127 The instance fleet configuration is available only in Amazon EMR
128 versions 4.8.0 and later, excluding 5.0.x versions.
129  
130 The instance group configuration of the cluster. A value of
131 C<INSTANCE_GROUP> indicates a uniform instance group configuration. A
132 value of C<INSTANCE_FLEET> indicates an instance fleets configuration.
133  
134  
135 =head2 KerberosAttributes => L<Paws::EMR::KerberosAttributes>
136  
137 Attributes for Kerberos configuration when Kerberos authentication is
138 enabled using a security configuration. For more information see Use
139 Kerberos Authentication
140 (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html)
141 in the I<Amazon EMR Management Guide>.
142  
143  
144 =head2 LogEncryptionKmsKeyId => Str
145  
146 The AWS KMS customer master key (CMK) used for encrypting log files.
147 This attribute is only available with EMR version 5.30.0 and later,
148 excluding EMR 6.0.0.
149  
150  
151 =head2 LogUri => Str
152  
153 The path to the Amazon S3 location where logs for this cluster are
154 stored.
155  
156  
157 =head2 MasterPublicDnsName => Str
158  
159 The DNS name of the master node. If the cluster is on a private subnet,
160 this is the private DNS name. On a public subnet, this is the public
161 DNS name.
162  
163  
164 =head2 Name => Str
165  
166 The name of the cluster.
167  
168  
169 =head2 NormalizedInstanceHours => Int
170  
171 An approximation of the cost of the cluster, represented in
172 m1.small/hours. This value is incremented one time for every hour an
173 m1.small instance runs. Larger instances are weighted more, so an EC2
174 instance that is roughly four times more expensive would result in the
175 normalized instance hours being incremented by four. This result is
176 only an approximation and does not reflect the actual billing rate.
177  
178  
179 =head2 OutpostArn => Str
180  
181 The Amazon Resource Name (ARN) of the Outpost where the cluster is
182 launched.
183  
184  
185 =head2 PlacementGroups => ArrayRef[L<Paws::EMR::PlacementGroupConfig>]
186  
187 Placement group configured for an Amazon EMR cluster.
188  
189  
190 =head2 ReleaseLabel => Str
191  
192 The Amazon EMR release label, which determines the version of
193 open-source application packages installed on the cluster. Release
194 labels are in the form C<emr-x.x.x>, where x.x.x is an Amazon EMR
195 release version such as C<emr-5.14.0>. For more information about
196 Amazon EMR release versions and included application versions and
197 features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/
198 (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). The release
199 label applies only to Amazon EMR releases version 4.0 and later.
200 Earlier versions use C<AmiVersion>.
201  
202  
203 =head2 RepoUpgradeOnBoot => Str
204  
205 Applies only when C<CustomAmiID> is used. Specifies the type of updates
206 that are applied from the Amazon Linux AMI package repositories when an
207 instance boots using the AMI.
208  
209  
210 =head2 RequestedAmiVersion => Str
211  
212 The AMI version requested for this cluster.
213  
214  
215 =head2 RunningAmiVersion => Str
216  
217 The AMI version running on this cluster.
218  
219  
220 =head2 ScaleDownBehavior => Str
221  
222 The way that individual Amazon EC2 instances terminate when an
223 automatic scale-in activity occurs or an instance group is resized.
224 C<TERMINATE_AT_INSTANCE_HOUR> indicates that Amazon EMR terminates
225 nodes at the instance-hour boundary, regardless of when the request to
226 terminate the instance was submitted. This option is only available
227 with Amazon EMR 5.1.0 and later and is the default for clusters created
228 using that version. C<TERMINATE_AT_TASK_COMPLETION> indicates that
229 Amazon EMR adds nodes to a deny list and drains tasks from nodes before
230 terminating the Amazon EC2 instances, regardless of the instance-hour
231 boundary. With either behavior, Amazon EMR removes the least active
232 nodes first and blocks instance termination if it could lead to HDFS
233 corruption. C<TERMINATE_AT_TASK_COMPLETION> is available only in Amazon
234 EMR version 4.1.0 and later, and is the default for versions of Amazon
235 EMR earlier than 5.1.0.
236  
237  
238 =head2 SecurityConfiguration => Str
239  
240 The name of the security configuration applied to the cluster.
241  
242  
243 =head2 ServiceRole => Str
244  
245 The IAM role that will be assumed by the Amazon EMR service to access
246 AWS resources on your behalf.
247  
248  
249 =head2 Status => L<Paws::EMR::ClusterStatus>
250  
251 The current status details about the cluster.
252  
253  
254 =head2 StepConcurrencyLevel => Int
255  
256 Specifies the number of steps that can be executed concurrently.
257  
258  
259 =head2 Tags => ArrayRef[L<Paws::EMR::Tag>]
260  
261 A list of tags associated with a cluster.
262  
263  
264 =head2 TerminationProtected => Bool
265  
266 Indicates whether Amazon EMR will lock the cluster to prevent the EC2
267 instances from being terminated by an API call or user intervention, or
268 in the event of a cluster error.
269  
270  
271 =head2 VisibleToAllUsers => Bool
272  
273 Indicates whether the cluster is visible to all IAM users of the AWS
274 account associated with the cluster. The default value, C<true>,
275 indicates that all IAM users in the AWS account can perform cluster
276 actions if they have the proper IAM policy permissions. If this value
277 is C<false>, only the IAM user that created the cluster can perform
278 actions. This value can be changed on a running cluster by using the
279 SetVisibleToAllUsers action. You can override the default value of
280 C<true> when you create a cluster by using the C<VisibleToAllUsers>
281 parameter of the C<RunJobFlow> action.
282  
283  
284  
285 =head1 SEE ALSO
286  
287 This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
288  
289 =head1 BUGS and CONTRIBUTIONS
290  
291 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
292  
293 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
294  
295 =cut
296