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

Method build_model

awscli/botocore/model.py:873–891  ·  view source on GitHub ↗

Build the model based on the provided members. :rtype: botocore.model.StructureShape :return: The built StructureShape object.

(self)

Source from the content-addressed store, hash-verified

871 return self
872
873 def build_model(self):
874 """Build the model based on the provided members.
875
876 :rtype: botocore.model.StructureShape
877 :return: The built StructureShape object.
878
879 """
880 shapes = OrderedDict()
881 denormalized = {
882 'type': 'structure',
883 'members': self._members,
884 }
885 self._build_model(denormalized, shapes, self.name)
886 resolver = ShapeResolver(shape_map=shapes)
887 return StructureShape(
888 shape_name=self.name,
889 shape_model=shapes[self.name],
890 shape_resolver=resolver,
891 )
892
893 def _build_model(self, model, shapes, shape_name):
894 if model['type'] == 'structure':

Calls 3

_build_modelMethod · 0.95
ShapeResolverClass · 0.85
StructureShapeClass · 0.85