| 80 | self._session_ua_creator = user_agent_creator |
| 81 | |
| 82 | def get_client_args( |
| 83 | self, |
| 84 | service_model, |
| 85 | region_name, |
| 86 | is_secure, |
| 87 | endpoint_url, |
| 88 | verify, |
| 89 | credentials, |
| 90 | scoped_config, |
| 91 | client_config, |
| 92 | endpoint_bridge, |
| 93 | auth_token=None, |
| 94 | endpoints_ruleset_data=None, |
| 95 | partition_data=None, |
| 96 | ): |
| 97 | final_args = self.compute_client_args( |
| 98 | service_model, |
| 99 | client_config, |
| 100 | endpoint_bridge, |
| 101 | region_name, |
| 102 | endpoint_url, |
| 103 | is_secure, |
| 104 | scoped_config, |
| 105 | ) |
| 106 | |
| 107 | service_name = final_args['service_name'] # noqa |
| 108 | parameter_validation = final_args['parameter_validation'] |
| 109 | endpoint_config = final_args['endpoint_config'] |
| 110 | protocol = final_args['protocol'] |
| 111 | config_kwargs = final_args['config_kwargs'] |
| 112 | s3_config = final_args['s3_config'] |
| 113 | partition = endpoint_config['metadata'].get('partition', None) |
| 114 | socket_options = final_args['socket_options'] |
| 115 | configured_endpoint_url = final_args['configured_endpoint_url'] |
| 116 | signing_region = endpoint_config['signing_region'] |
| 117 | endpoint_region_name = endpoint_config['region_name'] |
| 118 | account_id_endpoint_mode = config_kwargs['account_id_endpoint_mode'] |
| 119 | s3_disable_express_session_auth = config_kwargs[ |
| 120 | 's3_disable_express_session_auth' |
| 121 | ] |
| 122 | auth_scheme_preference = config_kwargs['auth_scheme_preference'] |
| 123 | |
| 124 | event_emitter = copy.copy(self._event_emitter) |
| 125 | signer = RequestSigner( |
| 126 | service_model.service_id, |
| 127 | signing_region, |
| 128 | endpoint_config['signing_name'], |
| 129 | endpoint_config['signature_version'], |
| 130 | credentials, |
| 131 | event_emitter, |
| 132 | auth_token, |
| 133 | ) |
| 134 | |
| 135 | config_kwargs['s3'] = s3_config |
| 136 | new_config = Config(**config_kwargs) |
| 137 | endpoint_creator = EndpointCreator(event_emitter) |
| 138 | |
| 139 | endpoint = endpoint_creator.create_endpoint( |