blib/lib/Paws/AccessAnalyzer/CreateAnalyzer.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AccessAnalyzer::CreateAnalyzer;
3 use Moose;
4 has AnalyzerName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'analyzerName', required => 1);
5 has ArchiveRules => (is => 'ro', isa => 'ArrayRef[Paws::AccessAnalyzer::InlineArchiveRule]', traits => ['NameInRequest'], request_name => 'archiveRules');
6 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
7 has Tags => (is => 'ro', isa => 'Paws::AccessAnalyzer::TagsMap', traits => ['NameInRequest'], request_name => 'tags');
8 has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAnalyzer');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/analyzer');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AccessAnalyzer::CreateAnalyzerResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::AccessAnalyzer::CreateAnalyzer - Arguments for method CreateAnalyzer on L<Paws::AccessAnalyzer>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateAnalyzer on the
27 L<Access Analyzer|Paws::AccessAnalyzer> service. Use the attributes of this class
28 as arguments to method CreateAnalyzer.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAnalyzer.
31  
32 =head1 SYNOPSIS
33  
34 my $access-analyzer = Paws->service('AccessAnalyzer');
35 my $CreateAnalyzerResponse = $access -analyzer->CreateAnalyzer(
36 AnalyzerName => 'MyName',
37 Type => 'ACCOUNT',
38 ArchiveRules => [
39 {
40 Filter => {
41 'MyString' => {
42 Contains => [ 'MyString', ... ], # min: 1, max: 20; OPTIONAL
43 Eq => [ 'MyString', ... ], # min: 1, max: 20; OPTIONAL
44 Exists => 1, # OPTIONAL
45 Neq => [ 'MyString', ... ], # min: 1, max: 20; OPTIONAL
46 },
47 },
48 RuleName => 'MyName', # min: 1, max: 255
49  
50 },
51 ...
52 ], # OPTIONAL
53 ClientToken => 'MyString', # OPTIONAL
54 Tags => { 'MyString' => 'MyString', }, # OPTIONAL
55 );
56  
57 # Results:
58 my $Arn = $CreateAnalyzerResponse->Arn;
59  
60 # Returns a L<Paws::AccessAnalyzer::CreateAnalyzerResponse> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/access-analyzer/CreateAnalyzer>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 B<REQUIRED> AnalyzerName => Str
69  
70 The name of the analyzer to create.
71  
72  
73  
74 =head2 ArchiveRules => ArrayRef[L<Paws::AccessAnalyzer::InlineArchiveRule>]
75  
76 Specifies the archive rules to add for the analyzer. Archive rules
77 automatically archive findings that meet the criteria you define for
78 the rule.
79  
80  
81  
82 =head2 ClientToken => Str
83  
84 A client token.
85  
86  
87  
88 =head2 Tags => L<Paws::AccessAnalyzer::TagsMap>
89  
90 The tags to apply to the analyzer.
91  
92  
93  
94 =head2 B<REQUIRED> Type => Str
95  
96 The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers
97 are supported. You can create only one analyzer per account per Region.
98 You can create up to 5 analyzers per organization per Region.
99  
100 Valid values are: C<"ACCOUNT">, C<"ORGANIZATION">
101  
102  
103 =head1 SEE ALSO
104  
105 This class forms part of L<Paws>, documenting arguments for method CreateAnalyzer in L<Paws::AccessAnalyzer>
106  
107 =head1 BUGS and CONTRIBUTIONS
108  
109 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
110  
111 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
112  
113 =cut
114