Skip to content

update_devices async

update_devices(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    device_fleet_name: Optional[EntityName] = None,
    devices: Optional[Devices] = None,
) -> None

Updates one or more devices in a fleet.

Parameters:

  • device_fleet_name (Optional[EntityName], default: None ) –

    The name of the fleet the devices belong to.

  • devices (Optional[Devices], default: None ) –

    List of devices to register with Edge Manager agent.

Raises:

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def update_devices(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    device_fleet_name: Optional[
        "capo_sagemaker.types.entity_name.EntityName"
    ] = None,
    devices: Optional["capo_sagemaker.types.devices.Devices"] = None,
) -> None:
    """<p>Updates one or more devices in a fleet.</p>

    Args:
        device_fleet_name: <p>The name of the fleet the devices belong to.</p>
        devices: <p>List of devices to register with Edge Manager agent.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.update_devices_request.UpdateDevicesRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_sagemaker._operations.sage_maker.update_devices

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.update_devices.async_update_devices(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateDevices")
    )
    input_: capo_sagemaker.types.update_devices_request.UpdateDevicesRequest = {}
    if device_fleet_name is not None:
        input_["device_fleet_name"] = device_fleet_name
    if devices is not None:
        input_["devices"] = devices

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output