@@ -362,7 +362,7 @@ def _builder(
362362 return client
363363
364364
365- def mtls_from_path (cert_filepath , pri_key_filepath , cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
365+ def mtls_from_path (cert_filepath , pri_key_filepath , cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
366366 ** kwargs ) -> awscrt .mqtt5 .Client :
367367 """
368368 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an mTLS MQTT5 Client to AWS IoT.
@@ -378,14 +378,14 @@ def mtls_from_path(cert_filepath, pri_key_filepath, cipher_suite=awscrt.io.TlsCi
378378 """
379379 _check_required_kwargs (** kwargs )
380380 tls_ctx_options = awscrt .io .TlsContextOptions .create_client_with_mtls_from_path (cert_filepath , pri_key_filepath )
381- tls_ctx_options .cipher_pref = cipher_suite
381+ tls_ctx_options .cipher_pref = cipher_pref
382382 return _builder (tls_ctx_options , ** kwargs )
383383
384384
385385def mtls_from_bytes (
386386 cert_bytes ,
387387 pri_key_bytes ,
388- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
388+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
389389 ** kwargs ) -> awscrt .mqtt5 .Client :
390390 """
391391 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an mTLS MQTT5 Client to AWS IoT.
@@ -401,7 +401,7 @@ def mtls_from_bytes(
401401 """
402402 _check_required_kwargs (** kwargs )
403403 tls_ctx_options = awscrt .io .TlsContextOptions .create_client_with_mtls (cert_bytes , pri_key_bytes )
404- tls_ctx_options .cipher_pref = cipher_suite
404+ tls_ctx_options .cipher_pref = cipher_pref
405405 return _builder (tls_ctx_options , ** kwargs )
406406
407407
@@ -413,7 +413,7 @@ def mtls_with_pkcs11(*,
413413 private_key_label : str = None ,
414414 cert_filepath : str = None ,
415415 cert_bytes = None ,
416- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
416+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
417417 ** kwargs ) -> awscrt .mqtt5 .Client :
418418 """
419419 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an mTLS MQTT connection to AWS IoT,
@@ -459,14 +459,14 @@ def mtls_with_pkcs11(*,
459459 private_key_label = private_key_label ,
460460 cert_file_path = cert_filepath ,
461461 cert_file_contents = cert_bytes )
462- tls_ctx_options .cipher_pref = cipher_suite
462+ tls_ctx_options .cipher_pref = cipher_pref
463463 return _builder (tls_ctx_options , ** kwargs )
464464
465465
466466def mtls_with_pkcs12 (* ,
467467 pkcs12_filepath : str ,
468468 pkcs12_password : str ,
469- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
469+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
470470 ** kwargs ) -> awscrt .mqtt .Connection :
471471 """
472472 This builder creates an :class:`awscrt.mqtt.Connection`, configured for an mTLS MQTT connection to AWS IoT,
@@ -487,13 +487,13 @@ def mtls_with_pkcs12(*,
487487 tls_ctx_options = awscrt .io .TlsContextOptions .create_client_with_mtls_pkcs12 (
488488 pkcs12_filepath = pkcs12_filepath ,
489489 pkcs12_password = pkcs12_password )
490- tls_ctx_options .cipher_pref = cipher_suite
490+ tls_ctx_options .cipher_pref = cipher_pref
491491 return _builder (tls_ctx_options , ** kwargs )
492492
493493
494494def mtls_with_windows_cert_store_path (* ,
495495 cert_store_path : str ,
496- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
496+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
497497 ** kwargs ) -> awscrt .mqtt5 .Client :
498498 """
499499 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an mTLS MQTT5 Client to AWS IoT,
@@ -512,15 +512,15 @@ def mtls_with_windows_cert_store_path(*,
512512 _check_required_kwargs (** kwargs )
513513
514514 tls_ctx_options = awscrt .io .TlsContextOptions .create_client_with_mtls_windows_cert_store_path (cert_store_path )
515- tls_ctx_options .cipher_pref = cipher_suite
515+ tls_ctx_options .cipher_pref = cipher_pref
516516 return _builder (tls_ctx_options , ** kwargs )
517517
518518
519519def websockets_with_default_aws_signing (
520520 region ,
521521 credentials_provider ,
522522 websocket_proxy_options = None ,
523- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
523+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
524524 ** kwargs ) -> awscrt .mqtt5 .Client :
525525 """
526526 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an MQTT5 Client over websockets to AWS IoT.
@@ -560,15 +560,15 @@ def _sign_websocket_handshake_request(transform_args, **kwargs):
560560
561561 return websockets_with_custom_handshake (
562562 _sign_websocket_handshake_request ,
563- websocket_proxy_options ,
564- cipher_suite ,
563+ websocket_proxy_options = websocket_proxy_options ,
564+ cipher_pref = cipher_pref ,
565565 ** kwargs )
566566
567567
568568def websockets_with_custom_handshake (
569569 websocket_handshake_transform ,
570570 websocket_proxy_options = None ,
571- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
571+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
572572 ** kwargs ) -> awscrt .mqtt5 .Client :
573573 """
574574 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an MQTT5 Client over websockets,
@@ -596,7 +596,7 @@ def websockets_with_custom_handshake(
596596 """
597597 _check_required_kwargs (** kwargs )
598598 tls_ctx_options = awscrt .io .TlsContextOptions ()
599- tls_ctx_options .cipher_pref = cipher_suite
599+ tls_ctx_options .cipher_pref = cipher_pref
600600 return _builder (tls_ctx_options = tls_ctx_options ,
601601 use_websockets = True ,
602602 websocket_handshake_transform = websocket_handshake_transform ,
@@ -628,7 +628,7 @@ def direct_with_custom_authorizer(
628628 auth_password = None ,
629629 auth_token_key_name = None ,
630630 auth_token_value = None ,
631- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
631+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
632632 ** kwargs ) -> awscrt .mqtt5 .Client :
633633 """
634634 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an MQTT5 Client using a custom
@@ -695,7 +695,7 @@ def direct_with_custom_authorizer(
695695
696696 tls_ctx_options = awscrt .io .TlsContextOptions ()
697697 tls_ctx_options .alpn_list = ["mqtt" ]
698- tls_ctx_options .cipher_pref = cipher_suite
698+ tls_ctx_options .cipher_pref = cipher_pref
699699
700700 return _builder (tls_ctx_options = tls_ctx_options ,
701701 use_websockets = False ,
@@ -711,7 +711,7 @@ def websockets_with_custom_authorizer(
711711 websocket_proxy_options = None ,
712712 auth_token_key_name = None ,
713713 auth_token_value = None ,
714- cipher_suite = awscrt .io .TlsCipherPref .DEFAULT ,
714+ cipher_pref = awscrt .io .TlsCipherPref .DEFAULT ,
715715 ** kwargs ) -> awscrt .mqtt5 .Client :
716716 """
717717 This builder creates an :class:`awscrt.mqtt5.Client`, configured for an MQTT5 Client using a custom
@@ -781,7 +781,7 @@ def websockets_with_custom_authorizer(
781781 kwargs ["password" ] = auth_password
782782
783783 tls_ctx_options = awscrt .io .TlsContextOptions ()
784- tls_ctx_options .cipher_pref = cipher_suite
784+ tls_ctx_options .cipher_pref = cipher_pref
785785
786786 def _sign_websocket_handshake_request (transform_args , ** kwargs ):
787787 # transform_args need to know when transform is done
@@ -798,7 +798,7 @@ def _sign_websocket_handshake_request(transform_args, **kwargs):
798798 ** kwargs )
799799
800800
801- def new_default_builder (cipher_suite = awscrt .io .TlsCipherPref .DEFAULT , ** kwargs ) -> awscrt .mqtt5 .Client :
801+ def new_default_builder (cipher_pref = awscrt .io .TlsCipherPref .DEFAULT , ** kwargs ) -> awscrt .mqtt5 .Client :
802802 """
803803 This builder creates an :class:`awscrt.mqtt5.Client`, without any configuration besides the default TLS context options.
804804
@@ -807,7 +807,7 @@ def new_default_builder(cipher_suite=awscrt.io.TlsCipherPref.DEFAULT, **kwargs)
807807 """
808808 _check_required_kwargs (** kwargs )
809809 tls_ctx_options = awscrt .io .TlsContextOptions ()
810- tls_ctx_options .cipher_pref = cipher_suite
810+ tls_ctx_options .cipher_pref = cipher_pref
811811 return _builder (tls_ctx_options = tls_ctx_options ,
812812 use_websockets = False ,
813813 ** kwargs )
0 commit comments