line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::Batch::ComputeResource; |
2
|
1
|
|
|
1
|
|
563
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
3
|
|
|
|
|
|
|
has BidPercentage => (is => 'ro', isa => 'Int', request_name => 'bidPercentage', traits => ['NameInRequest']); |
4
|
|
|
|
|
|
|
has DesiredvCpus => (is => 'ro', isa => 'Int', request_name => 'desiredvCpus', traits => ['NameInRequest']); |
5
|
|
|
|
|
|
|
has Ec2KeyPair => (is => 'ro', isa => 'Str', request_name => 'ec2KeyPair', traits => ['NameInRequest']); |
6
|
|
|
|
|
|
|
has ImageId => (is => 'ro', isa => 'Str', request_name => 'imageId', traits => ['NameInRequest']); |
7
|
|
|
|
|
|
|
has InstanceRole => (is => 'ro', isa => 'Str', request_name => 'instanceRole', traits => ['NameInRequest'], required => 1); |
8
|
|
|
|
|
|
|
has InstanceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'instanceTypes', traits => ['NameInRequest'], required => 1); |
9
|
|
|
|
|
|
|
has MaxvCpus => (is => 'ro', isa => 'Int', request_name => 'maxvCpus', traits => ['NameInRequest'], required => 1); |
10
|
|
|
|
|
|
|
has MinvCpus => (is => 'ro', isa => 'Int', request_name => 'minvCpus', traits => ['NameInRequest'], required => 1); |
11
|
|
|
|
|
|
|
has SecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'securityGroupIds', traits => ['NameInRequest'], required => 1); |
12
|
|
|
|
|
|
|
has SpotIamFleetRole => (is => 'ro', isa => 'Str', request_name => 'spotIamFleetRole', traits => ['NameInRequest']); |
13
|
|
|
|
|
|
|
has Subnets => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'subnets', traits => ['NameInRequest'], required => 1); |
14
|
|
|
|
|
|
|
has Tags => (is => 'ro', isa => 'Paws::Batch::TagsMap', request_name => 'tags', traits => ['NameInRequest']); |
15
|
|
|
|
|
|
|
has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest'], required => 1); |
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
### main pod documentation begin ### |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Paws::Batch::ComputeResource |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 USAGE |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This class represents one of two things: |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head3 Arguments in a call to a service |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. |
31
|
|
|
|
|
|
|
Each attribute should be used as a named argument in the calls that expect this type of object. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
As an example, if Att1 is expected to be a Paws::Batch::ComputeResource object: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
$service_obj->Method(Att1 => { BidPercentage => $value, ..., Type => $value }); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head3 Results returned from an API call |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Use accessors for each attribute. If Att1 is expected to be an Paws::Batch::ComputeResource object: |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$result = $service_obj->Method(...); |
42
|
|
|
|
|
|
|
$result->Att1->BidPercentage |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 DESCRIPTION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
An object representing an AWS Batch compute resource. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 BidPercentage => Int |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
The minimum percentage that a Spot Instance price must be when compared |
54
|
|
|
|
|
|
|
with the On-Demand price for that instance type before instances are |
55
|
|
|
|
|
|
|
launched. For example, if your bid percentage is 20%, then the Spot |
56
|
|
|
|
|
|
|
price must be below 20% of the current On-Demand price for that EC2 |
57
|
|
|
|
|
|
|
instance. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 DesiredvCpus => Int |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The desired number of EC2 vCPUS in the compute environment. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 Ec2KeyPair => Str |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The EC2 key pair that is used for instances launched in the compute |
68
|
|
|
|
|
|
|
environment. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 ImageId => Str |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The Amazon Machine Image (AMI) ID used for instances launched in the |
74
|
|
|
|
|
|
|
compute environment. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 B<REQUIRED> InstanceRole => Str |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The Amazon ECS instance profile applied to Amazon EC2 instances in a |
80
|
|
|
|
|
|
|
compute environment. You can specify the short name or full Amazon |
81
|
|
|
|
|
|
|
Resource Name (ARN) of an instance profile. For example, |
82
|
|
|
|
|
|
|
C<ecsInstanceRole> or |
83
|
|
|
|
|
|
|
C<arn:aws:iam::E<lt>aws_account_idE<gt>:instance-profile/ecsInstanceRole>. |
84
|
|
|
|
|
|
|
For more information, see Amazon ECS Instance Role in the I<AWS Batch |
85
|
|
|
|
|
|
|
User Guide>. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 B<REQUIRED> InstanceTypes => ArrayRef[Str|Undef] |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
The instances types that may launched. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 B<REQUIRED> MaxvCpus => Int |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The maximum number of EC2 vCPUs that an environment can reach. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 B<REQUIRED> MinvCpus => Int |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
The minimum number of EC2 vCPUs that an environment should maintain. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 B<REQUIRED> SecurityGroupIds => ArrayRef[Str|Undef] |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
The EC2 security group that is associated with instances launched in |
106
|
|
|
|
|
|
|
the compute environment. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head2 SpotIamFleetRole => Str |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role |
112
|
|
|
|
|
|
|
applied to a C<SPOT> compute environment. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 B<REQUIRED> Subnets => ArrayRef[Str|Undef] |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
The VPC subnets into which the compute resources are launched. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 Tags => L<Paws::Batch::TagsMap> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Key-value pair tags to be applied to resources that are launched in the |
123
|
|
|
|
|
|
|
compute environment. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 B<REQUIRED> Type => Str |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
The type of compute environment. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 SEE ALSO |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
This class forms part of L<Paws>, describing an object used in L<Paws::Batch> |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=cut |
143
|
|
|
|
|
|
|
|