blib/lib/Paws/ACM/ImportCertificate.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ACM::ImportCertificate;
3 use Moose;
4 has Certificate => (is => 'ro', isa => 'Str', required => 1);
5 has CertificateArn => (is => 'ro', isa => 'Str');
6 has CertificateChain => (is => 'ro', isa => 'Str');
7 has PrivateKey => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ACM::Tag]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportCertificate');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ACM::ImportCertificateResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ACM::ImportCertificate - Arguments for method ImportCertificate on L<Paws::ACM>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ImportCertificate on the
26 L<AWS Certificate Manager|Paws::ACM> service. Use the attributes of this class
27 as arguments to method ImportCertificate.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportCertificate.
30  
31 =head1 SYNOPSIS
32  
33 my $acm = Paws->service('ACM');
34 my $ImportCertificateResponse = $acm->ImportCertificate(
35 Certificate => 'BlobCertificateBodyBlob',
36 PrivateKey => 'BlobPrivateKeyBlob',
37 CertificateArn => 'MyArn', # OPTIONAL
38 CertificateChain => 'BlobCertificateChainBlob', # OPTIONAL
39 Tags => [
40 {
41 Key => 'MyTagKey', # min: 1, max: 128
42 Value => 'MyTagValue', # max: 256; OPTIONAL
43 },
44 ...
45 ], # OPTIONAL
46 );
47  
48 # Results:
49 my $CertificateArn = $ImportCertificateResponse->CertificateArn;
50  
51 # Returns a L<Paws::ACM::ImportCertificateResponse> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/acm/ImportCertificate>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> Certificate => Str
60  
61 The certificate to import.
62  
63  
64  
65 =head2 CertificateArn => Str
66  
67 The Amazon Resource Name (ARN)
68 (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
69 of an imported certificate to replace. To import a new certificate,
70 omit this field.
71  
72  
73  
74 =head2 CertificateChain => Str
75  
76 The PEM encoded certificate chain.
77  
78  
79  
80 =head2 B<REQUIRED> PrivateKey => Str
81  
82 The private key that matches the public key in the certificate.
83  
84  
85  
86 =head2 Tags => ArrayRef[L<Paws::ACM::Tag>]
87  
88 One or more resource tags to associate with the imported certificate.
89  
90 Note: You cannot apply tags when reimporting a certificate.
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method ImportCertificate in L<Paws::ACM>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106