Creates a decoder manifest using your existing CAN DBC file from your local device.
The CAN signal name must be unique and not repeated across CAN message definitions in a .dbc file.
Parameters:
-
name
(resourceName)
–
The name of the decoder manifest to import.
-
network_file_definitions
(NetworkFileDefinitions)
–
The file to load into an Amazon Web Services account.
Raises:
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
| def import_decoder_manifest(
self,
name: "capo_iotfleetwise.types.resource_name.resourceName",
network_file_definitions: "capo_iotfleetwise.types.network_file_definitions.NetworkFileDefinitions",
*,
config_overrides: Optional[IoTFleetWiseClientConfig] = None,
) -> "capo_iotfleetwise.types.import_decoder_manifest_response.ImportDecoderManifestResponse":
"""<p> Creates a decoder manifest using your existing CAN DBC file from your local device. </p> <p>The CAN signal name must be unique and not repeated across CAN message definitions in a .dbc file. </p>
Args:
name: <p> The name of the decoder manifest to import. </p>
network_file_definitions: <p> The file to load into an Amazon Web Services account. </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.decoder_manifest_validation_exception.DecoderManifestValidationException: <p>The request couldn't be completed because it contains signal decoders with one or more validation errors.</p>
capo_iotfleetwise.errors.invalid_signals_exception.InvalidSignalsException: <p>The request couldn't be completed because it contains signals that aren't valid.</p>
capo_iotfleetwise.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource wasn't found.</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.
"""
def _handler(
req: "OperationRequest[capo_iotfleetwise.types.import_decoder_manifest_request.ImportDecoderManifestRequest]",
) -> OperationResponse[
"capo_iotfleetwise.types.import_decoder_manifest_response.ImportDecoderManifestResponse"
]:
import capo_iotfleetwise._operations.io_t_autobahn_control_plane.import_decoder_manifest
output, http_response = (
capo_iotfleetwise._operations.io_t_autobahn_control_plane.import_decoder_manifest.import_decoder_manifest(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ImportDecoderManifest")
)
input_: capo_iotfleetwise.types.import_decoder_manifest_request.ImportDecoderManifestRequest = {
"name": name,
"network_file_definitions": network_file_definitions,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|