blib/lib/Paws/IoT/UpdateCACertificate.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::IoT::UpdateCACertificate;
3 use Moose;
4 has CertificateId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'caCertificateId', required => 1);
5 has NewAutoRegistrationStatus => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'newAutoRegistrationStatus');
6 has NewStatus => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'newStatus');
7 has RegistrationConfig => (is => 'ro', isa => 'Paws::IoT::RegistrationConfig', traits => ['NameInRequest'], request_name => 'registrationConfig');
8 has RemoveAutoRegistration => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'removeAutoRegistration');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateCACertificate');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/cacertificate/{caCertificateId}');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::IoT::UpdateCACertificate - Arguments for method UpdateCACertificate on L<Paws::IoT>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateCACertificate on the
27 L<AWS IoT|Paws::IoT> service. Use the attributes of this class
28 as arguments to method UpdateCACertificate.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateCACertificate.
31  
32 =head1 SYNOPSIS
33  
34 my $iot = Paws->service('IoT');
35 $iot->UpdateCACertificate(
36 CertificateId => 'MyCertificateId',
37 NewAutoRegistrationStatus => 'ENABLE', # OPTIONAL
38 NewStatus => 'ACTIVE', # OPTIONAL
39 RegistrationConfig => {
40 RoleArn => 'MyRoleArn', # min: 20, max: 2048; OPTIONAL
41 TemplateBody => 'MyTemplateBody', # OPTIONAL
42 }, # OPTIONAL
43 RemoveAutoRegistration => 1, # OPTIONAL
44 );
45  
46 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.
47 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iot/UpdateCACertificate>
48  
49 =head1 ATTRIBUTES
50  
51  
52 =head2 B<REQUIRED> CertificateId => Str
53  
54 The CA certificate identifier.
55  
56  
57  
58 =head2 NewAutoRegistrationStatus => Str
59  
60 The new value for the auto registration status. Valid values are:
61 "ENABLE" or "DISABLE".
62  
63 Valid values are: C<"ENABLE">, C<"DISABLE">
64  
65 =head2 NewStatus => Str
66  
67 The updated status of the CA certificate.
68  
69 B<Note:> The status value REGISTER_INACTIVE is deprecated and should
70 not be used.
71  
72 Valid values are: C<"ACTIVE">, C<"INACTIVE">
73  
74 =head2 RegistrationConfig => L<Paws::IoT::RegistrationConfig>
75  
76 Information about the registration configuration.
77  
78  
79  
80 =head2 RemoveAutoRegistration => Bool
81  
82 If true, removes auto registration.
83  
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, documenting arguments for method UpdateCACertificate in L<Paws::IoT>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98