blib/lib/Paws/ECS/ContainerOverride.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ECS::ContainerOverride;
3 use Moose;
4 has Command => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'command', traits => ['NameInRequest']);
5 has Cpu => (is => 'ro', isa => 'Int', request_name => 'cpu', traits => ['NameInRequest']);
6 has Environment => (is => 'ro', isa => 'ArrayRef[Paws::ECS::KeyValuePair]', request_name => 'environment', traits => ['NameInRequest']);
7 has EnvironmentFiles => (is => 'ro', isa => 'ArrayRef[Paws::ECS::EnvironmentFile]', request_name => 'environmentFiles', traits => ['NameInRequest']);
8 has Memory => (is => 'ro', isa => 'Int', request_name => 'memory', traits => ['NameInRequest']);
9 has MemoryReservation => (is => 'ro', isa => 'Int', request_name => 'memoryReservation', traits => ['NameInRequest']);
10 has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']);
11 has ResourceRequirements => (is => 'ro', isa => 'ArrayRef[Paws::ECS::ResourceRequirement]', request_name => 'resourceRequirements', traits => ['NameInRequest']);
12  
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::ECS::ContainerOverride
20  
21 =head1 USAGE
22  
23 This class represents one of two things:
24  
25 =head3 Arguments in a call to a service
26  
27 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
28 Each attribute should be used as a named argument in the calls that expect this type of object.
29  
30 As an example, if Att1 is expected to be a Paws::ECS::ContainerOverride object:
31  
32 $service_obj->Method(Att1 => { Command => $value, ..., ResourceRequirements => $value });
33  
34 =head3 Results returned from an API call
35  
36 Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::ContainerOverride object:
37  
38 $result = $service_obj->Method(...);
39 $result->Att1->Command
40  
41 =head1 DESCRIPTION
42  
43 The overrides that should be sent to a container. An empty container
44 override can be passed in. An example of an empty container override
45 would be C<{"containerOverrides": [ ] }>. If a non-empty container
46 override is specified, the C<name> parameter must be included.
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 Command => ArrayRef[Str|Undef]
52  
53 The command to send to the container that overrides the default command
54 from the Docker image or the task definition. You must also specify a
55 container name.
56  
57  
58 =head2 Cpu => Int
59  
60 The number of C<cpu> units reserved for the container, instead of the
61 default value from the task definition. You must also specify a
62 container name.
63  
64  
65 =head2 Environment => ArrayRef[L<Paws::ECS::KeyValuePair>]
66  
67 The environment variables to send to the container. You can add new
68 environment variables, which are added to the container at launch, or
69 you can override the existing environment variables from the Docker
70 image or the task definition. You must also specify a container name.
71  
72  
73 =head2 EnvironmentFiles => ArrayRef[L<Paws::ECS::EnvironmentFile>]
74  
75 A list of files containing the environment variables to pass to a
76 container, instead of the value from the container definition.
77  
78  
79 =head2 Memory => Int
80  
81 The hard limit (in MiB) of memory to present to the container, instead
82 of the default value from the task definition. If your container
83 attempts to exceed the memory specified here, the container is killed.
84 You must also specify a container name.
85  
86  
87 =head2 MemoryReservation => Int
88  
89 The soft limit (in MiB) of memory to reserve for the container, instead
90 of the default value from the task definition. You must also specify a
91 container name.
92  
93  
94 =head2 Name => Str
95  
96 The name of the container that receives the override. This parameter is
97 required if any override is specified.
98  
99  
100 =head2 ResourceRequirements => ArrayRef[L<Paws::ECS::ResourceRequirement>]
101  
102 The type and amount of a resource to assign to a container, instead of
103 the default value from the task definition. The only supported resource
104 is a GPU.
105  
106  
107  
108 =head1 SEE ALSO
109  
110 This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
111  
112 =head1 BUGS and CONTRIBUTIONS
113  
114 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
115  
116 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
117  
118 =cut
119