def _update_using_properties()

in source/lambda/quicksight-custom-resources/util/quicksight_resource.py [0:0]


    def _update_using_properties(self, obj_props):
        if not obj_props:
            return
        if self.sub_type:
            # there is sub-type in props, e.g. in data-set case, so we go one level deeper in the
            # dictionary to get the props of the sub-type
            obj_props = obj_props.get(self.sub_type, None)
        # if we found obj properties, use any provied to override the object properties
        if obj_props:
            self.id = obj_props.get("id", self.id)
            self.name = obj_props.get("name", self.name)
            self.arn = obj_props.get("arn", self.arn)
            if not self.arn:
                self._update_arn()
            self._update_url()