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

Method _build_initial_shape

awscli/botocore/model.py:945–954  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

943 return shape
944
945 def _build_initial_shape(self, model):
946 shape = {
947 'type': model['type'],
948 }
949 if 'documentation' in model:
950 shape['documentation'] = model['documentation']
951 for attr in Shape.METADATA_ATTRS:
952 if attr in model:
953 shape[attr] = model[attr]
954 return shape
955
956 def _build_scalar(self, model):
957 return self._build_initial_shape(model)

Callers 4

_build_structureMethod · 0.95
_build_listMethod · 0.95
_build_mapMethod · 0.95
_build_scalarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected