Sets values for multiple time series properties.
Parameters:
-
workspace_id
(Id)
–
The ID of the workspace that contains the properties to set.
-
entries
(Entries)
–
An object that maps strings to the property value entries to set. Each string in the mapping must be unique to this object.
Raises:
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
| async def batch_put_property_values(
self,
workspace_id: "capo_iottwinmaker.types.id.Id",
entries: "capo_iottwinmaker.types.entries.Entries",
*,
config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
) -> "capo_iottwinmaker.types.batch_put_property_values_response.BatchPutPropertyValuesResponse":
"""<p>Sets values for multiple time series properties.</p>
Args:
workspace_id: <p>The ID of the workspace that contains the properties to set.</p>
entries: <p>An object that maps strings to the property value entries to set. Each string in the mapping must be unique to this object.</p>
Raises:
capo_iottwinmaker.errors.internal_server_exception.InternalServerException: <p>An unexpected error has occurred.</p>
capo_iottwinmaker.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource wasn't found.</p>
capo_iottwinmaker.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
capo_iottwinmaker.errors.validation_exception.ValidationException: <p>Failed</p>
capo_iottwinmaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iottwinmaker.types.batch_put_property_values_request.BatchPutPropertyValuesRequest]",
) -> AsyncOperationResponse[
"capo_iottwinmaker.types.batch_put_property_values_response.BatchPutPropertyValuesResponse"
]:
import capo_iottwinmaker._operations.aws_io_t_twin_maker.batch_put_property_values
(
output,
http_response,
) = await capo_iottwinmaker._operations.aws_io_t_twin_maker.batch_put_property_values.async_batch_put_property_values(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchPutPropertyValues")
)
input_: capo_iottwinmaker.types.batch_put_property_values_request.BatchPutPropertyValuesRequest = {
"workspace_id": workspace_id,
"entries": entries,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|