line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::ECS::RegisterTaskDefinition; |
3
|
1
|
|
|
1
|
|
307
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
has ContainerDefinitions => (is => 'ro', isa => 'ArrayRef[Paws::ECS::ContainerDefinition]', traits => ['NameInRequest'], request_name => 'containerDefinitions' , required => 1); |
5
|
|
|
|
|
|
|
has Family => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'family' , required => 1); |
6
|
|
|
|
|
|
|
has NetworkMode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkMode' ); |
7
|
|
|
|
|
|
|
has PlacementConstraints => (is => 'ro', isa => 'ArrayRef[Paws::ECS::TaskDefinitionPlacementConstraint]', traits => ['NameInRequest'], request_name => 'placementConstraints' ); |
8
|
|
|
|
|
|
|
has TaskRoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'taskRoleArn' ); |
9
|
|
|
|
|
|
|
has Volumes => (is => 'ro', isa => 'ArrayRef[Paws::ECS::Volume]', traits => ['NameInRequest'], request_name => 'volumes' ); |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5417
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'RegisterTaskDefinition'); |
14
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ECS::RegisterTaskDefinitionResponse'); |
15
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
### main pod documentation begin ### |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Paws::ECS::RegisterTaskDefinition - Arguments for method RegisterTaskDefinition on Paws::ECS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
This class represents the parameters used for calling the method RegisterTaskDefinition on the |
27
|
|
|
|
|
|
|
Amazon EC2 Container Service service. Use the attributes of this class |
28
|
|
|
|
|
|
|
as arguments to method RegisterTaskDefinition. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RegisterTaskDefinition. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
As an example: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$service_obj->RegisterTaskDefinition(Att1 => $value1, Att2 => $value2, ...); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head2 B<REQUIRED> ContainerDefinitions => ArrayRef[L<Paws::ECS::ContainerDefinition>] |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
A list of container definitions in JSON format that describe the |
44
|
|
|
|
|
|
|
different containers that make up your task. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 B<REQUIRED> Family => Str |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
You must specify a C<family> for a task definition, which allows you to |
51
|
|
|
|
|
|
|
track multiple versions of the same task definition. The C<family> is |
52
|
|
|
|
|
|
|
used as a name for your task definition. Up to 255 letters (uppercase |
53
|
|
|
|
|
|
|
and lowercase), numbers, hyphens, and underscores are allowed. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 NetworkMode => Str |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
The Docker networking mode to use for the containers in the task. The |
60
|
|
|
|
|
|
|
valid values are C<none>, C<bridge>, and C<host>. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The default Docker network mode is C<bridge>. If the network mode is |
63
|
|
|
|
|
|
|
set to C<none>, you cannot specify port mappings in your container |
64
|
|
|
|
|
|
|
definitions, and the task's containers do not have external |
65
|
|
|
|
|
|
|
connectivity. The C<host> network mode offers the highest networking |
66
|
|
|
|
|
|
|
performance for containers because they use the host network stack |
67
|
|
|
|
|
|
|
instead of the virtualized network stack provided by the C<bridge> |
68
|
|
|
|
|
|
|
mode; however, exposed container ports are mapped directly to the |
69
|
|
|
|
|
|
|
corresponding host port, so you cannot take advantage of dynamic host |
70
|
|
|
|
|
|
|
port mappings or run multiple instantiations of the same task on a |
71
|
|
|
|
|
|
|
single container instance if port mappings are used. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
For more information, see Network settings in the I<Docker run |
74
|
|
|
|
|
|
|
reference>. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Valid values are: C<"bridge">, C<"host">, C<"none"> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 PlacementConstraints => ArrayRef[L<Paws::ECS::TaskDefinitionPlacementConstraint>] |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
An array of placement constraint objects to use for the task. You can |
81
|
|
|
|
|
|
|
specify a maximum of 10 constraints per task (this limit includes |
82
|
|
|
|
|
|
|
constraints in the task definition and those specified at run time). |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 TaskRoleArn => Str |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
The short name or full Amazon Resource Name (ARN) of the IAM role that |
89
|
|
|
|
|
|
|
containers in this task can assume. All containers in this task are |
90
|
|
|
|
|
|
|
granted the permissions that are specified in this role. For more |
91
|
|
|
|
|
|
|
information, see IAM Roles for Tasks in the I<Amazon EC2 Container |
92
|
|
|
|
|
|
|
Service Developer Guide>. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 Volumes => ArrayRef[L<Paws::ECS::Volume>] |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
A list of volume definitions in JSON format that containers in your |
99
|
|
|
|
|
|
|
task may use. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 SEE ALSO |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method RegisterTaskDefinition in L<Paws::ECS> |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
115
|
|
|
|
|
|
|
|