blib/lib/Paws/ECS/Attribute.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ECS::Attribute;
3 use Moose;
4 has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest'], required => 1);
5 has TargetId => (is => 'ro', isa => 'Str', request_name => 'targetId', traits => ['NameInRequest']);
6 has TargetType => (is => 'ro', isa => 'Str', request_name => 'targetType', traits => ['NameInRequest']);
7 has Value => (is => 'ro', isa => 'Str', request_name => 'value', traits => ['NameInRequest']);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::ECS::Attribute
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::Attribute object:
27  
28 $service_obj->Method(Att1 => { Name => $value, ..., Value => $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::Attribute object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->Name
36  
37 =head1 DESCRIPTION
38  
39 An attribute is a name-value pair associated with an Amazon ECS object.
40 Attributes enable you to extend the Amazon ECS data model by adding
41 custom metadata to your resources. For more information, see Attributes
42 (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes)
43 in the I<Amazon Elastic Container Service Developer Guide>.
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 B<REQUIRED> Name => Str
49  
50 The name of the attribute. The C<name> must contain between 1 and 128
51 characters and name may contain letters (uppercase and lowercase),
52 numbers, hyphens, underscores, forward slashes, back slashes, or
53 periods.
54  
55  
56 =head2 TargetId => Str
57  
58 The ID of the target. You can specify the short form ID for a resource
59 or the full Amazon Resource Name (ARN).
60  
61  
62 =head2 TargetType => Str
63  
64 The type of the target with which to attach the attribute. This
65 parameter is required if you use the short form ID for a resource
66 instead of the full ARN.
67  
68  
69 =head2 Value => Str
70  
71 The value of the attribute. The C<value> must contain between 1 and 128
72 characters and may contain letters (uppercase and lowercase), numbers,
73 hyphens, underscores, periods, at signs (@), forward slashes, back
74 slashes, colons, or spaces. The value cannot contain any leading or
75 trailing whitespace.
76  
77  
78  
79 =head1 SEE ALSO
80  
81 This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
82  
83 =head1 BUGS and CONTRIBUTIONS
84  
85 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
86  
87 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
88  
89 =cut
90