File Coverage

blib/lib/Paws/ECS/Attribute.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::Attribute;
2 1     1   538 use Moose;
  1         4  
  1         10  
3             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest'], required => 1);
4             has TargetId => (is => 'ro', isa => 'Str', request_name => 'targetId', traits => ['NameInRequest']);
5             has TargetType => (is => 'ro', isa => 'Str', request_name => 'targetType', traits => ['NameInRequest']);
6             has Value => (is => 'ro', isa => 'Str', request_name => 'value', traits => ['NameInRequest']);
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::ECS::Attribute
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::ECS::Attribute object:
25              
26             $service_obj->Method(Att1 => { Name => $value, ..., Value => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::ECS::Attribute object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->Name
34              
35             =head1 DESCRIPTION
36              
37             An attribute is a name-value pair associated with an Amazon ECS object.
38             Attributes enable you to extend the Amazon ECS data model by adding
39             custom metadata to your resources. For more information, see Attributes
40             in the I<Amazon EC2 Container Service Developer Guide>.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 B<REQUIRED> Name => Str
46              
47             The name of the attribute. Up to 128 letters (uppercase and lowercase),
48             numbers, hyphens, underscores, and periods are allowed.
49              
50              
51             =head2 TargetId => Str
52              
53             The ID of the target. You can specify the short form ID for a resource
54             or the full Amazon Resource Name (ARN).
55              
56              
57             =head2 TargetType => Str
58              
59             The type of the target with which to attach the attribute. This
60             parameter is required if you use the short form ID for a resource
61             instead of the full Amazon Resource Name (ARN).
62              
63              
64             =head2 Value => Str
65              
66             The value of the attribute. Up to 128 letters (uppercase and
67             lowercase), numbers, hyphens, underscores, periods, at signs (@),
68             forward slashes, colons, and spaces are allowed.
69              
70              
71              
72             =head1 SEE ALSO
73              
74             This class forms part of L<Paws>, describing an object used in L<Paws::ECS>
75              
76             =head1 BUGS and CONTRIBUTIONS
77              
78             The source code is located here: https://github.com/pplu/aws-sdk-perl
79              
80             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
81              
82             =cut
83