blib/lib/Paws/AuditManager/UpdateAssessment.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AuditManager::UpdateAssessment;
3 use Moose;
4 has AssessmentDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'assessmentDescription');
5 has AssessmentId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'assessmentId', required => 1);
6 has AssessmentName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'assessmentName');
7 has AssessmentReportsDestination => (is => 'ro', isa => 'Paws::AuditManager::AssessmentReportsDestination', traits => ['NameInRequest'], request_name => 'assessmentReportsDestination');
8 has Roles => (is => 'ro', isa => 'ArrayRef[Paws::AuditManager::Role]', traits => ['NameInRequest'], request_name => 'roles');
9 has Scope => (is => 'ro', isa => 'Paws::AuditManager::Scope', traits => ['NameInRequest'], request_name => 'scope', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAssessment');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/assessments/{assessmentId}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AuditManager::UpdateAssessmentResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::AuditManager::UpdateAssessment - Arguments for method UpdateAssessment on L<Paws::AuditManager>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateAssessment on the
28 L<AWS Audit Manager|Paws::AuditManager> service. Use the attributes of this class
29 as arguments to method UpdateAssessment.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAssessment.
32  
33 =head1 SYNOPSIS
34  
35 my $auditmanager = Paws->service('AuditManager');
36 my $UpdateAssessmentResponse = $auditmanager->UpdateAssessment(
37 AssessmentId => 'MyUUID',
38 Scope => {
39 AwsAccounts => [
40 {
41 EmailAddress => 'MyEmailAddress', # min: 1, max: 320; OPTIONAL
42 Id => 'MyAccountId', # min: 12, max: 12; OPTIONAL
43 Name => 'MyAccountName', # min: 1, max: 50; OPTIONAL
44 },
45 ...
46 ], # OPTIONAL
47 AwsServices => [
48 {
49 ServiceName => 'MyAWSServiceName', # min: 1, max: 40; OPTIONAL
50 },
51 ...
52 ], # OPTIONAL
53 },
54 AssessmentDescription => 'MyAssessmentDescription', # OPTIONAL
55 AssessmentName => 'MyAssessmentName', # OPTIONAL
56 AssessmentReportsDestination => {
57 Destination => 'MyS3Url', # min: 1, max: 1024; OPTIONAL
58 DestinationType => 'S3', # values: S3; OPTIONAL
59 }, # OPTIONAL
60 Roles => [
61 {
62 RoleArn => 'MyIamArn', # min: 20, max: 2048; OPTIONAL
63 RoleType =>
64 'PROCESS_OWNER', # values: PROCESS_OWNER, RESOURCE_OWNER; OPTIONAL
65 },
66 ...
67 ], # OPTIONAL
68 );
69  
70 # Results:
71 my $Assessment = $UpdateAssessmentResponse->Assessment;
72  
73 # Returns a L<Paws::AuditManager::UpdateAssessmentResponse> object.
74  
75 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.
76 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/auditmanager/UpdateAssessment>
77  
78 =head1 ATTRIBUTES
79  
80  
81 =head2 AssessmentDescription => Str
82  
83 The description of the specified assessment.
84  
85  
86  
87 =head2 B<REQUIRED> AssessmentId => Str
88  
89 The identifier for the specified assessment.
90  
91  
92  
93 =head2 AssessmentName => Str
94  
95 The name of the specified assessment to be updated.
96  
97  
98  
99 =head2 AssessmentReportsDestination => L<Paws::AuditManager::AssessmentReportsDestination>
100  
101 The assessment report storage destination for the specified assessment
102 that is being updated.
103  
104  
105  
106 =head2 Roles => ArrayRef[L<Paws::AuditManager::Role>]
107  
108 The list of roles for the specified assessment.
109  
110  
111  
112 =head2 B<REQUIRED> Scope => L<Paws::AuditManager::Scope>
113  
114 The scope of the specified assessment.
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method UpdateAssessment in L<Paws::AuditManager>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130