structuredMessageListDefinition: se_StructuredMessageListDefinition()

in clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts [2889:3586]


      structuredMessageListDefinition: se_StructuredMessageListDefinition(value, context),
    }),
    _: (name, value) => ({ [name]: value } as any),
  });
};

/**
 * serializeAws_json1_0StructuredMessageDefinition
 */
const se_StructuredMessageDefinition = (
  input: StructuredMessageFieldNameAndDataTypePair[],
  context: __SerdeContext
): any => {
  return input
    .filter((e: any) => e != null)
    .map((entry) => {
      return se_StructuredMessageFieldNameAndDataTypePair(entry, context);
    });
};

/**
 * serializeAws_json1_0StructuredMessageFieldNameAndDataTypePair
 */
const se_StructuredMessageFieldNameAndDataTypePair = (
  input: StructuredMessageFieldNameAndDataTypePair,
  context: __SerdeContext
): any => {
  return take(input, {
    dataType: (_) => se_StructuredMessage(_, context),
    fieldName: [],
  });
};

/**
 * serializeAws_json1_0StructuredMessageListDefinition
 */
const se_StructuredMessageListDefinition = (input: StructuredMessageListDefinition, context: __SerdeContext): any => {
  return take(input, {
    capacity: [],
    listType: [],
    memberType: (_) => se_StructuredMessage(_, context),
    name: [],
  });
};

// se_Tag omitted.

// se_TagKeyList omitted.

// se_TagList omitted.

// se_TagResourceRequest omitted.

// se_TimeBasedCollectionScheme omitted.

// se_TimeBasedSignalFetchConfig omitted.

// se_TimePeriod omitted.

// se_TimestreamConfig omitted.

// se_TimestreamResources omitted.

// se_UntagResourceRequest omitted.

// se_UpdateCampaignRequest omitted.

/**
 * serializeAws_json1_0UpdateDecoderManifestRequest
 */
const se_UpdateDecoderManifestRequest = (input: UpdateDecoderManifestRequest, context: __SerdeContext): any => {
  return take(input, {
    defaultForUnmappedSignals: [],
    description: [],
    name: [],
    networkInterfacesToAdd: _json,
    networkInterfacesToRemove: _json,
    networkInterfacesToUpdate: _json,
    signalDecodersToAdd: (_) => se_SignalDecoders(_, context),
    signalDecodersToRemove: _json,
    signalDecodersToUpdate: (_) => se_SignalDecoders(_, context),
    status: [],
  });
};

// se_UpdateFleetRequest omitted.

// se_UpdateModelManifestRequest omitted.

/**
 * serializeAws_json1_0UpdateSignalCatalogRequest
 */
const se_UpdateSignalCatalogRequest = (input: UpdateSignalCatalogRequest, context: __SerdeContext): any => {
  return take(input, {
    description: [],
    name: [],
    nodesToAdd: (_) => se_Nodes(_, context),
    nodesToRemove: _json,
    nodesToUpdate: (_) => se_Nodes(_, context),
  });
};

// se_UpdateStateTemplateRequest omitted.

// se_UpdateVehicleRequest omitted.

// se_UpdateVehicleRequestItem omitted.

// se_updateVehicleRequestItems omitted.

// se_VehicleMiddleware omitted.

// de_AccessDeniedException omitted.

/**
 * deserializeAws_json1_0Actuator
 */
const de_Actuator = (output: any, context: __SerdeContext): Actuator => {
  return take(output, {
    allowedValues: _json,
    assignedValue: __expectString,
    comment: __expectString,
    dataType: __expectString,
    deprecationMessage: __expectString,
    description: __expectString,
    fullyQualifiedName: __expectString,
    max: __limitedParseDouble,
    min: __limitedParseDouble,
    structFullyQualifiedName: __expectString,
    unit: __expectString,
  }) as any;
};

// de_AssociateVehicleFleetResponse omitted.

/**
 * deserializeAws_json1_0Attribute
 */
const de_Attribute = (output: any, context: __SerdeContext): Attribute => {
  return take(output, {
    allowedValues: _json,
    assignedValue: __expectString,
    comment: __expectString,
    dataType: __expectString,
    defaultValue: __expectString,
    deprecationMessage: __expectString,
    description: __expectString,
    fullyQualifiedName: __expectString,
    max: __limitedParseDouble,
    min: __limitedParseDouble,
    unit: __expectString,
  }) as any;
};

