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

filter: Statementstmt 0.0% 0 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 6 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::KMS::GrantConstraints;
3 use Moose;
4 has EncryptionContextEquals => (is => 'ro', isa => 'Paws::KMS::EncryptionContextType');
5 has EncryptionContextSubset => (is => 'ro', isa => 'Paws::KMS::EncryptionContextType');
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::KMS::GrantConstraints
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::KMS::GrantConstraints object:
25  
26 $service_obj->Method(Att1 => { EncryptionContextEquals => $value, ..., EncryptionContextSubset => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::KMS::GrantConstraints object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->EncryptionContextEquals
34  
35 =head1 DESCRIPTION
36  
37 Use this structure to allow cryptographic operations
38 (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
39 in the grant only when the operation request includes the specified
40 encryption context
41 (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context).
42  
43 AWS KMS applies the grant constraints only to cryptographic operations
44 that support an encryption context, that is, all cryptographic
45 operations with a symmetric CMK
46 (https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#symmetric-cmks).
47 Grant constraints are not applied to operations that do not support an
48 encryption context, such as cryptographic operations with asymmetric
49 CMKs and management operations, such as DescribeKey or RetireGrant.
50  
51 In a cryptographic operation, the encryption context in the decryption
52 operation must be an exact, case-sensitive match for the keys and
53 values in the encryption context of the encryption operation. Only the
54 order of the pairs can vary.
55  
56 However, in a grant constraint, the key in each key-value pair is not
57 case sensitive, but the value is case sensitive.
58  
59 To avoid confusion, do not use multiple encryption context pairs that
60 differ only by case. To require a fully case-sensitive encryption
61 context, use the C<kms:EncryptionContext:> and
62 C<kms:EncryptionContextKeys> conditions in an IAM or key policy. For
63 details, see kms:EncryptionContext:
64 (https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-context)
65 in the I< I<AWS Key Management Service Developer Guide> >.
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 EncryptionContextEquals => L<Paws::KMS::EncryptionContextType>
71  
72 A list of key-value pairs that must match the encryption context in the
73 cryptographic operation
74 (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
75 request. The grant allows the operation only when the encryption
76 context in the request is the same as the encryption context specified
77 in this constraint.
78  
79  
80 =head2 EncryptionContextSubset => L<Paws::KMS::EncryptionContextType>
81  
82 A list of key-value pairs that must be included in the encryption
83 context of the cryptographic operation
84 (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
85 request. The grant allows the cryptographic operation only when the
86 encryption context in the request includes the key-value pairs
87 specified in this constraint, although it can include additional
88 key-value pairs.
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, describing an object used in L<Paws::KMS>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103