File Coverage

blib/lib/Paws/Batch/ComputeResource.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::Batch::ComputeResource;
2 1     1   603 use Moose;
  1         3  
  1         7  
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 role applied to Amazon EC2 instances in a
80             compute environment.
81              
82              
83             =head2 B<REQUIRED> InstanceTypes => ArrayRef[Str|Undef]
84              
85             The instances types that may launched.
86              
87              
88             =head2 B<REQUIRED> MaxvCpus => Int
89              
90             The maximum number of EC2 vCPUs that an environment can reach.
91              
92              
93             =head2 B<REQUIRED> MinvCpus => Int
94              
95             The minimum number of EC2 vCPUs that an environment should maintain.
96              
97              
98             =head2 B<REQUIRED> SecurityGroupIds => ArrayRef[Str|Undef]
99              
100             The EC2 security group that is associated with instances launched in
101             the compute environment.
102              
103              
104             =head2 SpotIamFleetRole => Str
105              
106             The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role
107             applied to a C<SPOT> compute environment.
108              
109              
110             =head2 B<REQUIRED> Subnets => ArrayRef[Str|Undef]
111              
112             The VPC subnets into which the compute resources are launched.
113              
114              
115             =head2 Tags => L<Paws::Batch::TagsMap>
116              
117             Key-value pair tags to be applied to resources that are launched in the
118             compute environment.
119              
120              
121             =head2 B<REQUIRED> Type => Str
122              
123             The type of compute environment.
124              
125              
126              
127             =head1 SEE ALSO
128              
129             This class forms part of L<Paws>, describing an object used in L<Paws::Batch>
130              
131             =head1 BUGS and CONTRIBUTIONS
132              
133             The source code is located here: https://github.com/pplu/aws-sdk-perl
134              
135             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
136              
137             =cut
138