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

Class ClientMeta

awscli/botocore/client.py:1201–1252  ·  view source on GitHub ↗

Holds additional client methods. This class holds additional information for clients. It exists for two reasons: * To give advanced functionality to clients * To namespace additional client attributes from the operation names which are mapped to methods at runtim

Source from the content-addressed store, hash-verified

1199
1200
1201class ClientMeta:
1202 """Holds additional client methods.
1203
1204 This class holds additional information for clients. It exists for
1205 two reasons:
1206
1207 * To give advanced functionality to clients
1208 * To namespace additional client attributes from the operation
1209 names which are mapped to methods at runtime. This avoids
1210 ever running into collisions with operation names.
1211
1212 """
1213
1214 def __init__(
1215 self,
1216 events,
1217 client_config,
1218 endpoint_url,
1219 service_model,
1220 method_to_api_mapping,
1221 partition,
1222 ):
1223 self.events = events
1224 self._client_config = client_config
1225 self._endpoint_url = endpoint_url
1226 self._service_model = service_model
1227 self._method_to_api_mapping = method_to_api_mapping
1228 self._partition = partition
1229
1230 @property
1231 def service_model(self):
1232 return self._service_model
1233
1234 @property
1235 def region_name(self):
1236 return self._client_config.region_name
1237
1238 @property
1239 def endpoint_url(self):
1240 return self._endpoint_url
1241
1242 @property
1243 def config(self):
1244 return self._client_config
1245
1246 @property
1247 def method_to_api_mapping(self):
1248 return self._method_to_api_mapping
1249
1250 @property
1251 def partition(self):
1252 return self._partition
1253
1254
1255def _get_configured_signature_version(

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected