Skip to content

Commit

Permalink
Disable botocore parameter validation (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettheel committed Oct 21, 2019
1 parent 2889865 commit 4c712ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pynamodb/connection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def client(self):
# otherwise the client is permanently poisoned in the case of metadata service flakiness when using IAM roles
if not self._client or (self._client._request_signer and not self._client._request_signer._credentials):
config = botocore.client.Config(
parameter_validation=False, # Disable unnecessary validation for performance
connect_timeout=self._connect_timeout_seconds,
read_timeout=self._read_timeout_seconds,
max_pool_connections=self._max_pool_connections)
Expand Down

0 comments on commit 4c712ae

Please sign in to comment.