// de_attributesMap omitted.

// de_BatchCreateVehicleResponse omitted.

// de_BatchUpdateVehicleResponse omitted.

// de_Branch omitted.

/**
 * deserializeAws_json1_0campaignSummaries
 */
const de_campaignSummaries = (output: any, context: __SerdeContext): CampaignSummary[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_CampaignSummary(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_json1_0CampaignSummary
 */
const de_CampaignSummary = (output: any, context: __SerdeContext): CampaignSummary => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    name: __expectString,
    signalCatalogArn: __expectString,
    status: __expectString,
    targetArn: __expectString,
  }) as any;
};

// de_CanInterface omitted.

/**
 * deserializeAws_json1_0CanSignal
 */
const de_CanSignal = (output: any, context: __SerdeContext): CanSignal => {
  return take(output, {
    factor: __limitedParseDouble,
    isBigEndian: __expectBoolean,
    isSigned: __expectBoolean,
    length: __expectInt32,
    messageId: __expectInt32,
    name: __expectString,
    offset: __limitedParseDouble,
    signalValueType: __expectString,
    startBit: __expectInt32,
  }) as any;
};

// de_CloudWatchLogDeliveryOptions omitted.

// de_CollectionScheme omitted.

// de_ConditionBasedCollectionScheme omitted.

// de_ConditionBasedSignalFetchConfig omitted.

// de_ConflictException omitted.

// de_CreateCampaignResponse omitted.

// de_CreateDecoderManifestResponse omitted.

// de_CreateFleetResponse omitted.

// de_CreateModelManifestResponse omitted.

// de_CreateSignalCatalogResponse omitted.

// de_CreateStateTemplateResponse omitted.

// de_CreateVehicleError omitted.

// de_createVehicleErrors omitted.

// de_CreateVehicleResponse omitted.

// de_CreateVehicleResponseItem omitted.

// de_createVehicleResponses omitted.

// de_CustomDecodingInterface omitted.

// de_CustomDecodingSignal omitted.

// de_CustomProperty omitted.

// de_CustomStruct omitted.

// de_DataDestinationConfig omitted.

// de_DataDestinationConfigs omitted.

// de_DataExtraDimensionNodePathList omitted.

// de_DataPartition omitted.

// de_DataPartitions omitted.

// de_DataPartitionStorageOptions omitted.

// de_DataPartitionUploadOptions omitted.

/**
 * deserializeAws_json1_0decoderManifestSummaries
 */
const de_decoderManifestSummaries = (output: any, context: __SerdeContext): DecoderManifestSummary[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_DecoderManifestSummary(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_json1_0DecoderManifestSummary
 */
const de_DecoderManifestSummary = (output: any, context: __SerdeContext): DecoderManifestSummary => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    message: __expectString,
    modelManifestArn: __expectString,
    name: __expectString,
    status: __expectString,
  }) as any;
};

// de_DecoderManifestValidationException omitted.

// de_DeleteCampaignResponse omitted.

// de_DeleteDecoderManifestResponse omitted.

// de_DeleteFleetResponse omitted.

// de_DeleteModelManifestResponse omitted.

// de_DeleteSignalCatalogResponse omitted.

// de_DeleteStateTemplateResponse omitted.

// de_DeleteVehicleResponse omitted.

// de_DisassociateVehicleFleetResponse omitted.

// de_EventExpressionList omitted.

// de_fleets omitted.

/**
 * deserializeAws_json1_0fleetSummaries
 */
