blib/lib/Paws/KMS/GetKeyPolicy.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::KMS::GetKeyPolicy;
3 use Moose;
4 has KeyId => (is => 'ro', isa => 'Str', required => 1);
5 has PolicyName => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetKeyPolicy');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KMS::GetKeyPolicyResponse');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::KMS::GetKeyPolicy - Arguments for method GetKeyPolicy on L<Paws::KMS>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method GetKeyPolicy on the
23 L<AWS Key Management Service|Paws::KMS> service. Use the attributes of this class
24 as arguments to method GetKeyPolicy.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetKeyPolicy.
27  
28 =head1 SYNOPSIS
29  
30 my $kms = Paws->service('KMS');
31 # To retrieve a key policy
32 # The following example retrieves the key policy for the specified customer
33 # master key (CMK).
34 my $GetKeyPolicyResponse = $kms->GetKeyPolicy(
35 'KeyId' => '1234abcd-12ab-34cd-56ef-1234567890ab',
36 'PolicyName' => 'default'
37 );
38  
39 # Results:
40 my $Policy = $GetKeyPolicyResponse->Policy;
41  
42 # Returns a L<Paws::KMS::GetKeyPolicyResponse> object.
43  
44 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.
45 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kms/GetKeyPolicy>
46  
47 =head1 ATTRIBUTES
48  
49  
50 =head2 B<REQUIRED> KeyId => Str
51  
52 Gets the key policy for the specified customer master key (CMK).
53  
54 Specify the key ID or key ARN of the CMK.
55  
56 For example:
57  
58 =over
59  
60 =item *
61  
62 Key ID: C<1234abcd-12ab-34cd-56ef-1234567890ab>
63  
64 =item *
65  
66 Key ARN:
67 C<arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab>
68  
69 =back
70  
71 To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
72  
73  
74  
75 =head2 B<REQUIRED> PolicyName => Str
76  
77 Specifies the name of the key policy. The only valid name is
78 C<default>. To get the names of key policies, use ListKeyPolicies.
79  
80  
81  
82  
83 =head1 SEE ALSO
84  
85 This class forms part of L<Paws>, documenting arguments for method GetKeyPolicy in L<Paws::KMS>
86  
87 =head1 BUGS and CONTRIBUTIONS
88  
89 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
90  
91 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
92  
93 =cut
94