File Coverage

blib/lib/Paws/CloudHSM.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::CloudHSM;
2 1     1   3576 use Moose;
  1         2  
  1         7  
3             sub service { 'cloudhsm' }
4             sub version { '2014-05-30' }
5             sub target_prefix { 'CloudHsmFrontendService' }
6             sub json_version { "1.1" }
7             has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8             has retry => (is => 'ro', isa => 'HashRef', default => sub {
9             { base => 'rand', type => 'exponential', growth_factor => 2 }
10             });
11             has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12             ] });
13              
14             with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller', 'Paws::Net::JsonResponse';
15              
16            
17             sub AddTagsToResource {
18             my $self = shift;
19             my $call_object = $self->new_with_coercions('Paws::CloudHSM::AddTagsToResource', @_);
20             return $self->caller->do_call($self, $call_object);
21             }
22             sub CreateHapg {
23             my $self = shift;
24             my $call_object = $self->new_with_coercions('Paws::CloudHSM::CreateHapg', @_);
25             return $self->caller->do_call($self, $call_object);
26             }
27             sub CreateHsm {
28             my $self = shift;
29             my $call_object = $self->new_with_coercions('Paws::CloudHSM::CreateHsm', @_);
30             return $self->caller->do_call($self, $call_object);
31             }
32             sub CreateLunaClient {
33             my $self = shift;
34             my $call_object = $self->new_with_coercions('Paws::CloudHSM::CreateLunaClient', @_);
35             return $self->caller->do_call($self, $call_object);
36             }
37             sub DeleteHapg {
38             my $self = shift;
39             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DeleteHapg', @_);
40             return $self->caller->do_call($self, $call_object);
41             }
42             sub DeleteHsm {
43             my $self = shift;
44             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DeleteHsm', @_);
45             return $self->caller->do_call($self, $call_object);
46             }
47             sub DeleteLunaClient {
48             my $self = shift;
49             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DeleteLunaClient', @_);
50             return $self->caller->do_call($self, $call_object);
51             }
52             sub DescribeHapg {
53             my $self = shift;
54             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DescribeHapg', @_);
55             return $self->caller->do_call($self, $call_object);
56             }
57             sub DescribeHsm {
58             my $self = shift;
59             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DescribeHsm', @_);
60             return $self->caller->do_call($self, $call_object);
61             }
62             sub DescribeLunaClient {
63             my $self = shift;
64             my $call_object = $self->new_with_coercions('Paws::CloudHSM::DescribeLunaClient', @_);
65             return $self->caller->do_call($self, $call_object);
66             }
67             sub GetConfig {
68             my $self = shift;
69             my $call_object = $self->new_with_coercions('Paws::CloudHSM::GetConfig', @_);
70             return $self->caller->do_call($self, $call_object);
71             }
72             sub ListAvailableZones {
73             my $self = shift;
74             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ListAvailableZones', @_);
75             return $self->caller->do_call($self, $call_object);
76             }
77             sub ListHapgs {
78             my $self = shift;
79             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ListHapgs', @_);
80             return $self->caller->do_call($self, $call_object);
81             }
82             sub ListHsms {
83             my $self = shift;
84             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ListHsms', @_);
85             return $self->caller->do_call($self, $call_object);
86             }
87             sub ListLunaClients {
88             my $self = shift;
89             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ListLunaClients', @_);
90             return $self->caller->do_call($self, $call_object);
91             }
92             sub ListTagsForResource {
93             my $self = shift;
94             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ListTagsForResource', @_);
95             return $self->caller->do_call($self, $call_object);
96             }
97             sub ModifyHapg {
98             my $self = shift;
99             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ModifyHapg', @_);
100             return $self->caller->do_call($self, $call_object);
101             }
102             sub ModifyHsm {
103             my $self = shift;
104             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ModifyHsm', @_);
105             return $self->caller->do_call($self, $call_object);
106             }
107             sub ModifyLunaClient {
108             my $self = shift;
109             my $call_object = $self->new_with_coercions('Paws::CloudHSM::ModifyLunaClient', @_);
110             return $self->caller->do_call($self, $call_object);
111             }
112             sub RemoveTagsFromResource {
113             my $self = shift;
114             my $call_object = $self->new_with_coercions('Paws::CloudHSM::RemoveTagsFromResource', @_);
115             return $self->caller->do_call($self, $call_object);
116             }
117            
118              
119              
120             sub operations { qw/AddTagsToResource CreateHapg CreateHsm CreateLunaClient DeleteHapg DeleteHsm DeleteLunaClient DescribeHapg DescribeHsm DescribeLunaClient GetConfig ListAvailableZones ListHapgs ListHsms ListLunaClients ListTagsForResource ModifyHapg ModifyHsm ModifyLunaClient RemoveTagsFromResource / }
121              
122             1;
123              
124             ### main pod documentation begin ###
125              
126             =head1 NAME
127              
128             Paws::CloudHSM - Perl Interface to AWS Amazon CloudHSM
129              
130             =head1 SYNOPSIS
131              
132             use Paws;
133              
134             my $obj = Paws->service('CloudHSM');
135             my $res = $obj->Method(
136             Arg1 => $val1,
137             Arg2 => [ 'V1', 'V2' ],
138             # if Arg3 is an object, the HashRef will be used as arguments to the constructor
139             # of the arguments type
140             Arg3 => { Att1 => 'Val1' },
141             # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
142             # the constructor of the arguments type
143             Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
144             );
145              
146             =head1 DESCRIPTION
147              
148             AWS CloudHSM Service
149              
150             This is the reference for AWS CloudHSM Classic. For more information,
151             see AWS CloudHSM Classic FAQs and the AWS CloudHSM Classic User Guide.
152              
153             For more information about AWS CloudHSM, see AWS CloudHSM and the AWS
154             CloudHSM User Guide.
155              
156             =head1 METHODS
157              
158             =head2 AddTagsToResource(ResourceArn => Str, TagList => ArrayRef[L<Paws::CloudHSM::Tag>])
159              
160             Each argument is described in detail in: L<Paws::CloudHSM::AddTagsToResource>
161              
162             Returns: a L<Paws::CloudHSM::AddTagsToResourceResponse> instance
163              
164             Adds or overwrites one or more tags for the specified AWS CloudHSM
165             resource.
166              
167             Each tag consists of a key and a value. Tag keys must be unique to each
168             resource.
169              
170              
171             =head2 CreateHapg(Label => Str)
172              
173             Each argument is described in detail in: L<Paws::CloudHSM::CreateHapg>
174              
175             Returns: a L<Paws::CloudHSM::CreateHapgResponse> instance
176              
177             Creates a high-availability partition group. A high-availability
178             partition group is a group of partitions that spans multiple physical
179             HSMs.
180              
181              
182             =head2 CreateHsm(IamRoleArn => Str, SshKey => Str, SubnetId => Str, SubscriptionType => Str, [ClientToken => Str, EniIp => Str, ExternalId => Str, SyslogIp => Str])
183              
184             Each argument is described in detail in: L<Paws::CloudHSM::CreateHsm>
185              
186             Returns: a L<Paws::CloudHSM::CreateHsmResponse> instance
187              
188             Creates an uninitialized HSM instance.
189              
190             There is an upfront fee charged for each HSM instance that you create
191             with the C<CreateHsm> operation. If you accidentally provision an HSM
192             and want to request a refund, delete the instance using the DeleteHsm
193             operation, go to the AWS Support Center, create a new case, and select
194             B<Account and Billing Support>.
195              
196             It can take up to 20 minutes to create and provision an HSM. You can
197             monitor the status of the HSM with the DescribeHsm operation. The HSM
198             is ready to be initialized when the status changes to C<RUNNING>.
199              
200              
201             =head2 CreateLunaClient(Certificate => Str, [Label => Str])
202              
203             Each argument is described in detail in: L<Paws::CloudHSM::CreateLunaClient>
204              
205             Returns: a L<Paws::CloudHSM::CreateLunaClientResponse> instance
206              
207             Creates an HSM client.
208              
209              
210             =head2 DeleteHapg(HapgArn => Str)
211              
212             Each argument is described in detail in: L<Paws::CloudHSM::DeleteHapg>
213              
214             Returns: a L<Paws::CloudHSM::DeleteHapgResponse> instance
215              
216             Deletes a high-availability partition group.
217              
218              
219             =head2 DeleteHsm(HsmArn => Str)
220              
221             Each argument is described in detail in: L<Paws::CloudHSM::DeleteHsm>
222              
223             Returns: a L<Paws::CloudHSM::DeleteHsmResponse> instance
224              
225             Deletes an HSM. After completion, this operation cannot be undone and
226             your key material cannot be recovered.
227              
228              
229             =head2 DeleteLunaClient(ClientArn => Str)
230              
231             Each argument is described in detail in: L<Paws::CloudHSM::DeleteLunaClient>
232              
233             Returns: a L<Paws::CloudHSM::DeleteLunaClientResponse> instance
234              
235             Deletes a client.
236              
237              
238             =head2 DescribeHapg(HapgArn => Str)
239              
240             Each argument is described in detail in: L<Paws::CloudHSM::DescribeHapg>
241              
242             Returns: a L<Paws::CloudHSM::DescribeHapgResponse> instance
243              
244             Retrieves information about a high-availability partition group.
245              
246              
247             =head2 DescribeHsm([HsmArn => Str, HsmSerialNumber => Str])
248              
249             Each argument is described in detail in: L<Paws::CloudHSM::DescribeHsm>
250              
251             Returns: a L<Paws::CloudHSM::DescribeHsmResponse> instance
252              
253             Retrieves information about an HSM. You can identify the HSM by its ARN
254             or its serial number.
255              
256              
257             =head2 DescribeLunaClient([CertificateFingerprint => Str, ClientArn => Str])
258              
259             Each argument is described in detail in: L<Paws::CloudHSM::DescribeLunaClient>
260              
261             Returns: a L<Paws::CloudHSM::DescribeLunaClientResponse> instance
262              
263             Retrieves information about an HSM client.
264              
265              
266             =head2 GetConfig(ClientArn => Str, ClientVersion => Str, HapgList => ArrayRef[Str|Undef])
267              
268             Each argument is described in detail in: L<Paws::CloudHSM::GetConfig>
269              
270             Returns: a L<Paws::CloudHSM::GetConfigResponse> instance
271              
272             Gets the configuration files necessary to connect to all high
273             availability partition groups the client is associated with.
274              
275              
276             =head2 ListAvailableZones()
277              
278             Each argument is described in detail in: L<Paws::CloudHSM::ListAvailableZones>
279              
280             Returns: a L<Paws::CloudHSM::ListAvailableZonesResponse> instance
281              
282             Lists the Availability Zones that have available AWS CloudHSM capacity.
283              
284              
285             =head2 ListHapgs([NextToken => Str])
286              
287             Each argument is described in detail in: L<Paws::CloudHSM::ListHapgs>
288              
289             Returns: a L<Paws::CloudHSM::ListHapgsResponse> instance
290              
291             Lists the high-availability partition groups for the account.
292              
293             This operation supports pagination with the use of the C<NextToken>
294             member. If more results are available, the C<NextToken> member of the
295             response contains a token that you pass in the next call to
296             C<ListHapgs> to retrieve the next set of items.
297              
298              
299             =head2 ListHsms([NextToken => Str])
300              
301             Each argument is described in detail in: L<Paws::CloudHSM::ListHsms>
302              
303             Returns: a L<Paws::CloudHSM::ListHsmsResponse> instance
304              
305             Retrieves the identifiers of all of the HSMs provisioned for the
306             current customer.
307              
308             This operation supports pagination with the use of the C<NextToken>
309             member. If more results are available, the C<NextToken> member of the
310             response contains a token that you pass in the next call to C<ListHsms>
311             to retrieve the next set of items.
312              
313              
314             =head2 ListLunaClients([NextToken => Str])
315              
316             Each argument is described in detail in: L<Paws::CloudHSM::ListLunaClients>
317              
318             Returns: a L<Paws::CloudHSM::ListLunaClientsResponse> instance
319              
320             Lists all of the clients.
321              
322             This operation supports pagination with the use of the C<NextToken>
323             member. If more results are available, the C<NextToken> member of the
324             response contains a token that you pass in the next call to
325             C<ListLunaClients> to retrieve the next set of items.
326              
327              
328             =head2 ListTagsForResource(ResourceArn => Str)
329              
330             Each argument is described in detail in: L<Paws::CloudHSM::ListTagsForResource>
331              
332             Returns: a L<Paws::CloudHSM::ListTagsForResourceResponse> instance
333              
334             Returns a list of all tags for the specified AWS CloudHSM resource.
335              
336              
337             =head2 ModifyHapg(HapgArn => Str, [Label => Str, PartitionSerialList => ArrayRef[Str|Undef]])
338              
339             Each argument is described in detail in: L<Paws::CloudHSM::ModifyHapg>
340              
341             Returns: a L<Paws::CloudHSM::ModifyHapgResponse> instance
342              
343             Modifies an existing high-availability partition group.
344              
345              
346             =head2 ModifyHsm(HsmArn => Str, [EniIp => Str, ExternalId => Str, IamRoleArn => Str, SubnetId => Str, SyslogIp => Str])
347              
348             Each argument is described in detail in: L<Paws::CloudHSM::ModifyHsm>
349              
350             Returns: a L<Paws::CloudHSM::ModifyHsmResponse> instance
351              
352             Modifies an HSM.
353              
354             This operation can result in the HSM being offline for up to 15 minutes
355             while the AWS CloudHSM service is reconfigured. If you are modifying a
356             production HSM, you should ensure that your AWS CloudHSM service is
357             configured for high availability, and consider executing this operation
358             during a maintenance window.
359              
360              
361             =head2 ModifyLunaClient(Certificate => Str, ClientArn => Str)
362              
363             Each argument is described in detail in: L<Paws::CloudHSM::ModifyLunaClient>
364              
365             Returns: a L<Paws::CloudHSM::ModifyLunaClientResponse> instance
366              
367             Modifies the certificate used by the client.
368              
369             This action can potentially start a workflow to install the new
370             certificate on the client's HSMs.
371              
372              
373             =head2 RemoveTagsFromResource(ResourceArn => Str, TagKeyList => ArrayRef[Str|Undef])
374              
375             Each argument is described in detail in: L<Paws::CloudHSM::RemoveTagsFromResource>
376              
377             Returns: a L<Paws::CloudHSM::RemoveTagsFromResourceResponse> instance
378              
379             Removes one or more tags from the specified AWS CloudHSM resource.
380              
381             To remove a tag, specify only the tag key to remove (not the value). To
382             overwrite the value for an existing tag, use AddTagsToResource.
383              
384              
385              
386              
387             =head1 PAGINATORS
388              
389             Paginator methods are helpers that repetively call methods that return partial results
390              
391              
392              
393              
394             =head1 SEE ALSO
395              
396             This service class forms part of L<Paws>
397              
398             =head1 BUGS and CONTRIBUTIONS
399              
400             The source code is located here: https://github.com/pplu/aws-sdk-perl
401              
402             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
403              
404             =cut
405