File Coverage

blib/lib/Paws/ECS/ContainerOverride.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::ECS::ContainerOverride;
2 1     1   587 use Moose;
  1         4  
  1         11  
3             has Command => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'command', traits => ['NameInRequest']);
4             has Cpu => (is => 'ro', isa => 'Int', request_name => 'cpu', traits => ['NameInRequest']);
5             has Environment => (is => 'ro', isa => 'ArrayRef[Paws::ECS::KeyValuePair]', request_name => 'environment', traits => ['NameInRequest']);
6             has Memory => (is => 'ro', isa => 'Int', request_name => 'memory', traits => ['NameInRequest']);
7             has MemoryReservation => (is => 'ro', isa => 'Int', request_name => 'memoryReservation', traits => ['NameInRequest']);
8             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']);
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::ECS::ContainerOverride
16              
17             =head1 USAGE
18              
19             This class represents one of two things:
20              
21             =head3 Arguments in a call to a service
22              
23             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24             Each attribute should be used as a named argument in the calls that expect this type of object.
25              
26             As an example, if Att1 is expected to be a Paws::ECS::ContainerOverride object:
27              
28             $service_obj->Method(Att1 => { Command => $value, ..., Name => $value });
29              
30             =head3 Results returned from an API call
31              
32             Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::ContainerOverride object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->Command
36              
37             =head1 DESCRIPTION
38              
39             The overrides that should be sent to a container.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 Command => ArrayRef[Str|Undef]
45              
46             The command to send to the container that overrides the default command
47             from the Docker image or the task definition. You must also specify a
48             container name.
49              
50              
51             =head2 Cpu => Int
52              
53             The number of C<cpu> units reserved for the container, instead of the
54             default value from the task definition. You must also specify a
55             container name.
56              
57              
58             =head2 Environment => ArrayRef[L<Paws::ECS::KeyValuePair>]
59              
60             The environment variables to send to the container. You can add new
61             environment variables, which are added to the container at launch, or
62             you can override the existing environment variables from the Docker
63             image or the task definition. You must also specify a container name.
64              
65              
66             =head2 Memory => Int
67              
68             The hard limit (in MiB) of memory to present to the container, instead
69             of the default value from the task definition. If your container
70             attempts to exceed the memory specified here, the container is killed.
71             You must also specify a container name.
72              
73              
74             =head2 MemoryReservation => Int
75              
76             The soft limit (in MiB) of memory to reserve for the container, instead
77             of the default value from the task definition. You must also specify a
78             container name.
79              
80              
81             =head2 Name => Str
82              
83             The name of the container that receives the override. This parameter is
84             required if any override is specified.
85              
86              
87              
88             =head1 SEE ALSO
89              
90             This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
91              
92             =head1 BUGS and CONTRIBUTIONS
93              
94             The source code is located here: https://github.com/pplu/aws-sdk-perl
95              
96             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
97              
98             =cut
99