const de_fleetSummaries = (output: any, context: __SerdeContext): FleetSummary[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_FleetSummary(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_json1_0FleetSummary
 */
const de_FleetSummary = (output: any, context: __SerdeContext): FleetSummary => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    id: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    signalCatalogArn: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0GetCampaignResponse
 */
const de_GetCampaignResponse = (output: any, context: __SerdeContext): GetCampaignResponse => {
  return take(output, {
    arn: __expectString,
    collectionScheme: (_: any) => _json(__expectUnion(_)),
    compression: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    dataDestinationConfigs: _json,
    dataExtraDimensions: _json,
    dataPartitions: _json,
    description: __expectString,
    diagnosticsMode: __expectString,
    expiryTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    name: __expectString,
    postTriggerCollectionDuration: __expectLong,
    priority: __expectInt32,
    signalCatalogArn: __expectString,
    signalsToCollect: _json,
    signalsToFetch: _json,
    spoolingMode: __expectString,
    startTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    status: __expectString,
    targetArn: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0GetDecoderManifestResponse
 */
const de_GetDecoderManifestResponse = (output: any, context: __SerdeContext): GetDecoderManifestResponse => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    message: __expectString,
    modelManifestArn: __expectString,
    name: __expectString,
    status: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0GetEncryptionConfigurationResponse
 */
const de_GetEncryptionConfigurationResponse = (
  output: any,
  context: __SerdeContext
): GetEncryptionConfigurationResponse => {
  return take(output, {
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    encryptionStatus: __expectString,
    encryptionType: __expectString,
    errorMessage: __expectString,
    kmsKeyId: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
  }) as any;
};

/**
 * deserializeAws_json1_0GetFleetResponse
 */
const de_GetFleetResponse = (output: any, context: __SerdeContext): GetFleetResponse => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    id: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    signalCatalogArn: __expectString,
  }) as any;
};

// de_GetLoggingOptionsResponse omitted.

/**
 * deserializeAws_json1_0GetModelManifestResponse
 */
const de_GetModelManifestResponse = (output: any, context: __SerdeContext): GetModelManifestResponse => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    name: __expectString,
    signalCatalogArn: __expectString,
    status: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0GetRegisterAccountStatusResponse
 */
const de_GetRegisterAccountStatusResponse = (
  output: any,
  context: __SerdeContext
): GetRegisterAccountStatusResponse => {
  return take(output, {
    accountStatus: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    customerAccountId: __expectString,
    iamRegistrationResponse: _json,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    timestreamRegistrationResponse: _json,
  }) as any;
};

/**
 * deserializeAws_json1_0GetSignalCatalogResponse
 */
const de_GetSignalCatalogResponse = (output: any, context: __SerdeContext): GetSignalCatalogResponse => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    name: __expectString,
    nodeCounts: _json,
  }) as any;
};

/**
 * deserializeAws_json1_0GetStateTemplateResponse
 */
const de_GetStateTemplateResponse = (output: any, context: __SerdeContext): GetStateTemplateResponse => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    dataExtraDimensions: _json,
    description: __expectString,
    id: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    metadataExtraDimensions: _json,
    name: __expectString,
    signalCatalogArn: __expectString,
    stateTemplateProperties: _json,
  }) as any;
};

/**
 * deserializeAws_json1_0GetVehicleResponse
 */
const de_GetVehicleResponse = (output: any, context: __SerdeContext): GetVehicleResponse => {
  return take(output, {
    arn: __expectString,
    attributes: _json,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    decoderManifestArn: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    modelManifestArn: __expectString,
    stateTemplates: _json,
    vehicleName: __expectString,
  }) as any;
};

// de_GetVehicleStatusResponse omitted.

// de_IamRegistrationResponse omitted.

// de_IamResources omitted.

// de_ImportDecoderManifestResponse omitted.

// de_ImportSignalCatalogResponse omitted.

// de_InternalServerException omitted.

// de_InvalidNetworkInterface omitted.

// de_InvalidNetworkInterfaces omitted.

/**
 * deserializeAws_json1_0InvalidNodeException
 */
const de_InvalidNodeException = (output: any, context: __SerdeContext): InvalidNodeException => {
  return take(output, {
    invalidNodes: (_: any) => de_Nodes(_, context),
    message: __expectString,
    reason: __expectString,
  }) as any;
};

// de_InvalidSignal omitted.

// de_InvalidSignalDecoder omitted.

// de_InvalidSignalDecoders omitted.

// de_InvalidSignals omitted.

// de_InvalidSignalsException omitted.

// de_LimitExceededException omitted.

/**
 * deserializeAws_json1_0ListCampaignsResponse
 */
const de_ListCampaignsResponse = (output: any, context: __SerdeContext): ListCampaignsResponse => {
  return take(output, {
    campaignSummaries: (_: any) => de_campaignSummaries(_, context),
    nextToken: __expectString,
  }) as any;
};

// de_ListDecoderManifestNetworkInterfacesResponse omitted.

/**
 * deserializeAws_json1_0ListDecoderManifestSignalsResponse
 */
