blib/lib/Paws/SSMIncidents/UpdateRelatedItems.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSMIncidents::UpdateRelatedItems;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
5 has IncidentRecordArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'incidentRecordArn', required => 1);
6 has RelatedItemsUpdate => (is => 'ro', isa => 'Paws::SSMIncidents::RelatedItemsUpdate', traits => ['NameInRequest'], request_name => 'relatedItemsUpdate', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRelatedItems');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/updateRelatedItems');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSMIncidents::UpdateRelatedItemsOutput');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::SSMIncidents::UpdateRelatedItems - Arguments for method UpdateRelatedItems on L<Paws::SSMIncidents>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateRelatedItems on the
25 L<AWS Systems Manager Incident Manager|Paws::SSMIncidents> service. Use the attributes of this class
26 as arguments to method UpdateRelatedItems.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRelatedItems.
29  
30 =head1 SYNOPSIS
31  
32 my $ssm-incidents = Paws->service('SSMIncidents');
33 my $UpdateRelatedItemsOutput = $ssm -incidents->UpdateRelatedItems(
34 IncidentRecordArn => 'MyArn',
35 RelatedItemsUpdate => {
36 ItemToAdd => {
37 Identifier => {
38 Type => 'ANALYSIS'
39 , # values: ANALYSIS, INCIDENT, METRIC, PARENT, ATTACHMENT, OTHER
40 Value => {
41 Arn => 'MyArn', # max: 1000
42 MetricDefinition => 'MyMetricDefinition', # max: 4000; OPTIONAL
43 Url => 'MyUrl', # max: 1000; OPTIONAL
44 },
45  
46 },
47 Title => 'MyRelatedItemTitleString', # max: 200; OPTIONAL
48 }, # OPTIONAL
49 ItemToRemove => {
50 Type => 'ANALYSIS'
51 , # values: ANALYSIS, INCIDENT, METRIC, PARENT, ATTACHMENT, OTHER
52 Value => {
53 Arn => 'MyArn', # max: 1000
54 MetricDefinition => 'MyMetricDefinition', # max: 4000; OPTIONAL
55 Url => 'MyUrl', # max: 1000; OPTIONAL
56 },
57  
58 },
59 },
60 ClientToken => 'MyClientToken', # OPTIONAL
61 );
62  
63 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.
64 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm-incidents/UpdateRelatedItems>
65  
66 =head1 ATTRIBUTES
67  
68  
69 =head2 ClientToken => Str
70  
71 A token ensuring that the action is called only once with the specified
72 details.
73  
74  
75  
76 =head2 B<REQUIRED> IncidentRecordArn => Str
77  
78 The Amazon Resource Name (ARN) of the incident record you are updating
79 related items in.
80  
81  
82  
83 =head2 B<REQUIRED> RelatedItemsUpdate => L<Paws::SSMIncidents::RelatedItemsUpdate>
84  
85 Details about the item you are adding or deleting.
86  
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, documenting arguments for method UpdateRelatedItems in L<Paws::SSMIncidents>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101