@@ -68,6 +68,7 @@ def _certificate_source_metrics_value(source):
6868
6969 Mapping: CERTIFICATE_FILES->A, PKCS11->B, WINDOWS_CERT_STORE->C, PKCS12_FILE->E.
7070 "D" is reserved for Java KeyStore.
71+ Returns None if source is None or unrecognized.
7172 """
7273 from awscrt .io import _CertificateSource
7374 mapping = {
@@ -237,7 +238,7 @@ def _get_encoded_feature_list(client_options):
237238 - D (outbound_topic_alias_behavior): from topic_aliasing_options.outbound_behavior
238239 - E (inbound_topic_alias_behavior): from topic_aliasing_options.inbound_behavior
239240 - H (http_proxy_type): HTTP or HTTPS based on proxy TLS settings
240- - I (certificate_source): Detected from TlsContextOptions
241+ - I (certificate_source): detected from TlsContextOptions
241242 - J (tls_cipher_preference): mapped from TlsCipherPref on the TLS context
242243 - K (minimum_tls_version): mapped from TlsVersion on the TLS context
243244
@@ -292,7 +293,7 @@ def _get_encoded_feature_list(client_options):
292293 val = _http_proxy_type_metrics_value (client_options .http_proxy_options )
293294 features .append (f"{ _MetricsFeatureId .HTTP_PROXY_TYPE .value } /{ val } " )
294295
295- # I: certificate_source - Auto- detected from TlsContextOptions factory method
296+ # I: certificate_source - detected from TlsContextOptions factory method
296297 if client_options .tls_ctx is not None :
297298 val = _certificate_source_metrics_value (getattr (client_options .tls_ctx , '_certificate_source' , None ))
298299 if val :
@@ -325,7 +326,7 @@ def _get_encoded_feature_list_mqtt3(proxy_options, tls_ctx=None):
325326
326327 Conditionally includes:
327328 - H (http_proxy_type): HTTP or HTTPS based on proxy TLS settings
328- - I (certificate_source): auto- detected from TlsContextOptions factory method
329+ - I (certificate_source): detected from TlsContextOptions
329330 - J (tls_cipher_preference): mapped from TlsCipherPref on the TLS context
330331 - K (minimum_tls_version): mapped from TlsVersion on the TLS context
331332
@@ -344,7 +345,7 @@ def _get_encoded_feature_list_mqtt3(proxy_options, tls_ctx=None):
344345 val = _http_proxy_type_metrics_value (proxy_options )
345346 features .append (f"{ _MetricsFeatureId .HTTP_PROXY_TYPE .value } /{ val } " )
346347
347- # I: certificate_source - Auto- detected from TlsContextOptions factory method
348+ # I: certificate_source - detected from TlsContextOptions factory method
348349 if tls_ctx is not None :
349350 val = _certificate_source_metrics_value (getattr (tls_ctx , '_certificate_source' , None ))
350351 if val :
@@ -461,7 +462,7 @@ def _create_metrics_mqtt5(client_options):
461462 """Create the final AWSIoTMetrics object for an MQTT5 client.
462463
463464 Generates the CRT feature list from the full set of MQTT5 ClientOptions,
464- including auto- detected certificate source from the TLS context.
465+ including detected certificate source from the TLS context.
465466
466467 Args:
467468 client_options: MQTT5 ClientOptions dataclass containing all
@@ -477,7 +478,7 @@ def _create_metrics_mqtt3(user_metrics=None, proxy_options=None, tls_ctx=None):
477478 """Create the final AWSIoTMetrics object for an MQTT3 connection.
478479
479480 Generates the CRT feature list from the MQTT3 connection parameters,
480- including auto- detected certificate source from the TLS context.
481+ including detected certificate source from the TLS context.
481482
482483 Args:
483484 user_metrics: Optional AWSIoTMetrics configuration provided by the IoT SDK.
0 commit comments