File Coverage

blib/lib/Paws/Batch/ContainerProperties.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::ContainerProperties;
2 1     1   559 use Moose;
  1         3  
  1         7  
3             has Command => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'command', traits => ['NameInRequest']);
4             has Environment => (is => 'ro', isa => 'ArrayRef[Paws::Batch::KeyValuePair]', request_name => 'environment', traits => ['NameInRequest']);
5             has Image => (is => 'ro', isa => 'Str', request_name => 'image', traits => ['NameInRequest'], required => 1);
6             has JobRoleArn => (is => 'ro', isa => 'Str', request_name => 'jobRoleArn', traits => ['NameInRequest']);
7             has Memory => (is => 'ro', isa => 'Int', request_name => 'memory', traits => ['NameInRequest'], required => 1);
8             has MountPoints => (is => 'ro', isa => 'ArrayRef[Paws::Batch::MountPoint]', request_name => 'mountPoints', traits => ['NameInRequest']);
9             has Privileged => (is => 'ro', isa => 'Bool', request_name => 'privileged', traits => ['NameInRequest']);
10             has ReadonlyRootFilesystem => (is => 'ro', isa => 'Bool', request_name => 'readonlyRootFilesystem', traits => ['NameInRequest']);
11             has Ulimits => (is => 'ro', isa => 'ArrayRef[Paws::Batch::Ulimit]', request_name => 'ulimits', traits => ['NameInRequest']);
12             has User => (is => 'ro', isa => 'Str', request_name => 'user', traits => ['NameInRequest']);
13             has Vcpus => (is => 'ro', isa => 'Int', request_name => 'vcpus', traits => ['NameInRequest'], required => 1);
14             has Volumes => (is => 'ro', isa => 'ArrayRef[Paws::Batch::Volume]', request_name => 'volumes', traits => ['NameInRequest']);
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::Batch::ContainerProperties
22              
23             =head1 USAGE
24              
25             This class represents one of two things:
26              
27             =head3 Arguments in a call to a service
28              
29             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
30             Each attribute should be used as a named argument in the calls that expect this type of object.
31              
32             As an example, if Att1 is expected to be a Paws::Batch::ContainerProperties object:
33              
34             $service_obj->Method(Att1 => { Command => $value, ..., Volumes => $value });
35              
36             =head3 Results returned from an API call
37              
38             Use accessors for each attribute. If Att1 is expected to be an Paws::Batch::ContainerProperties object:
39              
40             $result = $service_obj->Method(...);
41             $result->Att1->Command
42              
43             =head1 DESCRIPTION
44              
45             Container properties are used in job definitions to describe the
46             container that is launched as part of a job.
47              
48             =head1 ATTRIBUTES
49              
50              
51             =head2 Command => ArrayRef[Str|Undef]
52              
53             The command that is passed to the container. This parameter maps to
54             C<Cmd> in the Create a container section of the Docker Remote API and
55             the C<COMMAND> parameter to docker run. For more information, see
56             https://docs.docker.com/engine/reference/builder/#cmd.
57              
58              
59             =head2 Environment => ArrayRef[L<Paws::Batch::KeyValuePair>]
60              
61             The environment variables to pass to a container. This parameter maps
62             to C<Env> in the Create a container section of the Docker Remote API
63             and the C<--env> option to docker run.
64              
65             We do not recommend using plain text environment variables for
66             sensitive information, such as credential data.
67              
68              
69             =head2 B<REQUIRED> Image => Str
70              
71             The image used to start a container. This string is passed directly to
72             the Docker daemon. Images in the Docker Hub registry are available by
73             default. Other repositories are specified with C<
74             I<repository-url>/I<image>:I<tag> >. Up to 255 letters (uppercase and
75             lowercase), numbers, hyphens, underscores, colons, periods, forward
76             slashes, and number signs are allowed. This parameter maps to C<Image>
77             in the Create a container section of the Docker Remote API and the
78             C<IMAGE> parameter of docker run.
79              
80             =over
81              
82             =item *
83              
84             Images in Amazon ECR repositories use the full registry and repository
85             URI (for example,
86             C<012345678910.dkr.ecr.E<lt>region-nameE<gt>.amazonaws.com/E<lt>repository-nameE<gt>>).
87              
88             =item *
89              
90             Images in official repositories on Docker Hub use a single name (for
91             example, C<ubuntu> or C<mongo>).
92              
93             =item *
94              
95             Images in other repositories on Docker Hub are qualified with an
96             organization name (for example, C<amazon/amazon-ecs-agent>).
97              
98             =item *
99              
100             Images in other online repositories are qualified further by a domain
101             name (for example, C<quay.io/assemblyline/ubuntu>).
102              
103             =back
104              
105              
106              
107             =head2 JobRoleArn => Str
108              
109             The Amazon Resource Name (ARN) of the IAM role that the container can
110             assume for AWS permissions.
111              
112              
113             =head2 B<REQUIRED> Memory => Int
114              
115             The hard limit (in MiB) of memory to present to the container. If your
116             container attempts to exceed the memory specified here, the container
117             is killed. This parameter maps to C<Memory> in the Create a container
118             section of the Docker Remote API and the C<--memory> option to docker
119             run.
120              
121              
122             =head2 MountPoints => ArrayRef[L<Paws::Batch::MountPoint>]
123              
124             The mount points for data volumes in your container. This parameter
125             maps to C<Volumes> in the Create a container section of the Docker
126             Remote API and the C<--volume> option to docker run.
127              
128              
129             =head2 Privileged => Bool
130              
131             When this parameter is true, the container is given elevated privileges
132             on the host container instance (similar to the C<root> user). This
133             parameter maps to C<Privileged> in the Create a container section of
134             the Docker Remote API and the C<--privileged> option to docker run.
135              
136              
137             =head2 ReadonlyRootFilesystem => Bool
138              
139             When this parameter is true, the container is given read-only access to
140             its root file system. This parameter maps to C<ReadonlyRootfs> in the
141             Create a container section of the Docker Remote API and the
142             C<--read-only> option to C<docker run>.
143              
144              
145             =head2 Ulimits => ArrayRef[L<Paws::Batch::Ulimit>]
146              
147             A list of C<ulimits> to set in the container. This parameter maps to
148             C<Ulimits> in the Create a container section of the Docker Remote API
149             and the C<--ulimit> option to docker run.
150              
151              
152             =head2 User => Str
153              
154             The user name to use inside the container. This parameter maps to
155             C<User> in the Create a container section of the Docker Remote API and
156             the C<--user> option to docker run.
157              
158              
159             =head2 B<REQUIRED> Vcpus => Int
160              
161             The number of vCPUs reserved for the container. This parameter maps to
162             C<CpuShares> in the Create a container section of the Docker Remote API
163             and the C<--cpu-shares> option to docker run. Each vCPU is equivalent
164             to 1,024 CPU shares.
165              
166              
167             =head2 Volumes => ArrayRef[L<Paws::Batch::Volume>]
168              
169             A list of data volumes used in a job.
170              
171              
172              
173             =head1 SEE ALSO
174              
175             This class forms part of L<Paws>, describing an object used in L<Paws::Batch>
176              
177             =head1 BUGS and CONTRIBUTIONS
178              
179             The source code is located here: https://github.com/pplu/aws-sdk-perl
180              
181             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
182              
183             =cut
184