File Coverage

blib/lib/Paws/EMR/Cluster.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::EMR::Cluster;
2 1     1   410 use Moose;
  1         3  
  1         7  
3             has Applications => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Application]');
4             has AutoScalingRole => (is => 'ro', isa => 'Str');
5             has AutoTerminate => (is => 'ro', isa => 'Bool');
6             has Configurations => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Configuration]');
7             has Ec2InstanceAttributes => (is => 'ro', isa => 'Paws::EMR::Ec2InstanceAttributes');
8             has Id => (is => 'ro', isa => 'Str');
9             has InstanceCollectionType => (is => 'ro', isa => 'Str');
10             has LogUri => (is => 'ro', isa => 'Str');
11             has MasterPublicDnsName => (is => 'ro', isa => 'Str');
12             has Name => (is => 'ro', isa => 'Str');
13             has NormalizedInstanceHours => (is => 'ro', isa => 'Int');
14             has ReleaseLabel => (is => 'ro', isa => 'Str');
15             has RequestedAmiVersion => (is => 'ro', isa => 'Str');
16             has RunningAmiVersion => (is => 'ro', isa => 'Str');
17             has ScaleDownBehavior => (is => 'ro', isa => 'Str');
18             has SecurityConfiguration => (is => 'ro', isa => 'Str');
19             has ServiceRole => (is => 'ro', isa => 'Str');
20             has Status => (is => 'ro', isa => 'Paws::EMR::ClusterStatus');
21             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Tag]');
22             has TerminationProtected => (is => 'ro', isa => 'Bool');
23             has VisibleToAllUsers => (is => 'ro', isa => 'Bool');
24             1;
25              
26             ### main pod documentation begin ###
27              
28             =head1 NAME
29              
30             Paws::EMR::Cluster
31              
32             =head1 USAGE
33              
34             This class represents one of two things:
35              
36             =head3 Arguments in a call to a service
37              
38             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
39             Each attribute should be used as a named argument in the calls that expect this type of object.
40              
41             As an example, if Att1 is expected to be a Paws::EMR::Cluster object:
42              
43             $service_obj->Method(Att1 => { Applications => $value, ..., VisibleToAllUsers => $value });
44              
45             =head3 Results returned from an API call
46              
47             Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::Cluster object:
48              
49             $result = $service_obj->Method(...);
50             $result->Att1->Applications
51              
52             =head1 DESCRIPTION
53              
54             The detailed description of the cluster.
55              
56             =head1 ATTRIBUTES
57              
58              
59             =head2 Applications => ArrayRef[L<Paws::EMR::Application>]
60              
61             The applications installed on this cluster.
62              
63              
64             =head2 AutoScalingRole => Str
65              
66             An IAM role for automatic scaling policies. The default role is
67             C<EMR_AutoScaling_DefaultRole>. The IAM role provides permissions that
68             the automatic scaling feature requires to launch and terminate EC2
69             instances in an instance group.
70              
71              
72             =head2 AutoTerminate => Bool
73              
74             Specifies whether the cluster should terminate after completing all
75             steps.
76              
77              
78             =head2 Configurations => ArrayRef[L<Paws::EMR::Configuration>]
79              
80             Amazon EMR releases 4.x or later.
81              
82             The list of Configurations supplied to the EMR cluster.
83              
84              
85             =head2 Ec2InstanceAttributes => L<Paws::EMR::Ec2InstanceAttributes>
86              
87             Provides information about the EC2 instances in a cluster grouped by
88             category. For example, key name, subnet ID, IAM instance profile, and
89             so on.
90              
91              
92             =head2 Id => Str
93              
94             The unique identifier for the cluster.
95              
96              
97             =head2 InstanceCollectionType => Str
98              
99             The instance fleet configuration is available only in Amazon EMR
100             versions 4.8.0 and later, excluding 5.0.x versions.
101              
102             The instance group configuration of the cluster. A value of
103             C<INSTANCE_GROUP> indicates a uniform instance group configuration. A
104             value of C<INSTANCE_FLEET> indicates an instance fleets configuration.
105              
106              
107             =head2 LogUri => Str
108              
109             The path to the Amazon S3 location where logs for this cluster are
110             stored.
111              
112              
113             =head2 MasterPublicDnsName => Str
114              
115             The public DNS name of the master EC2 instance.
116              
117              
118             =head2 Name => Str
119              
120             The name of the cluster.
121              
122              
123             =head2 NormalizedInstanceHours => Int
124              
125             An approximation of the cost of the cluster, represented in
126             m1.small/hours. This value is incremented one time for every hour an
127             m1.small instance runs. Larger instances are weighted more, so an EC2
128             instance that is roughly four times more expensive would result in the
129             normalized instance hours being incremented by four. This result is
130             only an approximation and does not reflect the actual billing rate.
131              
132              
133             =head2 ReleaseLabel => Str
134              
135             The release label for the Amazon EMR release. For Amazon EMR 3.x and
136             2.x AMIs, use amiVersion instead instead of ReleaseLabel.
137              
138              
139             =head2 RequestedAmiVersion => Str
140              
141             The AMI version requested for this cluster.
142              
143              
144             =head2 RunningAmiVersion => Str
145              
146             The AMI version running on this cluster.
147              
148              
149             =head2 ScaleDownBehavior => Str
150              
151             The way that individual Amazon EC2 instances terminate when an
152             automatic scale-in activity occurs or an instance group is resized.
153             C<TERMINATE_AT_INSTANCE_HOUR> indicates that Amazon EMR terminates
154             nodes at the instance-hour boundary, regardless of when the request to
155             terminate the instance was submitted. This option is only available
156             with Amazon EMR 5.1.0 and later and is the default for clusters created
157             using that version. C<TERMINATE_AT_TASK_COMPLETION> indicates that
158             Amazon EMR blacklists and drains tasks from nodes before terminating
159             the Amazon EC2 instances, regardless of the instance-hour boundary.
160             With either behavior, Amazon EMR removes the least active nodes first
161             and blocks instance termination if it could lead to HDFS corruption.
162             C<TERMINATE_AT_TASK_COMPLETION> is available only in Amazon EMR version
163             4.1.0 and later, and is the default for versions of Amazon EMR earlier
164             than 5.1.0.
165              
166              
167             =head2 SecurityConfiguration => Str
168              
169             The name of the security configuration applied to the cluster.
170              
171              
172             =head2 ServiceRole => Str
173              
174             The IAM role that will be assumed by the Amazon EMR service to access
175             AWS resources on your behalf.
176              
177              
178             =head2 Status => L<Paws::EMR::ClusterStatus>
179              
180             The current status details about the cluster.
181              
182              
183             =head2 Tags => ArrayRef[L<Paws::EMR::Tag>]
184              
185             A list of tags associated with a cluster.
186              
187              
188             =head2 TerminationProtected => Bool
189              
190             Indicates whether Amazon EMR will lock the cluster to prevent the EC2
191             instances from being terminated by an API call or user intervention, or
192             in the event of a cluster error.
193              
194              
195             =head2 VisibleToAllUsers => Bool
196              
197             Indicates whether the cluster is visible to all IAM users of the AWS
198             account associated with the cluster. If this value is set to C<true>,
199             all IAM users of that AWS account can view and manage the cluster if
200             they have the proper policy permissions set. If this value is C<false>,
201             only the IAM user that created the cluster can view and manage it. This
202             value can be changed using the SetVisibleToAllUsers action.
203              
204              
205              
206             =head1 SEE ALSO
207              
208             This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
209              
210             =head1 BUGS and CONTRIBUTIONS
211              
212             The source code is located here: https://github.com/pplu/aws-sdk-perl
213              
214             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
215              
216             =cut
217