const de_ListDecoderManifestSignalsResponse = (
  output: any,
  context: __SerdeContext
): ListDecoderManifestSignalsResponse => {
  return take(output, {
    nextToken: __expectString,
    signalDecoders: (_: any) => de_SignalDecoders(_, context),
  }) as any;
};

/**
 * deserializeAws_json1_0ListDecoderManifestsResponse
 */
const de_ListDecoderManifestsResponse = (output: any, context: __SerdeContext): ListDecoderManifestsResponse => {
  return take(output, {
    nextToken: __expectString,
    summaries: (_: any) => de_decoderManifestSummaries(_, context),
  }) as any;
};

// de_ListFleetsForVehicleResponse omitted.

/**
 * deserializeAws_json1_0ListFleetsResponse
 */
const de_ListFleetsResponse = (output: any, context: __SerdeContext): ListFleetsResponse => {
  return take(output, {
    fleetSummaries: (_: any) => de_fleetSummaries(_, context),
    nextToken: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0ListModelManifestNodesResponse
 */
const de_ListModelManifestNodesResponse = (output: any, context: __SerdeContext): ListModelManifestNodesResponse => {
  return take(output, {
    nextToken: __expectString,
    nodes: (_: any) => de_Nodes(_, context),
  }) as any;
};

/**
 * deserializeAws_json1_0ListModelManifestsResponse
 */
const de_ListModelManifestsResponse = (output: any, context: __SerdeContext): ListModelManifestsResponse => {
  return take(output, {
    nextToken: __expectString,
    summaries: (_: any) => de_modelManifestSummaries(_, context),
  }) as any;
};

// de_listOfStrings omitted.

/**
 * deserializeAws_json1_0ListSignalCatalogNodesResponse
 */
const de_ListSignalCatalogNodesResponse = (output: any, context: __SerdeContext): ListSignalCatalogNodesResponse => {
  return take(output, {
    nextToken: __expectString,
    nodes: (_: any) => de_Nodes(_, context),
  }) as any;
};

/**
 * deserializeAws_json1_0ListSignalCatalogsResponse
 */
const de_ListSignalCatalogsResponse = (output: any, context: __SerdeContext): ListSignalCatalogsResponse => {
  return take(output, {
    nextToken: __expectString,
    summaries: (_: any) => de_signalCatalogSummaries(_, context),
  }) as any;
};

/**
 * deserializeAws_json1_0ListStateTemplatesResponse
 */
const de_ListStateTemplatesResponse = (output: any, context: __SerdeContext): ListStateTemplatesResponse => {
  return take(output, {
    nextToken: __expectString,
    summaries: (_: any) => de_StateTemplateSummaries(_, context),
  }) as any;
};

// de_ListTagsForResourceResponse omitted.

// de_ListVehiclesInFleetResponse omitted.

/**
 * deserializeAws_json1_0ListVehiclesResponse
 */
const de_ListVehiclesResponse = (output: any, context: __SerdeContext): ListVehiclesResponse => {
  return take(output, {
    nextToken: __expectString,
    vehicleSummaries: (_: any) => de_vehicleSummaries(_, context),
  }) as any;
};

/**
 * deserializeAws_json1_0MessageSignal
 */
const de_MessageSignal = (output: any, context: __SerdeContext): MessageSignal => {
  return take(output, {
    structuredMessage: (_: any) => de_StructuredMessage(__expectUnion(_), context),
    topicName: __expectString,
  }) as any;
};

/**
 * deserializeAws_json1_0modelManifestSummaries
 */
const de_modelManifestSummaries = (output: any, context: __SerdeContext): ModelManifestSummary[] => {
  const retVal = (output || [])
    .filter((e: any) => e != null)
    .map((entry: any) => {
      return de_ModelManifestSummary(entry, context);
    });
  return retVal;
};

/**
 * deserializeAws_json1_0ModelManifestSummary
 */
const de_ModelManifestSummary = (output: any, context: __SerdeContext): ModelManifestSummary => {
  return take(output, {
    arn: __expectString,
    creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    description: __expectString,
    lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
    name: __expectString,
    signalCatalogArn: __expectString,
    status: __expectString,
  }) as any;
};

// de_MqttTopicConfig omitted.

// de_NetworkInterface omitted.

// de_NetworkInterfaces omitted.

/**
 * deserializeAws_json1_0Node
 */
const de_Node = (output: any, context: __SerdeContext): Node => {
  if (output.actuator != null) {
    return {