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   4113 use Moose;
  1         3  
  1         11  
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             =head1 METHODS
151              
152             =head2 AddTagsToResource(ResourceArn => Str, TagList => ArrayRef[L<Paws::CloudHSM::Tag>])
153              
154             Each argument is described in detail in: L<Paws::CloudHSM::AddTagsToResource>
155              
156             Returns: a L<Paws::CloudHSM::AddTagsToResourceResponse> instance
157              
158             Adds or overwrites one or more tags for the specified AWS CloudHSM
159             resource.
160              
161             Each tag consists of a key and a value. Tag keys must be unique to each
162             resource.
163              
164              
165             =head2 CreateHapg(Label => Str)
166              
167             Each argument is described in detail in: L<Paws::CloudHSM::CreateHapg>
168              
169             Returns: a L<Paws::CloudHSM::CreateHapgResponse> instance
170              
171             Creates a high-availability partition group. A high-availability
172             partition group is a group of partitions that spans multiple physical
173             HSMs.
174              
175              
176             =head2 CreateHsm(IamRoleArn => Str, SshKey => Str, SubnetId => Str, SubscriptionType => Str, [ClientToken => Str, EniIp => Str, ExternalId => Str, SyslogIp => Str])
177              
178             Each argument is described in detail in: L<Paws::CloudHSM::CreateHsm>
179              
180             Returns: a L<Paws::CloudHSM::CreateHsmResponse> instance
181              
182             Creates an uninitialized HSM instance.
183              
184             There is an upfront fee charged for each HSM instance that you create
185             with the CreateHsm operation. If you accidentally provision an HSM and
186             want to request a refund, delete the instance using the DeleteHsm
187             operation, go to the AWS Support Center, create a new case, and select
188             B<Account and Billing Support>.
189              
190             It can take up to 20 minutes to create and provision an HSM. You can
191             monitor the status of the HSM with the DescribeHsm operation. The HSM
192             is ready to be initialized when the status changes to C<RUNNING>.
193              
194              
195             =head2 CreateLunaClient(Certificate => Str, [Label => Str])
196              
197             Each argument is described in detail in: L<Paws::CloudHSM::CreateLunaClient>
198              
199             Returns: a L<Paws::CloudHSM::CreateLunaClientResponse> instance
200              
201             Creates an HSM client.
202              
203              
204             =head2 DeleteHapg(HapgArn => Str)
205              
206             Each argument is described in detail in: L<Paws::CloudHSM::DeleteHapg>
207              
208             Returns: a L<Paws::CloudHSM::DeleteHapgResponse> instance
209              
210             Deletes a high-availability partition group.
211              
212              
213             =head2 DeleteHsm(HsmArn => Str)
214              
215             Each argument is described in detail in: L<Paws::CloudHSM::DeleteHsm>
216              
217             Returns: a L<Paws::CloudHSM::DeleteHsmResponse> instance
218              
219             Deletes an HSM. After completion, this operation cannot be undone and
220             your key material cannot be recovered.
221              
222              
223             =head2 DeleteLunaClient(ClientArn => Str)
224              
225             Each argument is described in detail in: L<Paws::CloudHSM::DeleteLunaClient>
226              
227             Returns: a L<Paws::CloudHSM::DeleteLunaClientResponse> instance
228              
229             Deletes a client.
230              
231              
232             =head2 DescribeHapg(HapgArn => Str)
233              
234             Each argument is described in detail in: L<Paws::CloudHSM::DescribeHapg>
235              
236             Returns: a L<Paws::CloudHSM::DescribeHapgResponse> instance
237              
238             Retrieves information about a high-availability partition group.
239              
240              
241             =head2 DescribeHsm([HsmArn => Str, HsmSerialNumber => Str])
242              
243             Each argument is described in detail in: L<Paws::CloudHSM::DescribeHsm>
244              
245             Returns: a L<Paws::CloudHSM::DescribeHsmResponse> instance
246              
247             Retrieves information about an HSM. You can identify the HSM by its ARN
248             or its serial number.
249              
250              
251             =head2 DescribeLunaClient([CertificateFingerprint => Str, ClientArn => Str])
252              
253             Each argument is described in detail in: L<Paws::CloudHSM::DescribeLunaClient>
254              
255             Returns: a L<Paws::CloudHSM::DescribeLunaClientResponse> instance
256              
257             Retrieves information about an HSM client.
258              
259              
260             =head2 GetConfig(ClientArn => Str, ClientVersion => Str, HapgList => ArrayRef[Str|Undef])
261              
262             Each argument is described in detail in: L<Paws::CloudHSM::GetConfig>
263              
264             Returns: a L<Paws::CloudHSM::GetConfigResponse> instance
265              
266             Gets the configuration files necessary to connect to all high
267             availability partition groups the client is associated with.
268              
269              
270             =head2 ListAvailableZones()
271              
272             Each argument is described in detail in: L<Paws::CloudHSM::ListAvailableZones>
273              
274             Returns: a L<Paws::CloudHSM::ListAvailableZonesResponse> instance
275              
276             Lists the Availability Zones that have available AWS CloudHSM capacity.
277              
278              
279             =head2 ListHapgs([NextToken => Str])
280              
281             Each argument is described in detail in: L<Paws::CloudHSM::ListHapgs>
282              
283             Returns: a L<Paws::CloudHSM::ListHapgsResponse> instance
284              
285             Lists the high-availability partition groups for the account.
286              
287             This operation supports pagination with the use of the I<NextToken>
288             member. If more results are available, the I<NextToken> member of the
289             response contains a token that you pass in the next call to ListHapgs
290             to retrieve the next set of items.
291              
292              
293             =head2 ListHsms([NextToken => Str])
294              
295             Each argument is described in detail in: L<Paws::CloudHSM::ListHsms>
296              
297             Returns: a L<Paws::CloudHSM::ListHsmsResponse> instance
298              
299             Retrieves the identifiers of all of the HSMs provisioned for the
300             current customer.
301              
302             This operation supports pagination with the use of the I<NextToken>
303             member. If more results are available, the I<NextToken> member of the
304             response contains a token that you pass in the next call to ListHsms to
305             retrieve the next set of items.
306              
307              
308             =head2 ListLunaClients([NextToken => Str])
309              
310             Each argument is described in detail in: L<Paws::CloudHSM::ListLunaClients>
311              
312             Returns: a L<Paws::CloudHSM::ListLunaClientsResponse> instance
313              
314             Lists all of the clients.
315              
316             This operation supports pagination with the use of the I<NextToken>
317             member. If more results are available, the I<NextToken> member of the
318             response contains a token that you pass in the next call to
319             ListLunaClients to retrieve the next set of items.
320              
321              
322             =head2 ListTagsForResource(ResourceArn => Str)
323              
324             Each argument is described in detail in: L<Paws::CloudHSM::ListTagsForResource>
325              
326             Returns: a L<Paws::CloudHSM::ListTagsForResourceResponse> instance
327              
328             Returns a list of all tags for the specified AWS CloudHSM resource.
329              
330              
331             =head2 ModifyHapg(HapgArn => Str, [Label => Str, PartitionSerialList => ArrayRef[Str|Undef]])
332              
333             Each argument is described in detail in: L<Paws::CloudHSM::ModifyHapg>
334              
335             Returns: a L<Paws::CloudHSM::ModifyHapgResponse> instance
336              
337             Modifies an existing high-availability partition group.
338              
339              
340             =head2 ModifyHsm(HsmArn => Str, [EniIp => Str, ExternalId => Str, IamRoleArn => Str, SubnetId => Str, SyslogIp => Str])
341              
342             Each argument is described in detail in: L<Paws::CloudHSM::ModifyHsm>
343              
344             Returns: a L<Paws::CloudHSM::ModifyHsmResponse> instance
345              
346             Modifies an HSM.
347              
348             This operation can result in the HSM being offline for up to 15 minutes
349             while the AWS CloudHSM service is reconfigured. If you are modifying a
350             production HSM, you should ensure that your AWS CloudHSM service is
351             configured for high availability, and consider executing this operation
352             during a maintenance window.
353              
354              
355             =head2 ModifyLunaClient(Certificate => Str, ClientArn => Str)
356              
357             Each argument is described in detail in: L<Paws::CloudHSM::ModifyLunaClient>
358              
359             Returns: a L<Paws::CloudHSM::ModifyLunaClientResponse> instance
360              
361             Modifies the certificate used by the client.
362              
363             This action can potentially start a workflow to install the new
364             certificate on the client's HSMs.
365              
366              
367             =head2 RemoveTagsFromResource(ResourceArn => Str, TagKeyList => ArrayRef[Str|Undef])
368              
369             Each argument is described in detail in: L<Paws::CloudHSM::RemoveTagsFromResource>
370              
371             Returns: a L<Paws::CloudHSM::RemoveTagsFromResourceResponse> instance
372              
373             Removes one or more tags from the specified AWS CloudHSM resource.
374              
375             To remove a tag, specify only the tag key to remove (not the value). To
376             overwrite the value for an existing tag, use AddTagsToResource.
377              
378              
379              
380              
381             =head1 PAGINATORS
382              
383             Paginator methods are helpers that repetively call methods that return partial results
384              
385              
386              
387              
388             =head1 SEE ALSO
389              
390             This service class forms part of L<Paws>
391              
392             =head1 BUGS and CONTRIBUTIONS
393              
394             The source code is located here: https://github.com/pplu/aws-sdk-perl
395              
396             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
397              
398             =cut
399