File Coverage

blib/lib/Paws/IAM/UploadServerCertificate.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::IAM::UploadServerCertificate;
3 1     1   319 use Moose;
  1         2  
  1         7  
4             has CertificateBody => (is => 'ro', isa => 'Str', required => 1);
5             has CertificateChain => (is => 'ro', isa => 'Str');
6             has Path => (is => 'ro', isa => 'Str');
7             has PrivateKey => (is => 'ro', isa => 'Str', required => 1);
8             has ServerCertificateName => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   5444 use MooseX::ClassAttribute;
  1         4  
  1         6  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UploadServerCertificate');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IAM::UploadServerCertificateResponse');
14             class_has _result_key => (isa => 'Str', is => 'ro', default => 'UploadServerCertificateResult');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::IAM::UploadServerCertificate - Arguments for method UploadServerCertificate on Paws::IAM
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method UploadServerCertificate on the
26             AWS Identity and Access Management service. Use the attributes of this class
27             as arguments to method UploadServerCertificate.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UploadServerCertificate.
30              
31             As an example:
32              
33             $service_obj->UploadServerCertificate(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 B<REQUIRED> CertificateBody => Str
41              
42             The contents of the public key certificate in PEM-encoded format.
43              
44             The regex pattern used to validate this parameter is a string of
45             characters consisting of any printable ASCII character ranging from the
46             space character (\u0020) through end of the ASCII character range as
47             well as the printable characters in the Basic Latin and Latin-1
48             Supplement character set (through \u00FF). It also includes the special
49             characters tab (\u0009), line feed (\u000A), and carriage return
50             (\u000D).
51              
52              
53              
54             =head2 CertificateChain => Str
55              
56             The contents of the certificate chain. This is typically a
57             concatenation of the PEM-encoded public key certificates of the chain.
58              
59             The regex pattern used to validate this parameter is a string of
60             characters consisting of any printable ASCII character ranging from the
61             space character (\u0020) through end of the ASCII character range as
62             well as the printable characters in the Basic Latin and Latin-1
63             Supplement character set (through \u00FF). It also includes the special
64             characters tab (\u0009), line feed (\u000A), and carriage return
65             (\u000D).
66              
67              
68              
69             =head2 Path => Str
70              
71             The path for the server certificate. For more information about paths,
72             see IAM Identifiers in the I<IAM User Guide>.
73              
74             This parameter is optional. If it is not included, it defaults to a
75             slash (/). This paramater allows (per its regex pattern) a string of
76             characters consisting of either a forward slash (/) by itself or a
77             string that must begin and end with forward slashes, containing any
78             ASCII character from the ! (\u0021) thru the DEL character (\u007F),
79             including most punctuation characters, digits, and upper and lowercased
80             letters.
81              
82             If you are uploading a server certificate specifically for use with
83             Amazon CloudFront distributions, you must specify a path using the
84             C<--path> option. The path must begin with C</cloudfront> and must
85             include a trailing slash (for example, C</cloudfront/test/>).
86              
87              
88              
89             =head2 B<REQUIRED> PrivateKey => Str
90              
91             The contents of the private key in PEM-encoded format.
92              
93             The regex pattern used to validate this parameter is a string of
94             characters consisting of any printable ASCII character ranging from the
95             space character (\u0020) through end of the ASCII character range as
96             well as the printable characters in the Basic Latin and Latin-1
97             Supplement character set (through \u00FF). It also includes the special
98             characters tab (\u0009), line feed (\u000A), and carriage return
99             (\u000D).
100              
101              
102              
103             =head2 B<REQUIRED> ServerCertificateName => Str
104              
105             The name for the server certificate. Do not include the path in this
106             value. The name of the certificate cannot contain any spaces.
107              
108             This parameter allows (per its regex pattern) a string of characters
109             consisting of upper and lowercase alphanumeric characters with no
110             spaces. You can also include any of the following characters: =,.@-
111              
112              
113              
114              
115             =head1 SEE ALSO
116              
117             This class forms part of L<Paws>, documenting arguments for method UploadServerCertificate in L<Paws::IAM>
118              
119             =head1 BUGS and CONTRIBUTIONS
120              
121             The source code is located here: https://github.com/pplu/aws-sdk-perl
122              
123             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
124              
125             =cut
126