update_component_type
¶
update_component_type(
workspace_id: Id,
component_type_id: ComponentTypeId,
*,
config_overrides: Optional[IoTTwinMakerClientConfig] = None,
is_singleton: Optional[Boolean] = None,
description: Optional[Description] = None,
property_definitions: Optional[PropertyDefinitionsRequest] = None,
extends_from: Optional[ExtendsFrom] = None,
functions: Optional[FunctionsRequest] = None,
property_groups: Optional[PropertyGroupsRequest] = None,
component_type_name: Optional[ComponentTypeName] = None,
composite_component_types: Optional[CompositeComponentTypesRequest] = None,
) -> UpdateComponentTypeResponse
Updates information in a component type.
Parameters:
-
workspace_id(Id) –The ID of the workspace.
-
is_singleton(Optional[Boolean], default:None) –A Boolean value that specifies whether an entity can have more than one component of this type.
-
component_type_id(ComponentTypeId) –The ID of the component type.
-
description(Optional[Description], default:None) –The description of the component type.
-
property_definitions(Optional[PropertyDefinitionsRequest], default:None) –An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.
-
extends_from(Optional[ExtendsFrom], default:None) –Specifies the component type that this component type extends.
-
functions(Optional[FunctionsRequest], default:None) –An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object.
-
property_groups(Optional[PropertyGroupsRequest], default:None) –The property groups.
-
component_type_name(Optional[ComponentTypeName], default:None) –The component type name.
-
composite_component_types(Optional[CompositeComponentTypesRequest], default:None) –This is an object that maps strings to
compositeComponentTypesof thecomponentType.CompositeComponentTypeis referenced bycomponentTypeId.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalServerException–An unexpected error has occurred.
-
ResourceNotFoundException–The resource wasn't found.
-
ServiceQuotaExceededException–The service quota was exceeded.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–Failed
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iottwinmaker/_services/io_t_twin_maker.py
2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 | |