File Coverage

blib/lib/Paws/Config/Scope.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::Config::Scope;
2 1     1   532 use Moose;
  1         4  
  1         7  
3             has ComplianceResourceId => (is => 'ro', isa => 'Str');
4             has ComplianceResourceTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5             has TagKey => (is => 'ro', isa => 'Str');
6             has TagValue => (is => 'ro', isa => 'Str');
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::Config::Scope
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::Config::Scope object:
25              
26             $service_obj->Method(Att1 => { ComplianceResourceId => $value, ..., TagValue => $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::Config::Scope object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->ComplianceResourceId
34              
35             =head1 DESCRIPTION
36              
37             Defines which resources trigger an evaluation for an AWS Config rule.
38             The scope can include one or more resource types, a combination of a
39             tag key and value, or a combination of one resource type and one
40             resource ID. Specify a scope to constrain which resources trigger an
41             evaluation for a rule. Otherwise, evaluations for the rule are
42             triggered when any resource in your recording group changes in
43             configuration.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 ComplianceResourceId => Str
49              
50             The IDs of the only AWS resource that you want to trigger an evaluation
51             for the rule. If you specify a resource ID, you must specify one
52             resource type for C<ComplianceResourceTypes>.
53              
54              
55             =head2 ComplianceResourceTypes => ArrayRef[Str|Undef]
56              
57             The resource types of only those AWS resources that you want to trigger
58             an evaluation for the rule. You can only specify one type if you also
59             specify a resource ID for C<ComplianceResourceId>.
60              
61              
62             =head2 TagKey => Str
63              
64             The tag key that is applied to only those AWS resources that you want
65             you want to trigger an evaluation for the rule.
66              
67              
68             =head2 TagValue => Str
69              
70             The tag value applied to only those AWS resources that you want to
71             trigger an evaluation for the rule. If you specify a value for
72             C<TagValue>, you must also specify a value for C<TagKey>.
73              
74              
75              
76             =head1 SEE ALSO
77              
78             This class forms part of L<Paws>, describing an object used in L<Paws::Config>
79              
80             =head1 BUGS and CONTRIBUTIONS
81              
82             The source code is located here: https://github.com/pplu/aws-sdk-perl
83              
84             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
85              
86             =cut
87