File Coverage

blib/lib/Paws/KMS/ReEncrypt.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::KMS::ReEncrypt;
3 1     1   593 use Moose;
  1         3  
  1         8  
4             has CiphertextBlob => (is => 'ro', isa => 'Str', required => 1);
5             has DestinationEncryptionContext => (is => 'ro', isa => 'Paws::KMS::EncryptionContextType');
6             has DestinationKeyId => (is => 'ro', isa => 'Str', required => 1);
7             has GrantTokens => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8             has SourceEncryptionContext => (is => 'ro', isa => 'Paws::KMS::EncryptionContextType');
9              
10 1     1   6939 use MooseX::ClassAttribute;
  1         3  
  1         11  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'ReEncrypt');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::KMS::ReEncryptResponse');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::KMS::ReEncrypt - Arguments for method ReEncrypt on Paws::KMS
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method ReEncrypt on the
26             AWS Key Management Service service. Use the attributes of this class
27             as arguments to method ReEncrypt.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ReEncrypt.
30              
31             As an example:
32              
33             $service_obj->ReEncrypt(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> CiphertextBlob => Str
41              
42             Ciphertext of the data to reencrypt.
43              
44              
45              
46             =head2 DestinationEncryptionContext => L<Paws::KMS::EncryptionContextType>
47              
48             Encryption context to use when the data is reencrypted.
49              
50              
51              
52             =head2 B<REQUIRED> DestinationKeyId => Str
53              
54             A unique identifier for the CMK to use to reencrypt the data. This
55             value can be a globally unique identifier, a fully specified ARN to
56             either an alias or a key, or an alias name prefixed by "alias/".
57              
58             =over
59              
60             =item *
61              
62             Key ARN Example -
63             arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
64              
65             =item *
66              
67             Alias ARN Example -
68             arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
69              
70             =item *
71              
72             Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
73              
74             =item *
75              
76             Alias Name Example - alias/MyAliasName
77              
78             =back
79              
80              
81              
82              
83             =head2 GrantTokens => ArrayRef[Str|Undef]
84              
85             A list of grant tokens.
86              
87             For more information, see Grant Tokens in the I<AWS Key Management
88             Service Developer Guide>.
89              
90              
91              
92             =head2 SourceEncryptionContext => L<Paws::KMS::EncryptionContextType>
93              
94             Encryption context used to encrypt and decrypt the data specified in
95             the C<CiphertextBlob> parameter.
96              
97              
98              
99              
100             =head1 SEE ALSO
101              
102             This class forms part of L<Paws>, documenting arguments for method ReEncrypt in L<Paws::KMS>
103              
104             =head1 BUGS and CONTRIBUTIONS
105              
106             The source code is located here: https://github.com/pplu/aws-sdk-perl
107              
108             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
109              
110             =cut
111