File Coverage

blib/lib/Paws/ECS/Resource.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::Resource;
2 1     1   473 use Moose;
  1         2  
  1         7  
3             has DoubleValue => (is => 'ro', isa => 'Num', request_name => 'doubleValue', traits => ['NameInRequest']);
4             has IntegerValue => (is => 'ro', isa => 'Int', request_name => 'integerValue', traits => ['NameInRequest']);
5             has LongValue => (is => 'ro', isa => 'Int', request_name => 'longValue', traits => ['NameInRequest']);
6             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']);
7             has StringSetValue => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'stringSetValue', traits => ['NameInRequest']);
8             has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest']);
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::ECS::Resource
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::Resource object:
27              
28             $service_obj->Method(Att1 => { DoubleValue => $value, ..., Type => $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::Resource object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->DoubleValue
36              
37             =head1 DESCRIPTION
38              
39             Describes the resources available for a container instance.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 DoubleValue => Num
45              
46             When the C<doubleValue> type is set, the value of the resource must be
47             a double precision floating-point type.
48              
49              
50             =head2 IntegerValue => Int
51              
52             When the C<integerValue> type is set, the value of the resource must be
53             an integer.
54              
55              
56             =head2 LongValue => Int
57              
58             When the C<longValue> type is set, the value of the resource must be an
59             extended precision floating-point type.
60              
61              
62             =head2 Name => Str
63              
64             The name of the resource, such as C<cpu>, C<memory>, C<ports>, or a
65             user-defined resource.
66              
67              
68             =head2 StringSetValue => ArrayRef[Str|Undef]
69              
70             When the C<stringSetValue> type is set, the value of the resource must
71             be a string type.
72              
73              
74             =head2 Type => Str
75              
76             The type of the resource, such as C<INTEGER>, C<DOUBLE>, C<LONG>, or
77             C<STRINGSET>.
78              
79              
80              
81             =head1 SEE ALSO
82              
83             This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
84              
85             =head1 BUGS and CONTRIBUTIONS
86              
87             The source code is located here: https://github.com/pplu/aws-sdk-perl
88              
89             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
90              
91             =cut
92