PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` package Paws::CloudHSMv2; use Moose; sub service { 'cloudhsmv2' } sub signing_name { 'cloudhsm' } sub version { '2017-04-28' } sub target_prefix { 'BaldrApiService' } sub json_version { "1.1" } has max_attempts => (is => 'ro', isa => 'Int', default => 5); has retry => (is => 'ro', isa => 'HashRef', default => sub { { base => 'rand', type => 'exponential', growth_factor => 2 } }); has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ ] }); with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; sub CopyBackupToRegion { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::CopyBackupToRegion', @_); return $self->caller->do_call($self, $call_object); } sub CreateCluster { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::CreateCluster', @_); return $self->caller->do_call($self, $call_object); } sub CreateHsm { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::CreateHsm', @_); return $self->caller->do_call($self, $call_object); } sub DeleteBackup { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::DeleteBackup', @_); return $self->caller->do_call($self, $call_object); } sub DeleteCluster { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::DeleteCluster', @_); return $self->caller->do_call($self, $call_object); } sub DeleteHsm { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::DeleteHsm', @_); return $self->caller->do_call($self, $call_object); } sub DescribeBackups { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::DescribeBackups', @_); return $self->caller->do_call($self, $call_object); } sub DescribeClusters { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::DescribeClusters', @_); return $self->caller->do_call($self, $call_object); } sub InitializeCluster { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::InitializeCluster', @_); return $self->caller->do_call($self, $call_object); } sub ListTags { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::ListTags', @_); return $self->caller->do_call($self, $call_object); } sub ModifyBackupAttributes { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::ModifyBackupAttributes', @_); return $self->caller->do_call($self, $call_object); } sub ModifyCluster { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::ModifyCluster', @_); return $self->caller->do_call($self, $call_object); } sub RestoreBackup { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::RestoreBackup', @_); return $self->caller->do_call($self, $call_object); } sub TagResource { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::TagResource', @_); return $self->caller->do_call($self, $call_object); } sub UntagResource { my $self = shift; my $call_object = $self->new_with_coercions('Paws::CloudHSMv2::UntagResource', @_); return $self->caller->do_call($self, $call_object); } sub DescribeAllBackups { my $self = shift; my $callback = shift @_ if (ref($_[0]) eq 'CODE'); my $result = $self->DescribeBackups(@_); my $next_result = $result; if (not defined $callback) { while ($next_result->NextToken) { $next_result = $self->DescribeBackups(@_, NextToken => $next_result->NextToken); push @{ $result->Backups }, @{ $next_result->Backups }; } return $result; } else { while ($result->NextToken) { $callback->($_ => 'Backups') foreach (@{ $result->Backups }); $result = $self->DescribeBackups(@_, NextToken => $result->NextToken); } $callback->($_ => 'Backups') foreach (@{ $result->Backups }); } return undef } sub DescribeAllClusters { my $self = shift; my $callback = shift @_ if (ref($_[0]) eq 'CODE'); my $result = $self->DescribeClusters(@_); my $next_result = $result; if (not defined $callback) { while ($next_result->NextToken) { $next_result = $self->DescribeClusters(@_, NextToken => $next_result->NextToken); push @{ $result->Clusters }, @{ $next_result->Clusters }; } return $result; } else { while ($result->NextToken) { $callback->($_ => 'Clusters') foreach (@{ $result->Clusters }); $result = $self->DescribeClusters(@_, NextToken => $result->NextToken); } $callback->($_ => 'Clusters') foreach (@{ $result->Clusters }); } return undef } sub ListAllTags { my $self = shift; my $callback = shift @_ if (ref($_[0]) eq 'CODE'); my $result = $self->ListTags(@_); my $next_result = $result; if (not defined $callback) { while ($next_result->NextToken) { $next_result = $self->ListTags(@_, NextToken => $next_result->NextToken); push @{ $result->TagList }, @{ $next_result->TagList }; } return $result; } else { while ($result->NextToken) { $callback->($_ => 'TagList') foreach (@{ $result->TagList }); $result = $self->ListTags(@_, NextToken => $result->NextToken); } $callback->($_ => 'TagList') foreach (@{ $result->TagList }); } return undef } sub operations { qw/CopyBackupToRegion CreateCluster CreateHsm DeleteBackup DeleteCluster DeleteHsm DescribeBackups DescribeClusters InitializeCluster ListTags ModifyBackupAttributes ModifyCluster RestoreBackup TagResource UntagResource / } 1; ### main pod documentation begin ### =head1 NAME Paws::CloudHSMv2 - Perl Interface to AWS AWS CloudHSM V2 =head1 SYNOPSIS use Paws; my $obj = Paws->service('CloudHSMv2'); my $res = $obj->Method( Arg1 => $val1, Arg2 => [ 'V1', 'V2' ], # if Arg3 is an object, the HashRef will be used as arguments to the constructor # of the arguments type Arg3 => { Att1 => 'Val1' }, # if Arg4 is an array of objects, the HashRefs will be passed as arguments to # the constructor of the arguments type Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], ); =head1 DESCRIPTION For more information about AWS CloudHSM, see AWS CloudHSM (http://aws.amazon.com/cloudhsm/) and the AWS CloudHSM User Guide (https://docs.aws.amazon.com/cloudhsm/latest/userguide/). For the AWS API documentation, see L =head1 METHODS =head2 CopyBackupToRegion =over =item BackupId => Str =item DestinationRegion => Str =item [TagList => ArrayRef[L]] =back Each argument is described in detail in: L Returns: a L instance Copy an AWS CloudHSM cluster backup to a different region. =head2 CreateCluster =over =item HsmType => Str =item SubnetIds => ArrayRef[Str|Undef] =item [BackupRetentionPolicy => L] =item [SourceBackupId => Str] =item [TagList => ArrayRef[L]] =back Each argument is described in detail in: L Returns: a L instance Creates a new AWS CloudHSM cluster. =head2 CreateHsm =over =item AvailabilityZone => Str =item ClusterId => Str =item [IpAddress => Str] =back Each argument is described in detail in: L Returns: a L instance Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster. =head2 DeleteBackup =over =item BackupId => Str =back Each argument is described in detail in: L Returns: a L instance Deletes a specified AWS CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see RestoreBackup. =head2 DeleteCluster =over =item ClusterId => Str =back Each argument is described in detail in: L Returns: a L instance Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use DescribeClusters. To delete an HSM, use DeleteHsm. =head2 DeleteHsm =over =item ClusterId => Str =item [EniId => Str] =item [EniIp => Str] =item [HsmId => Str] =back Each argument is described in detail in: L Returns: a L instance Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use DescribeClusters. =head2 DescribeBackups =over =item [Filters => L] =item [MaxResults => Int] =item [NextToken => Str] =item [SortAscending => Bool] =back Each argument is described in detail in: L Returns: a L instance Gets information about backups of AWS CloudHSM clusters. This is a paginated operation, which means that each response might contain only a subset of all the backups. When the response contains only a subset of backups, it includes a C value. Use this value in a subsequent C request to get more backups. When you receive a response with no C (or an empty or null value), that means there are no more backups to get. =head2 DescribeClusters =over =item [Filters => L] =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Gets information about AWS CloudHSM clusters. This is a paginated operation, which means that each response might contain only a subset of all the clusters. When the response contains only a subset of clusters, it includes a C value. Use this value in a subsequent C request to get more clusters. When you receive a response with no C (or an empty or null value), that means there are no more clusters to get. =head2 InitializeCluster =over =item ClusterId => Str =item SignedCert => Str =item TrustAnchor => Str =back Each argument is described in detail in: L Returns: a L instance Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters. =head2 ListTags =over =item ResourceId => Str =item [MaxResults => Int] =item [NextToken => Str] =back Each argument is described in detail in: L Returns: a L instance Gets a list of tags for the specified AWS CloudHSM cluster. This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a C value. Use this value in a subsequent C request to get more tags. When you receive a response with no C (or an empty or null value), that means there are no more tags to get. =head2 ModifyBackupAttributes =over =item BackupId => Str =item NeverExpires => Bool =back Each argument is described in detail in: L Returns: a L instance Modifies attributes for AWS CloudHSM backup. =head2 ModifyCluster =over =item BackupRetentionPolicy => L =item ClusterId => Str =back Each argument is described in detail in: L Returns: a L instance Modifies AWS CloudHSM cluster. =head2 RestoreBackup =over =item BackupId => Str =back Each argument is described in detail in: L Returns: a L instance Restores a specified AWS CloudHSM backup that is in the C state. For mor information on deleting a backup, see DeleteBackup. =head2 TagResource =over =item ResourceId => Str =item TagList => ArrayRef[L] =back Each argument is described in detail in: L Returns: a L instance Adds or overwrites one or more tags for the specified AWS CloudHSM cluster. =head2 UntagResource =over =item ResourceId => Str =item TagKeyList => ArrayRef[Str|Undef] =back Each argument is described in detail in: L Returns: a L instance Removes the specified tag or tags from the specified AWS CloudHSM cluster. =head1 PAGINATORS Paginator methods are helpers that repetively call methods that return partial results =head2 DescribeAllBackups(sub { },[Filters => L, MaxResults => Int, NextToken => Str, SortAscending => Bool]) =head2 DescribeAllBackups([Filters => L, MaxResults => Int, NextToken => Str, SortAscending => Bool]) If passed a sub as first parameter, it will call the sub for each element found in : - Backups, passing the object as the first parameter, and the string 'Backups' as the second parameter If not, it will return a a L instance with all the Cs; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. =head2 DescribeAllClusters(sub { },[Filters => L, MaxResults => Int, NextToken => Str]) =head2 DescribeAllClusters([Filters => L, MaxResults => Int, NextToken => Str]) If passed a sub as first parameter, it will call the sub for each element found in : - Clusters, passing the object as the first parameter, and the string 'Clusters' as the second parameter If not, it will return a a L instance with all the Cs; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. =head2 ListAllTags(sub { },ResourceId => Str, [MaxResults => Int, NextToken => Str]) =head2 ListAllTags(ResourceId => Str, [MaxResults => Int, NextToken => Str]) If passed a sub as first parameter, it will call the sub for each element found in : - TagList, passing the object as the first parameter, and the string 'TagList' as the second parameter If not, it will return a a L instance with all the Cs; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. =head1 SEE ALSO This service class forms part of L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut