MCPcopy Create free account
hub / github.com/aws/aws-cli / ClientContext

Class ClientContext

awscli/botocore/context.py:27–36  ·  view source on GitHub ↗

Encapsulation of objects tracked within the ``_context`` context variable. ``features`` is a set responsible for storing features used during preparation of an AWS request. ``botocore.useragent.register_feature_id`` is used to add to this set.

Source from the content-addressed store, hash-verified

25
26@dataclass
27class ClientContext:
28 """
29 Encapsulation of objects tracked within the ``_context`` context variable.
30
31 ``features`` is a set responsible for storing features used during
32 preparation of an AWS request. ``botocore.useragent.register_feature_id``
33 is used to add to this set.
34 """
35
36 features: Set[str] = field(default_factory=set)
37
38
39_context = ContextVar("_context")

Callers 4

custom_contextFunction · 0.90
client_contextFunction · 0.90
start_as_current_contextFunction · 0.85

Calls

no outgoing calls

Tested by 3

custom_contextFunction · 0.72
client_contextFunction · 0.72