@@ -48,10 +48,10 @@ class KmsKeyring(Keyring):
48
48
Set ``generator_key_id`` to require that the keyring use that CMK to generate the data key.
49
49
If you do not set ``generator_key_id``, the keyring will not generate a data key.
50
50
51
- Set ``child_key_ids `` to specify additional CMKs that the keyring will use to encrypt the data key.
51
+ Set ``key_ids `` to specify additional CMKs that the keyring will use to encrypt the data key.
52
52
53
53
The keyring will attempt to use any CMKs
54
- identified by CMK ARN in either ``generator_key_id`` or ``child_key_ids `` on decrypt.
54
+ identified by CMK ARN in either ``generator_key_id`` or ``key_ids `` on decrypt.
55
55
56
56
You can identify CMKs by any `valid key ID`_ for the keyring to use on encrypt,
57
57
but for the keyring to attempt to use them on decrypt
@@ -82,14 +82,14 @@ class KmsKeyring(Keyring):
82
82
:param ClientSupplier client_supplier: Client supplier that provides AWS KMS clients (optional)
83
83
:param bool is_discovery: Should this be a discovery keyring (optional)
84
84
:param str generator_key_id: Key ID of AWS KMS CMK to use when generating data keys (optional)
85
- :param List[str] child_key_ids : Key IDs that will be used to encrypt and decrypt data keys (optional)
85
+ :param List[str] key_ids : Key IDs that will be used to encrypt and decrypt data keys (optional)
86
86
:param List[str] grant_tokens: AWS KMS grant tokens to include in requests (optional)
87
87
"""
88
88
89
89
_client_supplier = attr .ib (default = attr .Factory (DefaultClientSupplier ), validator = is_callable ())
90
90
_is_discovery = attr .ib (default = False , validator = instance_of (bool ))
91
91
_generator_key_id = attr .ib (default = None , validator = optional (instance_of (six .string_types )))
92
- _child_key_ids = attr .ib (
92
+ _key_ids = attr .ib (
93
93
default = attr .Factory (tuple ),
94
94
validator = (deep_iterable (member_validator = instance_of (six .string_types )), value_is_not_a_string ),
95
95
)
@@ -100,7 +100,7 @@ class KmsKeyring(Keyring):
100
100
101
101
def __attrs_post_init__ (self ):
102
102
"""Configure internal keyring."""
103
- key_ids_provided = self ._generator_key_id is not None or self ._child_key_ids
103
+ key_ids_provided = self ._generator_key_id is not None or self ._key_ids
104
104
both = key_ids_provided and self ._is_discovery
105
105
neither = not key_ids_provided and not self ._is_discovery
106
106
@@ -127,7 +127,7 @@ def __attrs_post_init__(self):
127
127
_AwsKmsSingleCmkKeyring (
128
128
key_id = key_id , client_supplier = self ._client_supplier , grant_tokens = self ._grant_tokens
129
129
)
130
- for key_id in self ._child_key_ids
130
+ for key_id in self ._key_ids
131
131
]
132
132
133
133
self ._inner_keyring = MultiKeyring (generator = generator_keyring , children = child_keyrings )
0 commit comments