Skip to content

Commit

Permalink
Merge pull request #43 from kszakharov/sudo_id
Browse files Browse the repository at this point in the history
add aws_sudo_id to json based services (EKS)
  • Loading branch information
ancient07 authored Oct 12, 2022
2 parents 6e01239 + 37025b6 commit 28e2c76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions botocore/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ def serialize_to_request(self, parameters, operation_model, context=None):
serialized['query_string'] = partitioned['query_string_kwargs']
if partitioned['headers']:
serialized['headers'] = partitioned['headers']
if isinstance(context, dict) and context.get('aws_sudo_id') is not None:
serialized['headers']['AWSSudoId'] = context['aws_sudo_id']
self._serialize_payload(partitioned, parameters,
serialized, shape, shape_members)

Expand Down

0 comments on commit 28e2c76

Please sign in to comment.