Skip to content

Commit 4c712ae

Browse files
authored
Disable botocore parameter validation (#711)
1 parent 2889865 commit 4c712ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pynamodb/connection/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def client(self):
526526
# otherwise the client is permanently poisoned in the case of metadata service flakiness when using IAM roles
527527
if not self._client or (self._client._request_signer and not self._client._request_signer._credentials):
528528
config = botocore.client.Config(
529+
parameter_validation=False, # Disable unnecessary validation for performance
529530
connect_timeout=self._connect_timeout_seconds,
530531
read_timeout=self._read_timeout_seconds,
531532
max_pool_connections=self._max_pool_connections)

0 commit comments

Comments
 (0)