AWS msk documentation change
Summary
Updated Python client configuration example with corrected syntax and formatting, removed bold markdown from code snippets, and improved documentation clarity
Security assessment
Changes involve code formatting improvements and documentation clarifications without addressing security vulnerabilities or introducing new security features
Diff
diff --git a/msk/latest/developerguide/configure-clients-for-iam-access-control.md b/msk/latest/developerguide/configure-clients-for-iam-access-control.md index 74a9086d7..3e406fed1 100644 --- a//msk/latest/developerguide/configure-clients-for-iam-access-control.md +++ b//msk/latest/developerguide/configure-clients-for-iam-access-control.md @@ -20,3 +20 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro - 1. Edit your client.properties configuration file using the highlighted syntax in the example Python Kafka client below as a guide. Configuration changes are similar in other languages. - - **#!/usr/bin/python3from kafka import KafkaProducer** + 1. Edit your client.properties configuration file using the following Python Kafka client example. Configuration changes are similar in other languages. @@ -23,0 +22 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro + from kafka import KafkaProducer @@ -31 +30 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro - **token, _ = MSKAuthTokenProvider.generate_auth_token(' <my aws region>')** + token, _ = MSKAuthTokenProvider.generate_auth_token('<my AWS Region>') @@ -37 +36 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro - **bootstrap_servers=' <my bootstrap string>',** + bootstrap_servers='<myBootstrapString>', @@ -39 +38 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro - **sasl_mechanism='OAUTHBEARER',** + sasl_mechanism='OAUTHBEARER', @@ -56 +55 @@ To enable clients to communicate with an MSK cluster that uses IAM access contro - 2. Download the helper library for your chosen configuration language and follow the instructions in the _Getting started_ section on that language library’s homepage. + 2. Download the helper library for your chosen configuration language and follow the instructions in the _Getting started_ section of that language library’s homepage.