File Coverage

blib/lib/Paws/ECS/TaskDefinition.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::TaskDefinition;
2 1     1   463 use Moose;
  1         2  
  1         7  
3             has ContainerDefinitions => (is => 'ro', isa => 'ArrayRef[Paws::ECS::ContainerDefinition]', request_name => 'containerDefinitions', traits => ['NameInRequest']);
4             has Family => (is => 'ro', isa => 'Str', request_name => 'family', traits => ['NameInRequest']);
5             has NetworkMode => (is => 'ro', isa => 'Str', request_name => 'networkMode', traits => ['NameInRequest']);
6             has PlacementConstraints => (is => 'ro', isa => 'ArrayRef[Paws::ECS::TaskDefinitionPlacementConstraint]', request_name => 'placementConstraints', traits => ['NameInRequest']);
7             has RequiresAttributes => (is => 'ro', isa => 'ArrayRef[Paws::ECS::Attribute]', request_name => 'requiresAttributes', traits => ['NameInRequest']);
8             has Revision => (is => 'ro', isa => 'Int', request_name => 'revision', traits => ['NameInRequest']);
9             has Status => (is => 'ro', isa => 'Str', request_name => 'status', traits => ['NameInRequest']);
10             has TaskDefinitionArn => (is => 'ro', isa => 'Str', request_name => 'taskDefinitionArn', traits => ['NameInRequest']);
11             has TaskRoleArn => (is => 'ro', isa => 'Str', request_name => 'taskRoleArn', traits => ['NameInRequest']);
12             has Volumes => (is => 'ro', isa => 'ArrayRef[Paws::ECS::Volume]', request_name => 'volumes', traits => ['NameInRequest']);
13             1;
14              
15             ### main pod documentation begin ###
16              
17             =head1 NAME
18              
19             Paws::ECS::TaskDefinition
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::TaskDefinition object:
31              
32             $service_obj->Method(Att1 => { ContainerDefinitions => $value, ..., Volumes => $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::TaskDefinition object:
37              
38             $result = $service_obj->Method(...);
39             $result->Att1->ContainerDefinitions
40              
41             =head1 DESCRIPTION
42              
43             Details of a task definition.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 ContainerDefinitions => ArrayRef[L<Paws::ECS::ContainerDefinition>]
49              
50             A list of container definitions in JSON format that describe the
51             different containers that make up your task. For more information about
52             container definition parameters and defaults, see Amazon ECS Task
53             Definitions in the I<Amazon EC2 Container Service Developer Guide>.
54              
55              
56             =head2 Family => Str
57              
58             The family of your task definition, used as the definition name.
59              
60              
61             =head2 NetworkMode => Str
62              
63             The Docker networking mode to use for the containers in the task. The
64             valid values are C<none>, C<bridge>, and C<host>.
65              
66             If the network mode is C<none>, the containers do not have external
67             connectivity. The default Docker network mode is C<bridge>. The C<host>
68             network mode offers the highest networking performance for containers
69             because it uses the host network stack instead of the virtualized
70             network stack provided by the C<bridge> mode.
71              
72             For more information, see Network settings in the I<Docker run
73             reference>.
74              
75              
76             =head2 PlacementConstraints => ArrayRef[L<Paws::ECS::TaskDefinitionPlacementConstraint>]
77              
78             An array of placement constraint objects to use for tasks.
79              
80              
81             =head2 RequiresAttributes => ArrayRef[L<Paws::ECS::Attribute>]
82              
83             The container instance attributes required by your task.
84              
85              
86             =head2 Revision => Int
87              
88             The revision of the task in a particular family. The revision is a
89             version number of a task definition in a family. When you register a
90             task definition for the first time, the revision is C<1>; each time you
91             register a new revision of a task definition in the same family, the
92             revision value always increases by one (even if you have deregistered
93             previous revisions in this family).
94              
95              
96             =head2 Status => Str
97              
98             The status of the task definition.
99              
100              
101             =head2 TaskDefinitionArn => Str
102              
103             The full Amazon Resource Name (ARN) of the task definition.
104              
105              
106             =head2 TaskRoleArn => Str
107              
108             The Amazon Resource Name (ARN) of the IAM role that containers in this
109             task can assume. All containers in this task are granted the
110             permissions that are specified in this role.
111              
112              
113             =head2 Volumes => ArrayRef[L<Paws::ECS::Volume>]
114              
115             The list of volumes in a task. For more information about volume
116             definition parameters and defaults, see Amazon ECS Task Definitions in
117             the I<Amazon EC2 Container Service Developer Guide>.
118              
119              
120              
121             =head1 SEE ALSO
122              
123             This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
124              
125             =head1 BUGS and CONTRIBUTIONS
126              
127             The source code is located here: https://github.com/pplu/aws-sdk-perl
128              
129             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
130              
131             =cut
132