Skip to content

Commit 29b17dc

Browse files
committed
Updates for validation
1 parent 5861f8e commit 29b17dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.doc_gen/metadata/kms_metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ kms_EnableKeyRotation:
786786
- python.example_code.kms.KeyManager
787787
- python.example_code.kms.EnableKeyRotation
788788
services:
789-
kms: {kms_EnableKeyRotation}
789+
kms: {EnableKeyRotation}
790790
kms_Scenario_Basics:
791791
synopsis_list:
792792
- Create a &kms-key;.

javav2/example_code/kms/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav
3838

3939
Code examples that show you how to perform the essential operations within a service.
4040

41-
- [Learn KMS key core operations](src/main/java/com/example/kms/scenario/KMSScenario.java)
41+
- [Learn the basics](src/main/java/com/example/kms/scenario/KMSScenario.java)
4242

4343

4444
### Single actions
@@ -80,7 +80,7 @@ Code excerpts that show you how to call individual service functions.
8080
This example shows you how to get started using KMS key.
8181

8282

83-
#### Learn KMS key core operations
83+
#### Learn the basics
8484

8585
This example shows you how to do the following:
8686

python/example_code/kms/grant_management.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ def list_grants(self, key_id):
7373
:return: The grants for the key.
7474
"""
7575
try:
76-
paginator = self.kms_client.get_paginator('list_grants')
76+
paginator = self.kms_client.get_paginator("list_grants")
7777
grants = []
7878
page_iterator = paginator.paginate(KeyId=key_id)
7979
for page in page_iterator:
80-
grants.extend(page['Grants'])
80+
grants.extend(page["Grants"])
8181

8282
print(f"Grants for key {key_id}:")
8383
pprint(grants)
@@ -166,7 +166,7 @@ def grant_management(kms_client):
166166
grant_manager.retire_grant(grant)
167167
elif action == "revoke":
168168
grant_manager.revoke_grant(key_id, grant["GrantId"])
169-
print(f"Grant {grant["GrantId"]} revoked.")
169+
print(f"Grant {grant['GrantId']} revoked.")
170170
else:
171171
print("Skipping grant removal.")
172172

0 commit comments

Comments
 (0)