Skip to content

Commit 2c0881d

Browse files
committed
formatting
1 parent 8f7ef7e commit 2c0881d

File tree

1 file changed

+2
-3
lines changed
  • aws_sra_examples/solutions/genai/bedrock_org/lambda/rules/sra_bedrock_check_iam_user_access

1 file changed

+2
-3
lines changed

aws_sra_examples/solutions/genai/bedrock_org/lambda/rules/sra_bedrock_check_iam_user_access/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ def evaluate_compliance(event: dict, context: Any) -> dict: # noqa: CCR001, U10
9393
# Prepare the evaluation result
9494
if non_compliant_users:
9595
compliance_type = "NON_COMPLIANT"
96-
annotation = (
97-
"IAM users should not have direct access to Amazon Bedrock. These users have access and should use roles instead: "
98-
+ ", ".join(non_compliant_users)
96+
annotation = "IAM users should not have direct access to Amazon Bedrock. These users have access and should use roles instead: " + ", ".join(
97+
non_compliant_users
9998
)
10099
else:
101100
compliance_type = "COMPLIANT"

0 commit comments

Comments
 (0)