update_computation_model
async
¶
update_computation_model(
computation_model_id: ID,
computation_model_name: RestrictedName,
computation_model_configuration: ComputationModelConfiguration,
computation_model_data_binding: ComputationModelDataBinding,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
computation_model_description: Optional[RestrictedDescription] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateComputationModelResponse
Updates the computation model.
Parameters:
-
computation_model_id(ID) –The ID of the computation model.
-
computation_model_name(RestrictedName) –The name of the computation model.
-
computation_model_description(Optional[RestrictedDescription], default:None) –The description of the computation model.
-
computation_model_configuration(ComputationModelConfiguration) –The configuration for the computation model.
-
computation_model_data_binding(ComputationModelDataBinding) –The data binding for the computation model. Key is a variable name defined in configuration. Value is a
ComputationModelDataBindingValuereferenced by the variable. -
client_token(Optional[ClientToken], default:None) –A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
Raises:
-
ConflictingOperationException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
LimitExceededException–You've reached the quota for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.
For more information, see Quotas in the IoT SiteWise User Guide.
-
ResourceAlreadyExistsException–The resource already exists.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 | |