blib/lib/Paws/IoT/UpdateMitigationAction.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::IoT::UpdateMitigationAction;
3 use Moose;
4 has ActionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'actionName', required => 1);
5 has ActionParams => (is => 'ro', isa => 'Paws::IoT::MitigationActionParams', traits => ['NameInRequest'], request_name => 'actionParams');
6 has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateMitigationAction');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/mitigationactions/actions/{actionName}');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoT::UpdateMitigationActionResponse');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::IoT::UpdateMitigationAction - Arguments for method UpdateMitigationAction on L<Paws::IoT>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateMitigationAction on the
25 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
26 as arguments to method UpdateMitigationAction.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateMitigationAction.
29  
30 =head1 SYNOPSIS
31  
32 my $iot = Paws->service('IoT');
33 my $UpdateMitigationActionResponse = $iot->UpdateMitigationAction(
34 ActionName => 'MyMitigationActionName',
35 ActionParams => {
36 AddThingsToThingGroupParams => {
37 ThingGroupNames => [
38 'MyThingGroupName', ... # min: 1, max: 128
39 ], # min: 1, max: 10
40 OverrideDynamicGroups => 1, # OPTIONAL
41 }, # OPTIONAL
42 EnableIoTLoggingParams => {
43 LogLevel => 'DEBUG', # values: DEBUG, INFO, ERROR, WARN, DISABLED
44 RoleArnForLogging => 'MyRoleArn', # min: 20, max: 2048
45  
46 }, # OPTIONAL
47 PublishFindingToSnsParams => {
48 TopicArn => 'MySnsTopicArn', # max: 350
49  
50 }, # OPTIONAL
51 ReplaceDefaultPolicyVersionParams => {
52 TemplateName => 'BLANK_POLICY', # values: BLANK_POLICY
53  
54 }, # OPTIONAL
55 UpdateCACertificateParams => {
56 Action => 'DEACTIVATE', # values: DEACTIVATE
57  
58 }, # OPTIONAL
59 UpdateDeviceCertificateParams => {
60 Action => 'DEACTIVATE', # values: DEACTIVATE
61  
62 }, # OPTIONAL
63 }, # OPTIONAL
64 RoleArn => 'MyRoleArn', # OPTIONAL
65 );
66  
67 # Results:
68 my $ActionArn = $UpdateMitigationActionResponse->ActionArn;
69 my $ActionId = $UpdateMitigationActionResponse->ActionId;
70  
71 # Returns a L<Paws::IoT::UpdateMitigationActionResponse> object.
72  
73 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.
74 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/UpdateMitigationAction>
75  
76 =head1 ATTRIBUTES
77  
78  
79 =head2 B<REQUIRED> ActionName => Str
80  
81 The friendly name for the mitigation action. You cannot change the name
82 by using C<UpdateMitigationAction>. Instead, you must delete and
83 recreate the mitigation action with the new name.
84  
85  
86  
87 =head2 ActionParams => L<Paws::IoT::MitigationActionParams>
88  
89 Defines the type of action and the parameters for that action.
90  
91  
92  
93 =head2 RoleArn => Str
94  
95 The ARN of the IAM role that is used to apply the mitigation action.
96  
97  
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, documenting arguments for method UpdateMitigationAction in L<Paws::IoT>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111