blib/lib/Paws/Route53/CreateKeySigningKey.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Route53::CreateKeySigningKey;
3 use Moose;
4 has CallerReference => (is => 'ro', isa => 'Str', required => 1);
5 has HostedZoneId => (is => 'ro', isa => 'Str', required => 1);
6 has KeyManagementServiceArn => (is => 'ro', isa => 'Str', required => 1);
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has Status => (is => 'ro', isa => 'Str', required => 1);
9  
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateKeySigningKey');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/keysigningkey');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateKeySigningKeyResponse');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateKeySigningKeyRequest');
19 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::Route53::CreateKeySigningKey - Arguments for method CreateKeySigningKey on L<Paws::Route53>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateKeySigningKey on the
31 L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class
32 as arguments to method CreateKeySigningKey.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateKeySigningKey.
35  
36 =head1 SYNOPSIS
37  
38 my $route53 = Paws->service('Route53');
39 my $CreateKeySigningKeyResponse = $route53->CreateKeySigningKey(
40 CallerReference => 'MyNonce',
41 HostedZoneId => 'MyResourceId',
42 KeyManagementServiceArn => 'MySigningKeyString',
43 Name => 'MySigningKeyName',
44 Status => 'MySigningKeyStatus',
45  
46 );
47  
48 # Results:
49 my $ChangeInfo = $CreateKeySigningKeyResponse->ChangeInfo;
50 my $KeySigningKey = $CreateKeySigningKeyResponse->KeySigningKey;
51 my $Location = $CreateKeySigningKeyResponse->Location;
52  
53 # Returns a L<Paws::Route53::CreateKeySigningKeyResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/CreateKeySigningKey>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> CallerReference => Str
62  
63 A unique string that identifies the request.
64  
65  
66  
67 =head2 B<REQUIRED> HostedZoneId => Str
68  
69 The unique string (ID) used to identify a hosted zone.
70  
71  
72  
73 =head2 B<REQUIRED> KeyManagementServiceArn => Str
74  
75 The Amazon resource name (ARN) for a customer managed customer master
76 key (CMK) in AWS Key Management Service (AWS KMS). The
77 C<KeyManagementServiceArn> must be unique for each key-signing key
78 (KSK) in a single hosted zone. To see an example of
79 C<KeyManagementServiceArn> that grants the correct permissions for
80 DNSSEC, scroll down to B<Example>.
81  
82 You must configure the customer managed CMK as follows:
83  
84 =over
85  
86 =item Status
87  
88 Enabled
89  
90 =item Key spec
91  
92 ECC_NIST_P256
93  
94 =item Key usage
95  
96 Sign and verify
97  
98 =item Key policy
99  
100 The key policy must give permission for the following actions:
101  
102 =over
103  
104 =item *
105  
106 DescribeKey
107  
108 =item *
109  
110 GetPublicKey
111  
112 =item *
113  
114 Sign
115  
116 =back
117  
118 The key policy must also include the Amazon Route 53 service in the
119 principal for your account. Specify the following:
120  
121 =over
122  
123 =item *
124  
125 C<"Service": "dnssec.route53.aws.amazonaws.com">
126  
127 =back
128  
129 =back
130  
131 For more information about working with a customer managed CMK in AWS
132 KMS, see AWS Key Management Service concepts
133 (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html).
134  
135  
136  
137 =head2 B<REQUIRED> Name => Str
138  
139 A string used to identify a key-signing key (KSK). C<Name> can include
140 numbers, letters, and underscores (_). C<Name> must be unique for each
141 key-signing key in the same hosted zone.
142  
143  
144  
145 =head2 B<REQUIRED> Status => Str
146  
147 A string specifying the initial status of the key-signing key (KSK).
148 You can set the value to C<ACTIVE> or C<INACTIVE>.
149  
150  
151  
152  
153 =head1 SEE ALSO
154  
155 This class forms part of L<Paws>, documenting arguments for method CreateKeySigningKey in L<Paws::Route53>
156  
157 =head1 BUGS and CONTRIBUTIONS
158  
159 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
160  
161 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
162  
163 =cut
164