blib/lib/Paws/Macie2/SearchResources.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Macie2::SearchResources;
3 use Moose;
4 has BucketCriteria => (is => 'ro', isa => 'Paws::Macie2::SearchResourcesBucketCriteria', traits => ['NameInRequest'], request_name => 'bucketCriteria');
5 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
6 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
7 has SortCriteria => (is => 'ro', isa => 'Paws::Macie2::SearchResourcesSortCriteria', traits => ['NameInRequest'], request_name => 'sortCriteria');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SearchResources');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/datasources/search-resources');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Macie2::SearchResourcesResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Macie2::SearchResources - Arguments for method SearchResources on L<Paws::Macie2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method SearchResources on the
26 L<Amazon Macie 2|Paws::Macie2> service. Use the attributes of this class
27 as arguments to method SearchResources.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SearchResources.
30  
31 =head1 SYNOPSIS
32  
33 my $macie2 = Paws->service('Macie2');
34 my $SearchResourcesResponse = $macie2->SearchResources(
35 BucketCriteria => {
36 Excludes => {
37 And => [
38 {
39 SimpleCriterion => {
40 Comparator => 'EQ', # values: EQ, NE; OPTIONAL
41 Key => 'ACCOUNT_ID'
42 , # values: ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS; OPTIONAL
43 Values => [ 'My__string', ... ], # OPTIONAL
44 }, # OPTIONAL
45 TagCriterion => {
46 Comparator => 'EQ', # values: EQ, NE; OPTIONAL
47 TagValues => [
48 {
49 Key => 'My__string',
50 Value => 'My__string',
51 },
52 ...
53 ], # OPTIONAL
54 }, # OPTIONAL
55 },
56 ...
57 ], # OPTIONAL
58 }, # OPTIONAL
59 Includes => {
60 And => [
61 {
62 SimpleCriterion => {
63 Comparator => 'EQ', # values: EQ, NE; OPTIONAL
64 Key => 'ACCOUNT_ID'
65 , # values: ACCOUNT_ID, S3_BUCKET_NAME, S3_BUCKET_EFFECTIVE_PERMISSION, S3_BUCKET_SHARED_ACCESS; OPTIONAL
66 Values => [ 'My__string', ... ], # OPTIONAL
67 }, # OPTIONAL
68 TagCriterion => {
69 Comparator => 'EQ', # values: EQ, NE; OPTIONAL
70 TagValues => [
71 {
72 Key => 'My__string',
73 Value => 'My__string',
74 },
75 ...
76 ], # OPTIONAL
77 }, # OPTIONAL
78 },
79 ...
80 ], # OPTIONAL
81 }, # OPTIONAL
82 }, # OPTIONAL
83 MaxResults => 1, # OPTIONAL
84 NextToken => 'My__string', # OPTIONAL
85 SortCriteria => {
86 AttributeName => 'ACCOUNT_ID'
87 , # values: ACCOUNT_ID, RESOURCE_NAME, S3_CLASSIFIABLE_OBJECT_COUNT, S3_CLASSIFIABLE_SIZE_IN_BYTES; OPTIONAL
88 OrderBy => 'ASC', # values: ASC, DESC; OPTIONAL
89 }, # OPTIONAL
90 );
91  
92 # Results:
93 my $MatchingResources = $SearchResourcesResponse->MatchingResources;
94 my $NextToken = $SearchResourcesResponse->NextToken;
95  
96 # Returns a L<Paws::Macie2::SearchResourcesResponse> object.
97  
98 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
99 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/macie2/SearchResources>
100  
101 =head1 ATTRIBUTES
102  
103  
104 =head2 BucketCriteria => L<Paws::Macie2::SearchResourcesBucketCriteria>
105  
106 The filter conditions that determine which S3 buckets to include or
107 exclude from the query results.
108  
109  
110  
111 =head2 MaxResults => Int
112  
113 The maximum number of items to include in each page of the response.
114 The default value is 50.
115  
116  
117  
118 =head2 NextToken => Str
119  
120 The nextToken string that specifies which page of results to return in
121 a paginated response.
122  
123  
124  
125 =head2 SortCriteria => L<Paws::Macie2::SearchResourcesSortCriteria>
126  
127 The criteria to use to sort the results.
128  
129  
130  
131  
132 =head1 SEE ALSO
133  
134 This class forms part of L<Paws>, documenting arguments for method SearchResources in L<Paws::Macie2>
135  
136 =head1 BUGS and CONTRIBUTIONS
137  
138 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
139  
140 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
141  
142 =cut
143