blib/lib/Paws/OpsWorksCM/RestoreServer.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::OpsWorksCM::RestoreServer;
3 use Moose;
4 has BackupId => (is => 'ro', isa => 'Str', required => 1);
5 has InstanceType => (is => 'ro', isa => 'Str');
6 has KeyPair => (is => 'ro', isa => 'Str');
7 has ServerName => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'RestoreServer');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::OpsWorksCM::RestoreServerResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::OpsWorksCM::RestoreServer - Arguments for method RestoreServer on L<Paws::OpsWorksCM>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method RestoreServer on the
25 L<AWS OpsWorks CM|Paws::OpsWorksCM> service. Use the attributes of this class
26 as arguments to method RestoreServer.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RestoreServer.
29  
30 =head1 SYNOPSIS
31  
32 my $opsworks-cm = Paws->service('OpsWorksCM');
33 my $RestoreServerResponse = $opsworks -cm->RestoreServer(
34 BackupId => 'MyBackupId',
35 ServerName => 'MyServerName',
36 InstanceType => 'MyString', # OPTIONAL
37 KeyPair => 'MyKeyPair', # OPTIONAL
38 );
39  
40 # Results:
41 my $Server = $RestoreServerResponse->Server;
42  
43 # Returns a L<Paws::OpsWorksCM::RestoreServerResponse> object.
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/opsworks-cm/latest/APIReference/API_RestoreServer.html>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> BackupId => Str
52  
53 The ID of the backup that you want to use to restore a server.
54  
55  
56  
57 =head2 InstanceType => Str
58  
59 The type of instance to restore. Valid values must be specified in the
60 following format: C<^([cm][34]|t2).*> For example, C<m5.large>. Valid
61 values are C<m5.large>, C<r5.xlarge>, and C<r5.2xlarge>. If you do not
62 specify this parameter, RestoreServer uses the instance type from the
63 specified backup.
64  
65  
66  
67 =head2 KeyPair => Str
68  
69 The name of the key pair to set on the new EC2 instance. This can be
70 helpful if the administrator no longer has the SSH key.
71  
72  
73  
74 =head2 B<REQUIRED> ServerName => Str
75  
76 The name of the server that you want to restore.
77  
78  
79  
80  
81 =head1 SEE ALSO
82  
83 This class forms part of L<Paws>, documenting arguments for method RestoreServer in L<Paws::OpsWorksCM>
84  
85 =head1 BUGS and CONTRIBUTIONS
86  
87 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
88  
89 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
90  
91 =cut
92