blib/lib/Paws/Batch/Ec2Configuration.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::Batch::Ec2Configuration;
3 use Moose;
4 has ImageIdOverride => (is => 'ro', isa => 'Str', request_name => 'imageIdOverride', traits => ['NameInRequest']);
5 has ImageType => (is => 'ro', isa => 'Str', request_name => 'imageType', traits => ['NameInRequest'], required => 1);
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::Batch::Ec2Configuration
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::Batch::Ec2Configuration object:
25  
26 $service_obj->Method(Att1 => { ImageIdOverride => $value, ..., ImageType => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::Batch::Ec2Configuration object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->ImageIdOverride
34  
35 =head1 DESCRIPTION
36  
37 Provides information used to select Amazon Machine Images (AMIs) for
38 instances in the compute environment. If C<Ec2Configuration> isn't
39 specified, the default is currently C<ECS_AL1> (Amazon Linux
40 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami))
41 for non-GPU, non-Graviton instances. Starting on March 31, 2021, this
42 default will be changing to C<ECS_AL2> (Amazon Linux 2
43 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)).
44  
45 This object isn't applicable to jobs running on Fargate resources.
46  
47 =head1 ATTRIBUTES
48  
49  
50 =head2 ImageIdOverride => Str
51  
52 The AMI ID used for instances launched in the compute environment that
53 match the image type. This setting overrides the C<imageId> set in the
54 C<computeResource> object.
55  
56  
57 =head2 B<REQUIRED> ImageType => Str
58  
59 The image type to match with the instance type to select an AMI. If the
60 C<imageIdOverride> parameter isn't specified, then a recent Amazon
61 ECS-optimized AMI
62 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html)
63 (C<ECS_AL1>) is used. Starting on March 31, 2021, this default will be
64 changing to C<ECS_AL2> (Amazon Linux 2
65 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)).
66  
67 =over
68  
69 =item ECS_AL2
70  
71 Amazon Linux 2
72 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami)E<minus>
73 Default for all AWS Graviton-based instance families (for example,
74 C<C6g>, C<M6g>, C<R6g>, and C<T4g>) and can be used for all non-GPU
75 instance types.
76  
77 =item ECS_AL2_NVIDIA
78  
79 Amazon Linux 2 (GPU)
80 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami)E<minus>Default
81 for all GPU instance families (for example C<P4> and C<G4>) and can be
82 used for all non-AWS Graviton-based instance types.
83  
84 =item ECS_AL1
85  
86 Amazon Linux
87 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami)E<minus>Default
88 for all non-GPU, non-AWS Graviton instance families. Amazon Linux is
89 reaching the end-of-life of standard support. For more information, see
90 Amazon Linux AMI (http://aws.amazon.com/amazon-linux-ami/).
91  
92 =back
93  
94  
95  
96  
97 =head1 SEE ALSO
98  
99 This class forms part of L<Paws>, describing an object used in L<Paws::Batch>
100  
101 =head1 BUGS and CONTRIBUTIONS
102  
103 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
104  
105 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
106  
107 =cut
108