Skip to content

delete_model_manifest async

delete_model_manifest(
    name: resourceName,
    *,
    config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = None,
) -> DeleteModelManifestResponse

Deletes a vehicle model (model manifest).

Parameters:

  • name (resourceName) –

    The name of the model manifest to delete.

Raises:

  • InternalServerException –

    The request couldn't be completed because the server temporarily failed.

  • AccessDeniedException –

    You don't have sufficient permission to perform this action.

  • ConflictException –

    The 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.

  • ThrottlingException –

    The request couldn't be completed due to throttling.

  • ValidationException –

    The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_iotfleetwise/_services/async_io_t_fleet_wise.py
async def delete_model_manifest(
    self,
    name: "capo_iotfleetwise.types.resource_name.resourceName",
    *,
    config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = None,
) -> "capo_iotfleetwise.types.delete_model_manifest_response.DeleteModelManifestResponse":
    """<p> Deletes a vehicle model (model manifest).</p>

    Args:
        name: <p> The name of the model manifest to delete. </p>

    Raises:
        capo_iotfleetwise.errors.internal_server_exception.InternalServerException: <p>The request couldn't be completed because the server temporarily failed.</p>
        capo_iotfleetwise.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permission to perform this action.</p>
        capo_iotfleetwise.errors.conflict_exception.ConflictException: <p>The 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.</p>
        capo_iotfleetwise.errors.throttling_exception.ThrottlingException: <p>The request couldn't be completed due to throttling.</p>
        capo_iotfleetwise.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_iotfleetwise.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iotfleetwise.types.delete_model_manifest_request.DeleteModelManifestRequest]",
    ) -> AsyncOperationResponse[
        "capo_iotfleetwise.types.delete_model_manifest_response.DeleteModelManifestResponse"
    ]:
        import capo_iotfleetwise._operations.io_t_autobahn_control_plane.delete_model_manifest

        (
            output,
            http_response,
        ) = await capo_iotfleetwise._operations.io_t_autobahn_control_plane.delete_model_manifest.async_delete_model_manifest(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteModelManifest")
    )
    input_: capo_iotfleetwise.types.delete_model_manifest_request.DeleteModelManifestRequest = {
        "name": name
    }

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