blib/lib/Paws/CloudTrail/Resource.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/CloudTrail/LookupEventsResponse.pm ↑ Summary blib/lib/Paws/CloudWatch/AlarmHistoryItem.pm »
1 # Generated by default/object.tt
2 package Paws::CloudTrail::Resource;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has ResourceName => (is => 'ro', isa => 'Str');
5 1 has ResourceType => (is => 'ro', isa => 'Str');
6  
7 1 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::CloudTrail::Resource
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::CloudTrail::Resource object:
25  
26 $service_obj->Method(Att1 => { ResourceName => $value, ..., ResourceType => $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::CloudTrail::Resource object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->ResourceName
34  
35 =head1 DESCRIPTION
36  
37 Specifies the type and name of a resource referenced by an event.
38  
39 =head1 ATTRIBUTES
40  
41  
42 =head2 ResourceName => Str
43  
44 The name of the resource referenced by the event returned. These are
45 user-created names whose values will depend on the environment. For
46 example, the resource name might be "auto-scaling-test-group" for an
47 Auto Scaling Group or "i-1234567" for an EC2 Instance.
48  
49  
50 =head2 ResourceType => Str
51  
52 The type of a resource referenced by the event returned. When the
53 resource type cannot be determined, null is returned. Some examples of
54 resource types are: B<Instance> for EC2, B<Trail> for CloudTrail,
55 B<DBInstance> for RDS, and B<AccessKey> for IAM. To learn more about
56 how to look up and filter events by the resource types supported for a
57 service, see Filtering CloudTrail Events
58 (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events).
59  
60  
61  
62 =head1 SEE ALSO
63  
64 This class forms part of L<Paws>, describing an object used in L<Paws::CloudTrail>
65  
66 =head1 BUGS and CONTRIBUTIONS
67  
68 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
69  
70 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
71  
72 =cut
73  
« blib/lib/Paws/CloudTrail/LookupEventsResponse.pm ↑ Summary blib/lib/Paws/CloudWatch/AlarmHistoryItem.pm »