import { HttpRequest as __HttpRequest , HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http" ; import { expectBoolean as __expectBoolean , expectInt32 as __expectInt32 , expectLong as __expectLong , expectNonNull as __expectNonNull , expectNumber as __expectNumber , expectString as __expectString , expectUnion as __expectUnion , LazyJsonString as __LazyJsonString , limitedParseDouble as __limitedParseDouble , limitedParseFloat32 as __limitedParseFloat32 , parseEpochTimestamp as __parseEpochTimestamp , serializeFloat as __serializeFloat , } from "@aws-sdk/smithy-client" ; import { Endpoint as __Endpoint , HeaderBag as __HeaderBag , MetadataBearer as __MetadataBearer , ResponseMetadata as __ResponseMetadata , SerdeContext as __SerdeContext , SmithyException as __SmithyException , } from "@aws-sdk/types" ; import { v4 as generateIdempotencyToken } from "uuid" ; import { AddAssociationCommandInput , AddAssociationCommandOutput } from "../commands/AddAssociationCommand" ; import { AddTagsCommandInput , AddTagsCommandOutput } from "../commands/AddTagsCommand" ; import { AssociateTrialComponentCommandInput , AssociateTrialComponentCommandOutput , } from "../commands/AssociateTrialComponentCommand" ; import { BatchDescribeModelPackageCommandInput , BatchDescribeModelPackageCommandOutput , } from "../commands/BatchDescribeModelPackageCommand" ; import { CreateActionCommandInput , CreateActionCommandOutput } from "../commands/CreateActionCommand" ; import { CreateAlgorithmCommandInput , CreateAlgorithmCommandOutput } from "../commands/CreateAlgorithmCommand" ; import { CreateAppCommandInput , CreateAppCommandOutput } from "../commands/CreateAppCommand" ; import { CreateAppImageConfigCommandInput , CreateAppImageConfigCommandOutput , } from "../commands/CreateAppImageConfigCommand" ; import { CreateArtifactCommandInput , CreateArtifactCommandOutput } from "../commands/CreateArtifactCommand" ; import { CreateAutoMLJobCommandInput , CreateAutoMLJobCommandOutput } from "../commands/CreateAutoMLJobCommand" ; import { CreateCodeRepositoryCommandInput , CreateCodeRepositoryCommandOutput , } from "../commands/CreateCodeRepositoryCommand" ; import { CreateCompilationJobCommandInput , CreateCompilationJobCommandOutput , } from "../commands/CreateCompilationJobCommand" ; import { CreateContextCommandInput , CreateContextCommandOutput } from "../commands/CreateContextCommand" ; import { CreateDataQualityJobDefinitionCommandInput , CreateDataQualityJobDefinitionCommandOutput , } from "../commands/CreateDataQualityJobDefinitionCommand" ; import { CreateDeviceFleetCommandInput , CreateDeviceFleetCommandOutput } from "../commands/CreateDeviceFleetCommand" ; import { CreateDomainCommandInput , CreateDomainCommandOutput } from "../commands/CreateDomainCommand" ; import { CreateEdgePackagingJobCommandInput , CreateEdgePackagingJobCommandOutput , } from "../commands/CreateEdgePackagingJobCommand" ; import { CreateEndpointCommandInput , CreateEndpointCommandOutput } from "../commands/CreateEndpointCommand" ; import { CreateEndpointConfigCommandInput , CreateEndpointConfigCommandOutput , } from "../commands/CreateEndpointConfigCommand" ; import { CreateExperimentCommandInput , CreateExperimentCommandOutput } from "../commands/CreateExperimentCommand" ; import { CreateFeatureGroupCommandInput , CreateFeatureGroupCommandOutput } from "../commands/CreateFeatureGroupCommand" ; import { CreateFlowDefinitionCommandInput , CreateFlowDefinitionCommandOutput , } from "../commands/CreateFlowDefinitionCommand" ; import { CreateHumanTaskUiCommandInput , CreateHumanTaskUiCommandOutput } from "../commands/CreateHumanTaskUiCommand" ; import { CreateHyperParameterTuningJobCommandInput , CreateHyperParameterTuningJobCommandOutput , } from "../commands/CreateHyperParameterTuningJobCommand" ; import { CreateImageCommandInput , CreateImageCommandOutput } from "../commands/CreateImageCommand" ; import { CreateImageVersionCommandInput , CreateImageVersionCommandOutput } from "../commands/CreateImageVersionCommand" ; import { CreateInferenceRecommendationsJobCommandInput , CreateInferenceRecommendationsJobCommandOutput , } from "../commands/CreateInferenceRecommendationsJobCommand" ; import { CreateLabelingJobCommandInput , CreateLabelingJobCommandOutput } from "../commands/CreateLabelingJobCommand" ; import { CreateModelBiasJobDefinitionCommandInput , CreateModelBiasJobDefinitionCommandOutput , } from "../commands/CreateModelBiasJobDefinitionCommand" ; import { CreateModelCommandInput , CreateModelCommandOutput } from "../commands/CreateModelCommand" ; import { CreateModelExplainabilityJobDefinitionCommandInput , CreateModelExplainabilityJobDefinitionCommandOutput , } from "../commands/CreateModelExplainabilityJobDefinitionCommand" ; import { CreateModelPackageCommandInput , CreateModelPackageCommandOutput } from "../commands/CreateModelPackageCommand" ; import { CreateModelPackageGroupCommandInput , CreateModelPackageGroupCommandOutput , } from "../commands/CreateModelPackageGroupCommand" ; import { CreateModelQualityJobDefinitionCommandInput , CreateModelQualityJobDefinitionCommandOutput , } from "../commands/CreateModelQualityJobDefinitionCommand" ; import { CreateMonitoringScheduleCommandInput , CreateMonitoringScheduleCommandOutput , } from "../commands/CreateMonitoringScheduleCommand" ; import { CreateNotebookInstanceCommandInput , CreateNotebookInstanceCommandOutput , } from "../commands/CreateNotebookInstanceCommand" ; import { CreateNotebookInstanceLifecycleConfigCommandInput , CreateNotebookInstanceLifecycleConfigCommandOutput , } from "../commands/CreateNotebookInstanceLifecycleConfigCommand" ; import { CreatePipelineCommandInput , CreatePipelineCommandOutput } from "../commands/CreatePipelineCommand" ; import { CreatePresignedDomainUrlCommandInput , CreatePresignedDomainUrlCommandOutput , } from "../commands/CreatePresignedDomainUrlCommand" ; import { CreatePresignedNotebookInstanceUrlCommandInput , CreatePresignedNotebookInstanceUrlCommandOutput , } from "../commands/CreatePresignedNotebookInstanceUrlCommand" ; import { CreateProcessingJobCommandInput , CreateProcessingJobCommandOutput , } from "../commands/CreateProcessingJobCommand" ; import { CreateProjectCommandInput , CreateProjectCommandOutput } from "../commands/CreateProjectCommand" ; import { CreateStudioLifecycleConfigCommandInput , CreateStudioLifecycleConfigCommandOutput , } from "../commands/CreateStudioLifecycleConfigCommand" ; import { CreateTrainingJobCommandInput , CreateTrainingJobCommandOutput } from "../commands/CreateTrainingJobCommand" ; import { CreateTransformJobCommandInput , CreateTransformJobCommandOutput } from "../commands/CreateTransformJobCommand" ; import { CreateTrialCommandInput , CreateTrialCommandOutput } from "../commands/CreateTrialCommand" ; import { CreateTrialComponentCommandInput , CreateTrialComponentCommandOutput , } from "../commands/CreateTrialComponentCommand" ; import { CreateUserProfileCommandInput , CreateUserProfileCommandOutput } from "../commands/CreateUserProfileCommand" ; import { CreateWorkforceCommandInput , CreateWorkforceCommandOutput } from "../commands/CreateWorkforceCommand" ; import { CreateWorkteamCommandInput , CreateWorkteamCommandOutput } from "../commands/CreateWorkteamCommand" ; import { DeleteActionCommandInput , DeleteActionCommandOutput } from "../commands/DeleteActionCommand" ; import { DeleteAlgorithmCommandInput , DeleteAlgorithmCommandOutput } from "../commands/DeleteAlgorithmCommand" ; import { DeleteAppCommandInput , DeleteAppCommandOutput } from "../commands/DeleteAppCommand" ; import { DeleteAppImageConfigCommandInput , DeleteAppImageConfigCommandOutput , } from "../commands/DeleteAppImageConfigCommand" ; import { DeleteArtifactCommandInput , DeleteArtifactCommandOutput } from "../commands/DeleteArtifactCommand" ; import { DeleteAssociationCommandInput , DeleteAssociationCommandOutput } from "../commands/DeleteAssociationCommand" ; import { DeleteCodeRepositoryCommandInput , DeleteCodeRepositoryCommandOutput , } from "../commands/DeleteCodeRepositoryCommand" ; import { DeleteContextCommandInput , DeleteContextCommandOutput } from "../commands/DeleteContextCommand" ; import { DeleteDataQualityJobDefinitionCommandInput , DeleteDataQualityJobDefinitionCommandOutput , } from "../commands/DeleteDataQualityJobDefinitionCommand" ; import { DeleteDeviceFleetCommandInput , DeleteDeviceFleetCommandOutput } from "../commands/DeleteDeviceFleetCommand" ; import { DeleteDomainCommandInput , DeleteDomainCommandOutput } from "../commands/DeleteDomainCommand" ; import { DeleteEndpointCommandInput , DeleteEndpointCommandOutput } from "../commands/DeleteEndpointCommand" ; import { DeleteEndpointConfigCommandInput , DeleteEndpointConfigCommandOutput , } from "../commands/DeleteEndpointConfigCommand" ; import { DeleteExperimentCommandInput , DeleteExperimentCommandOutput } from "../commands/DeleteExperimentCommand" ; import { DeleteFeatureGroupCommandInput , DeleteFeatureGroupCommandOutput } from "../commands/DeleteFeatureGroupCommand" ; import { DeleteFlowDefinitionCommandInput , DeleteFlowDefinitionCommandOutput , } from "../commands/DeleteFlowDefinitionCommand" ; import { DeleteHumanTaskUiCommandInput , DeleteHumanTaskUiCommandOutput } from "../commands/DeleteHumanTaskUiCommand" ; import { DeleteImageCommandInput , DeleteImageCommandOutput } from "../commands/DeleteImageCommand" ; import { DeleteImageVersionCommandInput , DeleteImageVersionCommandOutput } from "../commands/DeleteImageVersionCommand" ; import { DeleteModelBiasJobDefinitionCommandInput , DeleteModelBiasJobDefinitionCommandOutput , } from "../commands/DeleteModelBiasJobDefinitionCommand" ; import { DeleteModelCommandInput , DeleteModelCommandOutput } from "../commands/DeleteModelCommand" ; import { DeleteModelExplainabilityJobDefinitionCommandInput , DeleteModelExplainabilityJobDefinitionCommandOutput , } from "../commands/DeleteModelExplainabilityJobDefinitionCommand" ; import { DeleteModelPackageCommandInput , DeleteModelPackageCommandOutput } from "../commands/DeleteModelPackageCommand" ; import { DeleteModelPackageGroupCommandInput , DeleteModelPackageGroupCommandOutput , } from "../commands/DeleteModelPackageGroupCommand" ; import { DeleteModelPackageGroupPolicyCommandInput , DeleteModelPackageGroupPolicyCommandOutput , } from "../commands/DeleteModelPackageGroupPolicyCommand" ; import { DeleteModelQualityJobDefinitionCommandInput , DeleteModelQualityJobDefinitionCommandOutput , } from "../commands/DeleteModelQualityJobDefinitionCommand" ; import { DeleteMonitoringScheduleCommandInput , DeleteMonitoringScheduleCommandOutput , } from "../commands/DeleteMonitoringScheduleCommand" ; import { DeleteNotebookInstanceCommandInput , DeleteNotebookInstanceCommandOutput , } from "../commands/DeleteNotebookInstanceCommand" ; import { DeleteNotebookInstanceLifecycleConfigCommandInput , DeleteNotebookInstanceLifecycleConfigCommandOutput , } from "../commands/DeleteNotebookInstanceLifecycleConfigCommand" ; import { DeletePipelineCommandInput , DeletePipelineCommandOutput } from "../commands/DeletePipelineCommand" ; import { DeleteProjectCommandInput , DeleteProjectCommandOutput } from "../commands/DeleteProjectCommand" ; import { DeleteStudioLifecycleConfigCommandInput , DeleteStudioLifecycleConfigCommandOutput , } from "../commands/DeleteStudioLifecycleConfigCommand" ; import { DeleteTagsCommandInput , DeleteTagsCommandOutput } from "../commands/DeleteTagsCommand" ; import { DeleteTrialCommandInput , DeleteTrialCommandOutput } from "../commands/DeleteTrialCommand" ; import { DeleteTrialComponentCommandInput , DeleteTrialComponentCommandOutput , } from "../commands/DeleteTrialComponentCommand" ; import { DeleteUserProfileCommandInput , DeleteUserProfileCommandOutput } from "../commands/DeleteUserProfileCommand" ; import { DeleteWorkforceCommandInput , DeleteWorkforceCommandOutput } from "../commands/DeleteWorkforceCommand" ; import { DeleteWorkteamCommandInput , DeleteWorkteamCommandOutput } from "../commands/DeleteWorkteamCommand" ; import { DeregisterDevicesCommandInput , DeregisterDevicesCommandOutput } from "../commands/DeregisterDevicesCommand" ; import { DescribeActionCommandInput , DescribeActionCommandOutput } from "../commands/DescribeActionCommand" ; import { DescribeAlgorithmCommandInput , DescribeAlgorithmCommandOutput } from "../commands/DescribeAlgorithmCommand" ; import { DescribeAppCommandInput , DescribeAppCommandOutput } from "../commands/DescribeAppCommand" ; import { DescribeAppImageConfigCommandInput , DescribeAppImageConfigCommandOutput , } from "../commands/DescribeAppImageConfigCommand" ; import { DescribeArtifactCommandInput , DescribeArtifactCommandOutput } from "../commands/DescribeArtifactCommand" ; import { DescribeAutoMLJobCommandInput , DescribeAutoMLJobCommandOutput } from "../commands/DescribeAutoMLJobCommand" ; import { DescribeCodeRepositoryCommandInput , DescribeCodeRepositoryCommandOutput , } from "../commands/DescribeCodeRepositoryCommand" ; import { DescribeCompilationJobCommandInput , DescribeCompilationJobCommandOutput , } from "../commands/DescribeCompilationJobCommand" ; import { DescribeContextCommandInput , DescribeContextCommandOutput } from "../commands/DescribeContextCommand" ; import { DescribeDataQualityJobDefinitionCommandInput , DescribeDataQualityJobDefinitionCommandOutput , } from "../commands/DescribeDataQualityJobDefinitionCommand" ; import { DescribeDeviceCommandInput , DescribeDeviceCommandOutput } from "../commands/DescribeDeviceCommand" ; import { DescribeDeviceFleetCommandInput , DescribeDeviceFleetCommandOutput , } from "../commands/DescribeDeviceFleetCommand" ; import { DescribeDomainCommandInput , DescribeDomainCommandOutput } from "../commands/DescribeDomainCommand" ; import { DescribeEdgePackagingJobCommandInput , DescribeEdgePackagingJobCommandOutput , } from "../commands/DescribeEdgePackagingJobCommand" ; import { DescribeEndpointCommandInput , DescribeEndpointCommandOutput } from "../commands/DescribeEndpointCommand" ; import { DescribeEndpointConfigCommandInput , DescribeEndpointConfigCommandOutput , } from "../commands/DescribeEndpointConfigCommand" ; import { DescribeExperimentCommandInput , DescribeExperimentCommandOutput } from "../commands/DescribeExperimentCommand" ; import { DescribeFeatureGroupCommandInput , DescribeFeatureGroupCommandOutput , } from "../commands/DescribeFeatureGroupCommand" ; import { DescribeFlowDefinitionCommandInput , DescribeFlowDefinitionCommandOutput , } from "../commands/DescribeFlowDefinitionCommand" ; import { DescribeHumanTaskUiCommandInput , DescribeHumanTaskUiCommandOutput , } from "../commands/DescribeHumanTaskUiCommand" ; import { DescribeHyperParameterTuningJobCommandInput , DescribeHyperParameterTuningJobCommandOutput , } from "../commands/DescribeHyperParameterTuningJobCommand" ; import { DescribeImageCommandInput , DescribeImageCommandOutput } from "../commands/DescribeImageCommand" ; import { DescribeImageVersionCommandInput , DescribeImageVersionCommandOutput , } from "../commands/DescribeImageVersionCommand" ; import { DescribeInferenceRecommendationsJobCommandInput , DescribeInferenceRecommendationsJobCommandOutput , } from "../commands/DescribeInferenceRecommendationsJobCommand" ; import { DescribeLabelingJobCommandInput , DescribeLabelingJobCommandOutput , } from "../commands/DescribeLabelingJobCommand" ; import { DescribeLineageGroupCommandInput , DescribeLineageGroupCommandOutput , } from "../commands/DescribeLineageGroupCommand" ; import { DescribeModelBiasJobDefinitionCommandInput , DescribeModelBiasJobDefinitionCommandOutput , } from "../commands/DescribeModelBiasJobDefinitionCommand" ; import { DescribeModelCommandInput , DescribeModelCommandOutput } from "../commands/DescribeModelCommand" ; import { DescribeModelExplainabilityJobDefinitionCommandInput , DescribeModelExplainabilityJobDefinitionCommandOutput , } from "../commands/DescribeModelExplainabilityJobDefinitionCommand" ; import { DescribeModelPackageCommandInput , DescribeModelPackageCommandOutput , } from "../commands/DescribeModelPackageCommand" ; import { DescribeModelPackageGroupCommandInput , DescribeModelPackageGroupCommandOutput , } from "../commands/DescribeModelPackageGroupCommand" ; import { DescribeModelQualityJobDefinitionCommandInput , DescribeModelQualityJobDefinitionCommandOutput , } from "../commands/DescribeModelQualityJobDefinitionCommand" ; import { DescribeMonitoringScheduleCommandInput , DescribeMonitoringScheduleCommandOutput , } from "../commands/DescribeMonitoringScheduleCommand" ; import { DescribeNotebookInstanceCommandInput , DescribeNotebookInstanceCommandOutput , } from "../commands/DescribeNotebookInstanceCommand" ; import { DescribeNotebookInstanceLifecycleConfigCommandInput , DescribeNotebookInstanceLifecycleConfigCommandOutput , } from "../commands/DescribeNotebookInstanceLifecycleConfigCommand" ; import { DescribePipelineCommandInput , DescribePipelineCommandOutput } from "../commands/DescribePipelineCommand" ; import { DescribePipelineDefinitionForExecutionCommandInput , DescribePipelineDefinitionForExecutionCommandOutput , } from "../commands/DescribePipelineDefinitionForExecutionCommand" ; import { DescribePipelineExecutionCommandInput , DescribePipelineExecutionCommandOutput , } from "../commands/DescribePipelineExecutionCommand" ; import { DescribeProcessingJobCommandInput , DescribeProcessingJobCommandOutput , } from "../commands/DescribeProcessingJobCommand" ; import { DescribeProjectCommandInput , DescribeProjectCommandOutput } from "../commands/DescribeProjectCommand" ; import { DescribeStudioLifecycleConfigCommandInput , DescribeStudioLifecycleConfigCommandOutput , } from "../commands/DescribeStudioLifecycleConfigCommand" ; import { DescribeSubscribedWorkteamCommandInput , DescribeSubscribedWorkteamCommandOutput , } from "../commands/DescribeSubscribedWorkteamCommand" ; import { DescribeTrainingJobCommandInput , DescribeTrainingJobCommandOutput , } from "../commands/DescribeTrainingJobCommand" ; import { DescribeTransformJobCommandInput , DescribeTransformJobCommandOutput , } from "../commands/DescribeTransformJobCommand" ; import { DescribeTrialCommandInput , DescribeTrialCommandOutput } from "../commands/DescribeTrialCommand" ; import { DescribeTrialComponentCommandInput , DescribeTrialComponentCommandOutput , } from "../commands/DescribeTrialComponentCommand" ; import { DescribeUserProfileCommandInput , DescribeUserProfileCommandOutput , } from "../commands/DescribeUserProfileCommand" ; import { DescribeWorkforceCommandInput , DescribeWorkforceCommandOutput } from "../commands/DescribeWorkforceCommand" ; import { DescribeWorkteamCommandInput , DescribeWorkteamCommandOutput } from "../commands/DescribeWorkteamCommand" ; import { DisableSagemakerServicecatalogPortfolioCommandInput , DisableSagemakerServicecatalogPortfolioCommandOutput , } from "../commands/DisableSagemakerServicecatalogPortfolioCommand" ; import { DisassociateTrialComponentCommandInput , DisassociateTrialComponentCommandOutput , } from "../commands/DisassociateTrialComponentCommand" ; import { EnableSagemakerServicecatalogPortfolioCommandInput , EnableSagemakerServicecatalogPortfolioCommandOutput , } from "../commands/EnableSagemakerServicecatalogPortfolioCommand" ; import { GetDeviceFleetReportCommandInput , GetDeviceFleetReportCommandOutput , } from "../commands/GetDeviceFleetReportCommand" ; import { GetLineageGroupPolicyCommandInput , GetLineageGroupPolicyCommandOutput , } from "../commands/GetLineageGroupPolicyCommand" ; import { GetModelPackageGroupPolicyCommandInput , GetModelPackageGroupPolicyCommandOutput , } from "../commands/GetModelPackageGroupPolicyCommand" ; import { GetSagemakerServicecatalogPortfolioStatusCommandInput , GetSagemakerServicecatalogPortfolioStatusCommandOutput , } from "../commands/GetSagemakerServicecatalogPortfolioStatusCommand" ; import { GetSearchSuggestionsCommandInput , GetSearchSuggestionsCommandOutput , } from "../commands/GetSearchSuggestionsCommand" ; import { ListActionsCommandInput , ListActionsCommandOutput } from "../commands/ListActionsCommand" ; import { ListAlgorithmsCommandInput , ListAlgorithmsCommandOutput } from "../commands/ListAlgorithmsCommand" ; import { ListAppImageConfigsCommandInput , ListAppImageConfigsCommandOutput , } from "../commands/ListAppImageConfigsCommand" ; import { ListAppsCommandInput , ListAppsCommandOutput } from "../commands/ListAppsCommand" ; import { ListArtifactsCommandInput , ListArtifactsCommandOutput } from "../commands/ListArtifactsCommand" ; import { ListAssociationsCommandInput , ListAssociationsCommandOutput } from "../commands/ListAssociationsCommand" ; import { ListAutoMLJobsCommandInput , ListAutoMLJobsCommandOutput } from "../commands/ListAutoMLJobsCommand" ; import { ListCandidatesForAutoMLJobCommandInput , ListCandidatesForAutoMLJobCommandOutput , } from "../commands/ListCandidatesForAutoMLJobCommand" ; import { ListCodeRepositoriesCommandInput , ListCodeRepositoriesCommandOutput , } from "../commands/ListCodeRepositoriesCommand" ; import { ListCompilationJobsCommandInput , ListCompilationJobsCommandOutput , } from "../commands/ListCompilationJobsCommand" ; import { ListContextsCommandInput , ListContextsCommandOutput } from "../commands/ListContextsCommand" ; import { ListDataQualityJobDefinitionsCommandInput , ListDataQualityJobDefinitionsCommandOutput , } from "../commands/ListDataQualityJobDefinitionsCommand" ; import { ListDeviceFleetsCommandInput , ListDeviceFleetsCommandOutput } from "../commands/ListDeviceFleetsCommand" ; import { ListDevicesCommandInput , ListDevicesCommandOutput } from "../commands/ListDevicesCommand" ; import { ListDomainsCommandInput , ListDomainsCommandOutput } from "../commands/ListDomainsCommand" ; import { ListEdgePackagingJobsCommandInput , ListEdgePackagingJobsCommandOutput , } from "../commands/ListEdgePackagingJobsCommand" ; import { ListEndpointConfigsCommandInput , ListEndpointConfigsCommandOutput , } from "../commands/ListEndpointConfigsCommand" ; import { ListEndpointsCommandInput , ListEndpointsCommandOutput } from "../commands/ListEndpointsCommand" ; import { ListExperimentsCommandInput , ListExperimentsCommandOutput } from "../commands/ListExperimentsCommand" ; import { ListFeatureGroupsCommandInput , ListFeatureGroupsCommandOutput } from "../commands/ListFeatureGroupsCommand" ; import { ListFlowDefinitionsCommandInput , ListFlowDefinitionsCommandOutput , } from "../commands/ListFlowDefinitionsCommand" ; import { ListHumanTaskUisCommandInput , ListHumanTaskUisCommandOutput } from "../commands/ListHumanTaskUisCommand" ; import { ListHyperParameterTuningJobsCommandInput , ListHyperParameterTuningJobsCommandOutput , } from "../commands/ListHyperParameterTuningJobsCommand" ; import { ListImagesCommandInput , ListImagesCommandOutput } from "../commands/ListImagesCommand" ; import { ListImageVersionsCommandInput , ListImageVersionsCommandOutput } from "../commands/ListImageVersionsCommand" ; import { ListInferenceRecommendationsJobsCommandInput , ListInferenceRecommendationsJobsCommandOutput , } from "../commands/ListInferenceRecommendationsJobsCommand" ; import { ListLabelingJobsCommandInput , ListLabelingJobsCommandOutput } from "../commands/ListLabelingJobsCommand" ; import { ListLabelingJobsForWorkteamCommandInput , ListLabelingJobsForWorkteamCommandOutput , } from "../commands/ListLabelingJobsForWorkteamCommand" ; import { ListLineageGroupsCommandInput , ListLineageGroupsCommandOutput } from "../commands/ListLineageGroupsCommand" ; import { ListModelBiasJobDefinitionsCommandInput , ListModelBiasJobDefinitionsCommandOutput , } from "../commands/ListModelBiasJobDefinitionsCommand" ; import { ListModelExplainabilityJobDefinitionsCommandInput , ListModelExplainabilityJobDefinitionsCommandOutput , } from "../commands/ListModelExplainabilityJobDefinitionsCommand" ; import { ListModelMetadataCommandInput , ListModelMetadataCommandOutput } from "../commands/ListModelMetadataCommand" ; import { ListModelPackageGroupsCommandInput , ListModelPackageGroupsCommandOutput , } from "../commands/ListModelPackageGroupsCommand" ; import { ListModelPackagesCommandInput , ListModelPackagesCommandOutput } from "../commands/ListModelPackagesCommand" ; import { ListModelQualityJobDefinitionsCommandInput , ListModelQualityJobDefinitionsCommandOutput , } from "../commands/ListModelQualityJobDefinitionsCommand" ; import { ListModelsCommandInput , ListModelsCommandOutput } from "../commands/ListModelsCommand" ; import { ListMonitoringExecutionsCommandInput , ListMonitoringExecutionsCommandOutput , } from "../commands/ListMonitoringExecutionsCommand" ; import { ListMonitoringSchedulesCommandInput , ListMonitoringSchedulesCommandOutput , } from "../commands/ListMonitoringSchedulesCommand" ; import { ListNotebookInstanceLifecycleConfigsCommandInput , ListNotebookInstanceLifecycleConfigsCommandOutput , } from "../commands/ListNotebookInstanceLifecycleConfigsCommand" ; import { ListNotebookInstancesCommandInput , ListNotebookInstancesCommandOutput , } from "../commands/ListNotebookInstancesCommand" ; import { ListPipelineExecutionsCommandInput , ListPipelineExecutionsCommandOutput , } from "../commands/ListPipelineExecutionsCommand" ; import { ListPipelineExecutionStepsCommandInput , ListPipelineExecutionStepsCommandOutput , } from "../commands/ListPipelineExecutionStepsCommand" ; import { ListPipelineParametersForExecutionCommandInput , ListPipelineParametersForExecutionCommandOutput , } from "../commands/ListPipelineParametersForExecutionCommand" ; import { ListPipelinesCommandInput , ListPipelinesCommandOutput } from "../commands/ListPipelinesCommand" ; import { ListProcessingJobsCommandInput , ListProcessingJobsCommandOutput } from "../commands/ListProcessingJobsCommand" ; import { ListProjectsCommandInput , ListProjectsCommandOutput } from "../commands/ListProjectsCommand" ; import { ListStudioLifecycleConfigsCommandInput , ListStudioLifecycleConfigsCommandOutput , } from "../commands/ListStudioLifecycleConfigsCommand" ; import { ListSubscribedWorkteamsCommandInput , ListSubscribedWorkteamsCommandOutput , } from "../commands/ListSubscribedWorkteamsCommand" ; import { ListTagsCommandInput , ListTagsCommandOutput } from "../commands/ListTagsCommand" ; import { ListTrainingJobsCommandInput , ListTrainingJobsCommandOutput } from "../commands/ListTrainingJobsCommand" ; import { ListTrainingJobsForHyperParameterTuningJobCommandInput , ListTrainingJobsForHyperParameterTuningJobCommandOutput , } from "../commands/ListTrainingJobsForHyperParameterTuningJobCommand" ; import { ListTransformJobsCommandInput , ListTransformJobsCommandOutput } from "../commands/ListTransformJobsCommand" ; import { ListTrialComponentsCommandInput , ListTrialComponentsCommandOutput , } from "../commands/ListTrialComponentsCommand" ; import { ListTrialsCommandInput , ListTrialsCommandOutput } from "../commands/ListTrialsCommand" ; import { ListUserProfilesCommandInput , ListUserProfilesCommandOutput } from "../commands/ListUserProfilesCommand" ; import { ListWorkforcesCommandInput , ListWorkforcesCommandOutput } from "../commands/ListWorkforcesCommand" ; import { ListWorkteamsCommandInput , ListWorkteamsCommandOutput } from "../commands/ListWorkteamsCommand" ; import { PutModelPackageGroupPolicyCommandInput , PutModelPackageGroupPolicyCommandOutput , } from "../commands/PutModelPackageGroupPolicyCommand" ; import { QueryLineageCommandInput , QueryLineageCommandOutput } from "../commands/QueryLineageCommand" ; import { RegisterDevicesCommandInput , RegisterDevicesCommandOutput } from "../commands/RegisterDevicesCommand" ; import { RenderUiTemplateCommandInput , RenderUiTemplateCommandOutput } from "../commands/RenderUiTemplateCommand" ; import { RetryPipelineExecutionCommandInput , RetryPipelineExecutionCommandOutput , } from "../commands/RetryPipelineExecutionCommand" ; import { SearchCommandInput , SearchCommandOutput } from "../commands/SearchCommand" ; import { SendPipelineExecutionStepFailureCommandInput , SendPipelineExecutionStepFailureCommandOutput , } from "../commands/SendPipelineExecutionStepFailureCommand" ; import { SendPipelineExecutionStepSuccessCommandInput , SendPipelineExecutionStepSuccessCommandOutput , } from "../commands/SendPipelineExecutionStepSuccessCommand" ; import { StartMonitoringScheduleCommandInput , StartMonitoringScheduleCommandOutput , } from "../commands/StartMonitoringScheduleCommand" ; import { StartNotebookInstanceCommandInput , StartNotebookInstanceCommandOutput , } from "../commands/StartNotebookInstanceCommand" ; import { StartPipelineExecutionCommandInput , StartPipelineExecutionCommandOutput , } from "../commands/StartPipelineExecutionCommand" ; import { StopAutoMLJobCommandInput , StopAutoMLJobCommandOutput } from "../commands/StopAutoMLJobCommand" ; import { StopCompilationJobCommandInput , StopCompilationJobCommandOutput } from "../commands/StopCompilationJobCommand" ; import { StopEdgePackagingJobCommandInput , StopEdgePackagingJobCommandOutput , } from "../commands/StopEdgePackagingJobCommand" ; import { StopHyperParameterTuningJobCommandInput , StopHyperParameterTuningJobCommandOutput , } from "../commands/StopHyperParameterTuningJobCommand" ; import { StopInferenceRecommendationsJobCommandInput , StopInferenceRecommendationsJobCommandOutput , } from "../commands/StopInferenceRecommendationsJobCommand" ; import { StopLabelingJobCommandInput , StopLabelingJobCommandOutput } from "../commands/StopLabelingJobCommand" ; import { StopMonitoringScheduleCommandInput , StopMonitoringScheduleCommandOutput , } from "../commands/StopMonitoringScheduleCommand" ; import { StopNotebookInstanceCommandInput , StopNotebookInstanceCommandOutput , } from "../commands/StopNotebookInstanceCommand" ; import { StopPipelineExecutionCommandInput , StopPipelineExecutionCommandOutput , } from "../commands/StopPipelineExecutionCommand" ; import { StopProcessingJobCommandInput , StopProcessingJobCommandOutput } from "../commands/StopProcessingJobCommand" ; import { StopTrainingJobCommandInput , StopTrainingJobCommandOutput } from "../commands/StopTrainingJobCommand" ; import { StopTransformJobCommandInput , StopTransformJobCommandOutput } from "../commands/StopTransformJobCommand" ; import { UpdateActionCommandInput , UpdateActionCommandOutput } from "../commands/UpdateActionCommand" ; import { UpdateAppImageConfigCommandInput , UpdateAppImageConfigCommandOutput , } from "../commands/UpdateAppImageConfigCommand" ; import { UpdateArtifactCommandInput , UpdateArtifactCommandOutput } from "../commands/UpdateArtifactCommand" ; import { UpdateCodeRepositoryCommandInput , UpdateCodeRepositoryCommandOutput , } from "../commands/UpdateCodeRepositoryCommand" ; import { UpdateContextCommandInput , UpdateContextCommandOutput } from "../commands/UpdateContextCommand" ; import { UpdateDeviceFleetCommandInput , UpdateDeviceFleetCommandOutput } from "../commands/UpdateDeviceFleetCommand" ; import { UpdateDevicesCommandInput , UpdateDevicesCommandOutput } from "../commands/UpdateDevicesCommand" ; import { UpdateDomainCommandInput , UpdateDomainCommandOutput } from "../commands/UpdateDomainCommand" ; import { UpdateEndpointCommandInput , UpdateEndpointCommandOutput } from "../commands/UpdateEndpointCommand" ; import { UpdateEndpointWeightsAndCapacitiesCommandInput , UpdateEndpointWeightsAndCapacitiesCommandOutput , } from "../commands/UpdateEndpointWeightsAndCapacitiesCommand" ; import { UpdateExperimentCommandInput , UpdateExperimentCommandOutput } from "../commands/UpdateExperimentCommand" ; import { UpdateImageCommandInput , UpdateImageCommandOutput } from "../commands/UpdateImageCommand" ; import { UpdateModelPackageCommandInput , UpdateModelPackageCommandOutput } from "../commands/UpdateModelPackageCommand" ; import { UpdateMonitoringScheduleCommandInput , UpdateMonitoringScheduleCommandOutput , } from "../commands/UpdateMonitoringScheduleCommand" ; import { UpdateNotebookInstanceCommandInput , UpdateNotebookInstanceCommandOutput , } from "../commands/UpdateNotebookInstanceCommand" ; import { UpdateNotebookInstanceLifecycleConfigCommandInput , UpdateNotebookInstanceLifecycleConfigCommandOutput , } from "../commands/UpdateNotebookInstanceLifecycleConfigCommand" ; import { UpdatePipelineCommandInput , UpdatePipelineCommandOutput } from "../commands/UpdatePipelineCommand" ; import { UpdatePipelineExecutionCommandInput , UpdatePipelineExecutionCommandOutput , } from "../commands/UpdatePipelineExecutionCommand" ; import { UpdateProjectCommandInput , UpdateProjectCommandOutput } from "../commands/UpdateProjectCommand" ; import { UpdateTrainingJobCommandInput , UpdateTrainingJobCommandOutput } from "../commands/UpdateTrainingJobCommand" ; import { UpdateTrialCommandInput , UpdateTrialCommandOutput } from "../commands/UpdateTrialCommand" ; import { UpdateTrialComponentCommandInput , UpdateTrialComponentCommandOutput , } from "../commands/UpdateTrialComponentCommand" ; import { UpdateUserProfileCommandInput , UpdateUserProfileCommandOutput } from "../commands/UpdateUserProfileCommand" ; import { UpdateWorkforceCommandInput , UpdateWorkforceCommandOutput } from "../commands/UpdateWorkforceCommand" ; import { UpdateWorkteamCommandInput , UpdateWorkteamCommandOutput } from "../commands/UpdateWorkteamCommand" ; import { ActionSource , ActionSummary , AddAssociationRequest , AddAssociationResponse , AdditionalInferenceSpecificationDefinition , AddTagsInput , AddTagsOutput , AgentVersion , Alarm , AlgorithmSpecification , AlgorithmStatusDetails , AlgorithmStatusItem , AlgorithmSummary , AlgorithmValidationProfile , AlgorithmValidationSpecification , AnnotationConsolidationConfig , AppDetails , AppImageConfigDetails , AppSpecification , ArtifactSource , ArtifactSourceType , ArtifactSummary , AssociateTrialComponentRequest , AssociateTrialComponentResponse , AssociationSummary , AsyncInferenceClientConfig , AsyncInferenceConfig , AsyncInferenceNotificationConfig , AsyncInferenceOutputConfig , AthenaDatasetDefinition , AutoMLCandidate , AutoMLCandidateStep , AutoMLChannel , AutoMLContainerDefinition , AutoMLDataSource , AutoMLJobArtifacts , AutoMLJobCompletionCriteria , AutoMLJobConfig , AutoMLJobObjective , AutoMLJobSummary , AutoMLOutputDataConfig , AutoMLPartialFailureReason , AutoMLS3DataSource , AutoMLSecurityConfig , AutoRollbackConfig , BatchDescribeModelPackageError , BatchDescribeModelPackageInput , BatchDescribeModelPackageOutput , BatchDescribeModelPackageSummary , Bias , BlueGreenUpdatePolicy , CacheHitResult , CallbackStepMetadata , CandidateArtifactLocations , CandidateProperties , CapacitySize , CaptureContentTypeHeader , CaptureOption , CategoricalParameter , CategoricalParameterRange , CategoricalParameterRangeSpecification , Channel , ChannelSpecification , CheckpointConfig , ClarifyCheckStepMetadata , CodeRepositorySummary , CognitoConfig , CognitoMemberDefinition , CollectionConfiguration , CompilationJobSummary , CompressionType , ConditionStepMetadata , ConflictException , ContainerDefinition , ContentClassifier , ContextSource , ContextSummary , ContinuousParameterRange , ContinuousParameterRangeSpecification , CreateActionRequest , CreateActionResponse , CreateAlgorithmInput , CreateAlgorithmOutput , CreateAppImageConfigRequest , CreateAppImageConfigResponse , CreateAppRequest , CreateAppResponse , CreateArtifactRequest , CreateArtifactResponse , CreateAutoMLJobRequest , CreateAutoMLJobResponse , CreateCodeRepositoryInput , CreateCodeRepositoryOutput , CreateCompilationJobRequest , CreateCompilationJobResponse , CreateContextRequest , CreateContextResponse , CreateDataQualityJobDefinitionRequest , CreateDataQualityJobDefinitionResponse , CreateDeviceFleetRequest , CreateDomainRequest , CreateDomainResponse , CreateEdgePackagingJobRequest , CreateEndpointConfigInput , CreateEndpointConfigOutput , CreateEndpointInput , CreateEndpointOutput , CreateExperimentRequest , CreateExperimentResponse , CreateFeatureGroupRequest , CreateFeatureGroupResponse , CreateFlowDefinitionRequest , CreateFlowDefinitionResponse , CreateHumanTaskUiRequest , CreateHumanTaskUiResponse , CreateHyperParameterTuningJobRequest , CreateHyperParameterTuningJobResponse , CreateImageRequest , CreateImageResponse , CreateImageVersionRequest , CreateImageVersionResponse , CustomImage , DataCaptureConfig , DataCatalogConfig , DataQualityAppSpecification , DataQualityBaselineConfig , DataQualityJobInput , DataSource , DeploymentConfig , DomainSettings , EdgeOutputConfig , EndpointInput , EnvironmentParameterRanges , FeatureDefinition , FileSystemConfig , FileSystemDataSource , FinalAutoMLJobObjectiveMetric , FlowDefinitionOutputConfig , GitConfig , HumanLoopActivationConditionsConfig , HumanLoopActivationConfig , HumanLoopConfig , HumanLoopRequestSource , HyperParameterAlgorithmSpecification , HyperParameterSpecification , HyperParameterTrainingJobDefinition , HyperParameterTuningJobConfig , HyperParameterTuningJobObjective , HyperParameterTuningJobWarmStartConfig , ImageConfig , InferenceSpecification , InputConfig , IntegerParameterRange , IntegerParameterRangeSpecification , JupyterServerAppSettings , KernelGatewayAppSettings , KernelGatewayImageConfig , KernelSpec , MetadataProperties , MetricDatum , MetricDefinition , MetricsSource , ModelDeployConfig , ModelInput , ModelPackageContainerDefinition , MonitoringClusterConfig , MonitoringConstraintsResource , MonitoringNetworkConfig , MonitoringOutput , MonitoringOutputConfig , MonitoringResources , MonitoringS3Output , MonitoringStatisticsResource , MonitoringStoppingCondition , MultiModelConfig , NeoVpcConfig , OfflineStoreConfig , OnlineStoreConfig , OnlineStoreSecurityConfig , OutputConfig , OutputDataConfig , OutputParameter , ParameterRange , ParameterRanges , ParentHyperParameterTuningJob , ProductionVariant , ProductionVariantCoreDumpConfig , ProductionVariantInstanceType , ProductionVariantServerlessConfig , PublicWorkforceTaskPrice , RepositoryAuthConfig , ResourceConfig , ResourceInUse , ResourceLimitExceeded , ResourceLimits , ResourceNotFound , ResourceSpec , RetryStrategy , RSessionAppSettings , RStudioServerProAppSettings , RStudioServerProDomainSettings , S3DataSource , S3StorageConfig , SharingSettings , ShuffleConfig , StoppingCondition , Tag , TargetPlatform , TensorBoardAppSettings , TrafficRoutingConfig , TrainingInputMode , TrainingInstanceType , TrainingJobDefinition , TrainingSpecification , TransformDataSource , TransformInput , TransformInstanceType , TransformJobDefinition , TransformOutput , TransformResources , TransformS3DataSource , TuningJobCompletionCriteria , UiTemplate , USD , UserContext , UserSettings , VpcConfig , } from "../models/models_0" ; import { CreateInferenceRecommendationsJobRequest , CreateInferenceRecommendationsJobResponse , CreateLabelingJobRequest , CreateLabelingJobResponse , CreateModelBiasJobDefinitionRequest , CreateModelBiasJobDefinitionResponse , CreateModelExplainabilityJobDefinitionRequest , CreateModelExplainabilityJobDefinitionResponse , CreateModelInput , CreateModelOutput , CreateModelPackageGroupInput , CreateModelPackageGroupOutput , CreateModelPackageInput , CreateModelPackageOutput , CreateModelQualityJobDefinitionRequest , CreateModelQualityJobDefinitionResponse , CreateMonitoringScheduleRequest , CreateMonitoringScheduleResponse , CreateNotebookInstanceInput , CreateNotebookInstanceLifecycleConfigInput , CreateNotebookInstanceLifecycleConfigOutput , CreateNotebookInstanceOutput , CreatePipelineRequest , CreatePipelineResponse , CreatePresignedDomainUrlRequest , CreatePresignedDomainUrlResponse , CreatePresignedNotebookInstanceUrlInput , CreatePresignedNotebookInstanceUrlOutput , CreateProcessingJobRequest , CreateProcessingJobResponse , CreateProjectInput , CreateProjectOutput , CreateStudioLifecycleConfigRequest , CreateStudioLifecycleConfigResponse , CreateTrainingJobRequest , CreateTrainingJobResponse , CreateTransformJobRequest , CreateTransformJobResponse , CreateTrialComponentRequest , CreateTrialComponentResponse , CreateTrialRequest , CreateTrialResponse , CreateUserProfileRequest , CreateUserProfileResponse , CreateWorkforceRequest , CreateWorkforceResponse , CreateWorkteamRequest , CreateWorkteamResponse , DataCaptureConfigSummary , DataProcessing , DatasetDefinition , DebugHookConfig , DebugRuleConfiguration , DebugRuleEvaluationStatus , DeleteActionRequest , DeleteActionResponse , DeleteAlgorithmInput , DeleteAppImageConfigRequest , DeleteAppRequest , DeleteArtifactRequest , DeleteArtifactResponse , DeleteAssociationRequest , DeleteAssociationResponse , DeleteCodeRepositoryInput , DeleteContextRequest , DeleteContextResponse , DeleteDataQualityJobDefinitionRequest , DeleteDeviceFleetRequest , DeleteDomainRequest , DeleteEndpointConfigInput , DeleteEndpointInput , DeleteExperimentRequest , DeleteExperimentResponse , DeleteFeatureGroupRequest , DeleteFlowDefinitionRequest , DeleteFlowDefinitionResponse , DeleteHumanTaskUiRequest , DeleteHumanTaskUiResponse , DeleteImageRequest , DeleteImageResponse , DeleteImageVersionRequest , DeleteImageVersionResponse , DeleteModelBiasJobDefinitionRequest , DeleteModelExplainabilityJobDefinitionRequest , DeleteModelInput , DeleteModelPackageGroupInput , DeleteModelPackageGroupPolicyInput , DeleteModelPackageInput , DeleteModelQualityJobDefinitionRequest , DeleteMonitoringScheduleRequest , DeleteNotebookInstanceInput , DeleteNotebookInstanceLifecycleConfigInput , DeletePipelineRequest , DeletePipelineResponse , DeleteProjectInput , DeleteStudioLifecycleConfigRequest , DeleteTagsInput , DeleteTagsOutput , DeleteTrialComponentRequest , DeleteTrialComponentResponse , DeleteTrialRequest , DeleteTrialResponse , DeleteUserProfileRequest , DeleteWorkforceRequest , DeleteWorkforceResponse , DeleteWorkteamRequest , DeleteWorkteamResponse , DeployedImage , DeregisterDevicesRequest , DescribeActionRequest , DescribeActionResponse , DescribeAlgorithmInput , DescribeAlgorithmOutput , DescribeAppImageConfigRequest , DescribeAppImageConfigResponse , DescribeAppRequest , DescribeAppResponse , DescribeArtifactRequest , DescribeArtifactResponse , DescribeAutoMLJobRequest , DescribeAutoMLJobResponse , DescribeCodeRepositoryInput , DescribeCodeRepositoryOutput , DescribeCompilationJobRequest , DescribeCompilationJobResponse , DescribeContextRequest , DescribeContextResponse , DescribeDataQualityJobDefinitionRequest , DescribeDataQualityJobDefinitionResponse , DescribeDeviceFleetRequest , DescribeDeviceFleetResponse , DescribeDeviceRequest , DescribeDeviceResponse , DescribeDomainRequest , DescribeDomainResponse , DescribeEdgePackagingJobRequest , DescribeEdgePackagingJobResponse , DescribeEndpointConfigInput , DescribeEndpointConfigOutput , DescribeEndpointInput , DescribeEndpointOutput , DescribeExperimentRequest , DescribeExperimentResponse , DescribeFeatureGroupRequest , DescribeFeatureGroupResponse , DescribeFlowDefinitionRequest , DescribeFlowDefinitionResponse , DescribeHumanTaskUiRequest , DescribeHumanTaskUiResponse , DescribeHyperParameterTuningJobRequest , DescribeHyperParameterTuningJobResponse , DescribeImageRequest , DescribeImageResponse , DescribeImageVersionRequest , DescribeImageVersionResponse , DescribeInferenceRecommendationsJobRequest , DescribeInferenceRecommendationsJobResponse , DescribeLabelingJobRequest , DescribeLabelingJobResponse , DescribeLineageGroupRequest , DescribeLineageGroupResponse , DescribeModelInput , DriftCheckBaselines , DriftCheckBias , DriftCheckExplainability , DriftCheckModelDataQuality , DriftCheckModelQuality , EdgeModel , EdgePresetDeploymentOutput , EndpointInputConfiguration , EndpointOutputConfiguration , EnvironmentParameter , ExperimentConfig , ExperimentSource , Explainability , FileSource , FinalHyperParameterTuningJobObjectiveMetric , HumanTaskConfig , HyperParameterTrainingJobSummary , InferenceExecutionConfig , InferenceRecommendation , LabelCounters , LabelingJobAlgorithmsConfig , LabelingJobDataAttributes , LabelingJobDataSource , LabelingJobInputConfig , LabelingJobOutput , LabelingJobOutputConfig , LabelingJobResourceConfig , LabelingJobS3DataSource , LabelingJobSnsDataSource , LabelingJobStoppingConditions , MemberDefinition , ModelArtifacts , ModelBiasAppSpecification , ModelBiasBaselineConfig , ModelBiasJobInput , ModelClientConfig , ModelConfiguration , ModelDataQuality , ModelDeployResult , ModelDigests , ModelExplainabilityAppSpecification , ModelExplainabilityBaselineConfig , ModelExplainabilityJobInput , ModelLatencyThreshold , ModelMetrics , ModelPackageValidationProfile , ModelPackageValidationSpecification , ModelQuality , ModelQualityAppSpecification , ModelQualityBaselineConfig , ModelQualityJobInput , MonitoringAppSpecification , MonitoringBaselineConfig , MonitoringGroundTruthS3Input , MonitoringInput , MonitoringJobDefinition , MonitoringScheduleConfig , NetworkConfig , NotebookInstanceAcceleratorType , NotebookInstanceLifecycleHook , NotificationConfiguration , ObjectiveStatusCounters , OfflineStoreStatus , OidcConfig , OidcMemberDefinition , ParallelismConfiguration , PendingDeploymentSummary , PendingProductionVariantSummary , Phase , PipelineDefinitionS3Location , ProcessingClusterConfig , ProcessingFeatureStoreOutput , ProcessingInput , ProcessingOutput , ProcessingOutputConfig , ProcessingResources , ProcessingS3Input , ProcessingS3Output , ProcessingStoppingCondition , ProductionVariantStatus , ProductionVariantSummary , ProfilerConfig , ProfilerRuleConfiguration , ProvisioningParameter , RecommendationJobInputConfig , RecommendationJobResourceLimit , RecommendationJobStoppingConditions , RecommendationMetrics , RedshiftDatasetDefinition , ResolvedAttributes , RetentionPolicy , ScheduleConfig , ServiceCatalogProvisioningDetails , SourceAlgorithm , SourceAlgorithmSpecification , SourceIpConfig , TensorBoardOutputConfig , TrafficPattern , TrainingJobStatusCounters , TrialComponentArtifact , TrialComponentParameterValue , TrialComponentStatus , UiConfig , UiTemplateInfo , } from "../models/models_1" ; import { DescribeModelBiasJobDefinitionRequest , DescribeModelBiasJobDefinitionResponse , DescribeModelExplainabilityJobDefinitionRequest , DescribeModelExplainabilityJobDefinitionResponse , DescribeModelOutput , DescribeModelPackageGroupInput , DescribeModelPackageGroupOutput , DescribeModelPackageInput , DescribeModelPackageOutput , DescribeModelQualityJobDefinitionRequest , DescribeModelQualityJobDefinitionResponse , DescribeMonitoringScheduleRequest , DescribeMonitoringScheduleResponse , DescribeNotebookInstanceInput , DescribeNotebookInstanceLifecycleConfigInput , DescribeNotebookInstanceLifecycleConfigOutput , DescribeNotebookInstanceOutput , DescribePipelineDefinitionForExecutionRequest , DescribePipelineDefinitionForExecutionResponse , DescribePipelineExecutionRequest , DescribePipelineExecutionResponse , DescribePipelineRequest , DescribePipelineResponse , DescribeProcessingJobRequest , DescribeProcessingJobResponse , DescribeProjectInput , DescribeProjectOutput , DescribeStudioLifecycleConfigRequest , DescribeStudioLifecycleConfigResponse , DescribeSubscribedWorkteamRequest , DescribeSubscribedWorkteamResponse , DescribeTrainingJobRequest , DescribeTrainingJobResponse , DescribeTransformJobRequest , DescribeTransformJobResponse , DescribeTrialComponentRequest , DescribeTrialComponentResponse , DescribeTrialRequest , DescribeTrialResponse , DescribeUserProfileRequest , DescribeUserProfileResponse , DescribeWorkforceRequest , DescribeWorkforceResponse , DescribeWorkteamRequest , DescribeWorkteamResponse , DesiredWeightAndCapacity , Device , DeviceFleetSummary , DeviceStats , DeviceSummary , DisableSagemakerServicecatalogPortfolioInput , DisableSagemakerServicecatalogPortfolioOutput , DisassociateTrialComponentRequest , DisassociateTrialComponentResponse , DomainDetails , DomainSettingsForUpdate , Edge , EdgeModelStat , EdgeModelSummary , EdgePackagingJobSummary , EMRStepMetadata , EnableSagemakerServicecatalogPortfolioInput , EnableSagemakerServicecatalogPortfolioOutput , Endpoint , EndpointConfigSummary , EndpointSummary , Experiment , ExperimentSummary , FeatureGroup , FeatureGroupSummary , Filter , FlowDefinitionSummary , GetDeviceFleetReportRequest , GetDeviceFleetReportResponse , GetLineageGroupPolicyRequest , GetLineageGroupPolicyResponse , GetModelPackageGroupPolicyInput , GetModelPackageGroupPolicyOutput , GetSagemakerServicecatalogPortfolioStatusInput , GetSagemakerServicecatalogPortfolioStatusOutput , GetSearchSuggestionsRequest , GetSearchSuggestionsResponse , GitConfigForUpdate , HumanTaskUiSummary , HyperParameterTuningJobSummary , Image , ImageVersion , InferenceRecommendationsJob , LabelCountersForWorkteam , LabelingJobForWorkteamSummary , LabelingJobSummary , LambdaStepMetadata , LineageGroupSummary , LineageType , ListActionsRequest , ListActionsResponse , ListAlgorithmsInput , ListAlgorithmsOutput , ListAppImageConfigsRequest , ListAppImageConfigsResponse , ListAppsRequest , ListAppsResponse , ListArtifactsRequest , ListArtifactsResponse , ListAssociationsRequest , ListAssociationsResponse , ListAutoMLJobsRequest , ListAutoMLJobsResponse , ListCandidatesForAutoMLJobRequest , ListCandidatesForAutoMLJobResponse , ListCodeRepositoriesInput , ListCodeRepositoriesOutput , ListCompilationJobsRequest , ListCompilationJobsResponse , ListContextsRequest , ListContextsResponse , ListDataQualityJobDefinitionsRequest , ListDataQualityJobDefinitionsResponse , ListDeviceFleetsRequest , ListDeviceFleetsResponse , ListDevicesRequest , ListDevicesResponse , ListDomainsRequest , ListDomainsResponse , ListEdgePackagingJobsRequest , ListEdgePackagingJobsResponse , ListEndpointConfigsInput , ListEndpointConfigsOutput , ListEndpointsInput , ListEndpointsOutput , ListExperimentsRequest , ListExperimentsResponse , ListFeatureGroupsRequest , ListFeatureGroupsResponse , ListFlowDefinitionsRequest , ListFlowDefinitionsResponse , ListHumanTaskUisRequest , ListHumanTaskUisResponse , ListHyperParameterTuningJobsRequest , ListHyperParameterTuningJobsResponse , ListImagesRequest , ListImagesResponse , ListImageVersionsRequest , ListImageVersionsResponse , ListInferenceRecommendationsJobsRequest , ListInferenceRecommendationsJobsResponse , ListLabelingJobsForWorkteamRequest , ListLabelingJobsForWorkteamResponse , ListLabelingJobsRequest , ListLabelingJobsResponse , ListLineageGroupsRequest , ListLineageGroupsResponse , ListModelBiasJobDefinitionsRequest , ListModelBiasJobDefinitionsResponse , ListModelExplainabilityJobDefinitionsRequest , ListModelExplainabilityJobDefinitionsResponse , ListModelMetadataRequest , ListModelMetadataResponse , ListModelPackageGroupsInput , ListModelPackageGroupsOutput , ListModelPackagesInput , ListModelPackagesOutput , ListModelQualityJobDefinitionsRequest , ListModelQualityJobDefinitionsResponse , ListModelsInput , ListModelsOutput , ListMonitoringExecutionsRequest , ListMonitoringExecutionsResponse , ListMonitoringSchedulesRequest , ListMonitoringSchedulesResponse , ListNotebookInstanceLifecycleConfigsInput , ListNotebookInstanceLifecycleConfigsOutput , ListNotebookInstancesInput , ListNotebookInstancesOutput , ListPipelineExecutionsRequest , ListPipelineExecutionsResponse , ListPipelineExecutionStepsRequest , ListPipelineExecutionStepsResponse , ListPipelineParametersForExecutionRequest , ListPipelineParametersForExecutionResponse , ListPipelinesRequest , ListPipelinesResponse , ListProcessingJobsRequest , ListProcessingJobsResponse , ListProjectsInput , ListProjectsOutput , ListStudioLifecycleConfigsRequest , ListStudioLifecycleConfigsResponse , ListSubscribedWorkteamsRequest , ListSubscribedWorkteamsResponse , ListTagsInput , ListTagsOutput , ListTrainingJobsForHyperParameterTuningJobRequest , ListTrainingJobsRequest , ListTrainingJobsResponse , MetricData , ModelMetadataFilter , ModelMetadataSearchExpression , ModelMetadataSummary , ModelPackageGroupSummary , ModelPackageStatusDetails , ModelPackageStatusItem , ModelPackageSummary , ModelStepMetadata , ModelSummary , MonitoringExecutionSummary , MonitoringJobDefinitionSummary , MonitoringSchedule , MonitoringScheduleSummary , NotebookInstanceLifecycleConfigSummary , NotebookInstanceSummary , OidcConfigForResponse , Parameter , PipelineExecutionStep , PipelineExecutionStepMetadata , PipelineExecutionSummary , PipelineExperimentConfig , PipelineSummary , ProcessingJobStepMetadata , ProcessingJobSummary , ProfilerRuleEvaluationStatus , ProjectSummary , PropertyNameQuery , PropertyNameSuggestion , QualityCheckStepMetadata , RegisterModelStepMetadata , RStudioServerProDomainSettingsForUpdate , SecondaryStatusTransition , ServiceCatalogProvisionedProductDetails , StudioLifecycleConfigDetails , SubscribedWorkteam , SuggestionQuery , TrainingJobStepMetadata , TrainingJobSummary , TransformJobStepMetadata , TrialComponentMetricSummary , TrialComponentSource , TrialSource , TuningJobStepMetaData , Workforce , Workteam , } from "../models/models_2" ; import { ListTrainingJobsForHyperParameterTuningJobResponse , ListTransformJobsRequest , ListTransformJobsResponse , ListTrialComponentsRequest , ListTrialComponentsResponse , ListTrialsRequest , ListTrialsResponse , ListUserProfilesRequest , ListUserProfilesResponse , ListWorkforcesRequest , ListWorkforcesResponse , ListWorkteamsRequest , ListWorkteamsResponse , ModelPackage , ModelPackageGroup , NestedFilters , Parent , Pipeline , PipelineExecution , ProcessingJob , ProfilerConfigForUpdate , Project , PutModelPackageGroupPolicyInput , PutModelPackageGroupPolicyOutput , QueryFilters , QueryLineageRequest , QueryLineageResponse , RegisterDevicesRequest , RenderableTask , RenderingError , RenderUiTemplateRequest , RenderUiTemplateResponse , RetryPipelineExecutionRequest , RetryPipelineExecutionResponse , SearchExpression , SearchRecord , SearchRequest , SearchResponse , SendPipelineExecutionStepFailureRequest , SendPipelineExecutionStepFailureResponse , SendPipelineExecutionStepSuccessRequest , SendPipelineExecutionStepSuccessResponse , ServiceCatalogProvisioningUpdateDetails , StartMonitoringScheduleRequest , StartNotebookInstanceInput , StartPipelineExecutionRequest , StartPipelineExecutionResponse , StopAutoMLJobRequest , StopCompilationJobRequest , StopEdgePackagingJobRequest , StopHyperParameterTuningJobRequest , StopInferenceRecommendationsJobRequest , StopLabelingJobRequest , StopMonitoringScheduleRequest , StopNotebookInstanceInput , StopPipelineExecutionRequest , StopPipelineExecutionResponse , StopProcessingJobRequest , StopTrainingJobRequest , StopTransformJobRequest , TrainingJob , TransformJob , TransformJobSummary , Trial , TrialComponent , TrialComponentSimpleSummary , TrialComponentSourceDetail , TrialComponentSummary , TrialSummary , UpdateActionRequest , UpdateActionResponse , UpdateAppImageConfigRequest , UpdateAppImageConfigResponse , UpdateArtifactRequest , UpdateArtifactResponse , UpdateCodeRepositoryInput , UpdateCodeRepositoryOutput , UpdateContextRequest , UpdateContextResponse , UpdateDeviceFleetRequest , UpdateDevicesRequest , UpdateDomainRequest , UpdateDomainResponse , UpdateEndpointInput , UpdateEndpointOutput , UpdateEndpointWeightsAndCapacitiesInput , UpdateEndpointWeightsAndCapacitiesOutput , UpdateExperimentRequest , UpdateExperimentResponse , UpdateImageRequest , UpdateImageResponse , UpdateModelPackageInput , UpdateModelPackageOutput , UpdateMonitoringScheduleRequest , UpdateMonitoringScheduleResponse , UpdateNotebookInstanceInput , UpdateNotebookInstanceLifecycleConfigInput , UpdateNotebookInstanceLifecycleConfigOutput , UpdateNotebookInstanceOutput , UpdatePipelineExecutionRequest , UpdatePipelineExecutionResponse , UpdatePipelineRequest , UpdatePipelineResponse , UpdateProjectInput , UpdateProjectOutput , UpdateTrainingJobRequest , UpdateTrainingJobResponse , UpdateTrialComponentRequest , UpdateTrialComponentResponse , UpdateTrialRequest , UpdateTrialResponse , UpdateUserProfileRequest , UpdateUserProfileResponse , UpdateWorkforceRequest , UpdateWorkforceResponse , UpdateWorkteamRequest , UpdateWorkteamResponse , UserProfileDetails , VariantProperty , Vertex , } from "../models/models_3" ; export const serializeAws_json1_1AddAssociationCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.AddAssociation" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1AddAssociationRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1AddTagsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.AddTags" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1AddTagsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1AssociateTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.AssociateTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1AssociateTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1BatchDescribeModelPackageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.BatchDescribeModelPackage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1BatchDescribeModelPackageInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateActionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateAction" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateActionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateAlgorithmCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateAlgorithm" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateAlgorithmInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateAppCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateApp" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateAppRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateAppImageConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateAppImageConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateAppImageConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateArtifactCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateArtifact" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateArtifactRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateAutoMLJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateAutoMLJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateAutoMLJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateCodeRepositoryCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateCodeRepository" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateCodeRepositoryInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateCompilationJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateCompilationJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateCompilationJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateContextCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateContext" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateContextRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateDataQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateDataQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateDataQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateDeviceFleetCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateDeviceFleet" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateDeviceFleetRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateDomainCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateDomain" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateDomainRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateEdgePackagingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateEdgePackagingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateEdgePackagingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateEndpointCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateEndpoint" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateEndpointInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateEndpointConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateEndpointConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateEndpointConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateExperimentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateExperiment" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateExperimentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateFeatureGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateFeatureGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateFeatureGroupRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateFlowDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateFlowDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateFlowDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateHumanTaskUiCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateHumanTaskUi" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateHumanTaskUiRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateHyperParameterTuningJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateHyperParameterTuningJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateHyperParameterTuningJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateImageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateImage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateImageRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateImageVersionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateImageVersion" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateImageVersionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateInferenceRecommendationsJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateInferenceRecommendationsJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateInferenceRecommendationsJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateLabelingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateLabelingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateLabelingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModel" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelBiasJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModelBiasJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelBiasJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelExplainabilityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModelExplainabilityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelExplainabilityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelPackageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModelPackage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelPackageInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelPackageGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModelPackageGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelPackageGroupInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateModelQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateModelQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateModelQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateNotebookInstanceLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateNotebookInstanceLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateNotebookInstanceLifecycleConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreatePipelineCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreatePipeline" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreatePipelineRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreatePresignedDomainUrlCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreatePresignedDomainUrl" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreatePresignedDomainUrlRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreatePresignedNotebookInstanceUrlCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreatePresignedNotebookInstanceUrl" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreatePresignedNotebookInstanceUrlInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateProcessingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateProcessingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateProcessingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateProjectCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateProject" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateProjectInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateStudioLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateStudioLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateStudioLifecycleConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateTrainingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateTrainingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateTrainingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateTransformJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateTransformJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateTransformJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateTrialCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateTrial" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateTrialRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateUserProfileCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateUserProfile" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateUserProfileRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateWorkforceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateWorkforce" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateWorkforceRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1CreateWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.CreateWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1CreateWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteActionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteAction" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteActionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteAlgorithmCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteAlgorithm" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteAlgorithmInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteAppCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteApp" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteAppRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteAppImageConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteAppImageConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteAppImageConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteArtifactCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteArtifact" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteArtifactRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteAssociationCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteAssociation" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteAssociationRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteCodeRepositoryCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteCodeRepository" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteCodeRepositoryInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteContextCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteContext" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteContextRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteDataQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteDataQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteDataQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteDeviceFleetCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteDeviceFleet" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteDeviceFleetRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteDomainCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteDomain" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteDomainRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteEndpointCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteEndpoint" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteEndpointInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteEndpointConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteEndpointConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteEndpointConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteExperimentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteExperiment" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteExperimentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteFeatureGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteFeatureGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteFeatureGroupRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteFlowDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteFlowDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteFlowDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteHumanTaskUiCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteHumanTaskUi" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteHumanTaskUiRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteImageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteImage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteImageRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteImageVersionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteImageVersion" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteImageVersionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModel" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelBiasJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelBiasJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelBiasJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelExplainabilityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelExplainabilityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelExplainabilityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelPackageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelPackage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelPackageInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelPackageGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelPackageGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelPackageGroupInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelPackageGroupPolicyCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelPackageGroupPolicy" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelPackageGroupPolicyInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteModelQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteModelQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteModelQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteNotebookInstanceLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteNotebookInstanceLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteNotebookInstanceLifecycleConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeletePipelineCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeletePipeline" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeletePipelineRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteProjectCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteProject" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteProjectInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteStudioLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteStudioLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteStudioLifecycleConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteTagsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteTags" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteTagsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteTrialCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteTrial" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteTrialRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteUserProfileCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteUserProfile" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteUserProfileRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteWorkforceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteWorkforce" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteWorkforceRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeleteWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeleteWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeleteWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DeregisterDevicesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DeregisterDevices" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DeregisterDevicesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeActionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeAction" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeActionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeAlgorithmCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeAlgorithm" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeAlgorithmInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeAppCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeApp" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeAppRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeAppImageConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeAppImageConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeAppImageConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeArtifactCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeArtifact" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeArtifactRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeAutoMLJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeAutoMLJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeAutoMLJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeCodeRepositoryCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeCodeRepository" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeCodeRepositoryInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeCompilationJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeCompilationJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeCompilationJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeContextCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeContext" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeContextRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeDataQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeDataQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeDataQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeDeviceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeDevice" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeDeviceRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeDeviceFleetCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeDeviceFleet" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeDeviceFleetRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeDomainCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeDomain" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeDomainRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeEdgePackagingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeEdgePackagingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeEdgePackagingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeEndpointCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeEndpoint" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeEndpointInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeEndpointConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeEndpointConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeEndpointConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeExperimentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeExperiment" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeExperimentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeFeatureGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeFeatureGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeFeatureGroupRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeFlowDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeFlowDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeFlowDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeHumanTaskUiCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeHumanTaskUi" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeHumanTaskUiRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeHyperParameterTuningJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeHyperParameterTuningJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeHyperParameterTuningJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeImageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeImage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeImageRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeImageVersionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeImageVersion" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeImageVersionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeInferenceRecommendationsJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeInferenceRecommendationsJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeInferenceRecommendationsJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeLabelingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeLabelingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeLabelingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeLineageGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeLineageGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeLineageGroupRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModel" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelBiasJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModelBiasJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelBiasJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelExplainabilityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModelExplainabilityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelExplainabilityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelPackageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModelPackage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelPackageInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelPackageGroupCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModelPackageGroup" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelPackageGroupInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeModelQualityJobDefinitionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeModelQualityJobDefinition" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeModelQualityJobDefinitionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeNotebookInstanceLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeNotebookInstanceLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeNotebookInstanceLifecycleConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribePipelineCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribePipeline" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribePipelineRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribePipelineDefinitionForExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribePipelineDefinitionForExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribePipelineDefinitionForExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribePipelineExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribePipelineExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribePipelineExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeProcessingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeProcessingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeProcessingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeProjectCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeProject" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeProjectInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeStudioLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeStudioLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeStudioLifecycleConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeSubscribedWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeSubscribedWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeSubscribedWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeTrainingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeTrainingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeTrainingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeTransformJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeTransformJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeTransformJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeTrialCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeTrial" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeTrialRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeUserProfileCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeUserProfile" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeUserProfileRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeWorkforceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeWorkforce" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeWorkforceRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DescribeWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DescribeWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DescribeWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DisableSagemakerServicecatalogPortfolioCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DisableSagemakerServicecatalogPortfolio" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DisableSagemakerServicecatalogPortfolioInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1DisassociateTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.DisassociateTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1DisassociateTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1EnableSagemakerServicecatalogPortfolioCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.EnableSagemakerServicecatalogPortfolio" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1EnableSagemakerServicecatalogPortfolioInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1GetDeviceFleetReportCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.GetDeviceFleetReport" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1GetDeviceFleetReportRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1GetLineageGroupPolicyCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.GetLineageGroupPolicy" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1GetLineageGroupPolicyRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1GetModelPackageGroupPolicyCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.GetModelPackageGroupPolicy" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1GetModelPackageGroupPolicyInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.GetSagemakerServicecatalogPortfolioStatus" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1GetSearchSuggestionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.GetSearchSuggestions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1GetSearchSuggestionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListActionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListActions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListActionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListAlgorithmsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListAlgorithms" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListAlgorithmsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListAppImageConfigsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListAppImageConfigs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListAppImageConfigsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListAppsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListApps" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListAppsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListArtifactsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListArtifacts" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListArtifactsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListAssociationsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListAssociations" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListAssociationsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListAutoMLJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListAutoMLJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListAutoMLJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListCandidatesForAutoMLJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListCandidatesForAutoMLJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListCandidatesForAutoMLJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListCodeRepositoriesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListCodeRepositories" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListCodeRepositoriesInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListCompilationJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListCompilationJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListCompilationJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListContextsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListContexts" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListContextsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListDataQualityJobDefinitionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListDataQualityJobDefinitions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListDataQualityJobDefinitionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListDeviceFleetsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListDeviceFleets" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListDeviceFleetsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListDevicesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListDevices" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListDevicesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListDomainsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListDomains" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListDomainsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListEdgePackagingJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListEdgePackagingJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListEdgePackagingJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListEndpointConfigsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListEndpointConfigs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListEndpointConfigsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListEndpointsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListEndpoints" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListEndpointsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListExperimentsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListExperiments" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListExperimentsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListFeatureGroupsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListFeatureGroups" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListFeatureGroupsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListFlowDefinitionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListFlowDefinitions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListFlowDefinitionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListHumanTaskUisCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListHumanTaskUis" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListHumanTaskUisRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListHyperParameterTuningJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListHyperParameterTuningJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListHyperParameterTuningJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListImagesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListImages" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListImagesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListImageVersionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListImageVersions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListImageVersionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListInferenceRecommendationsJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListInferenceRecommendationsJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListInferenceRecommendationsJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListLabelingJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListLabelingJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListLabelingJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListLabelingJobsForWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListLabelingJobsForWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListLabelingJobsForWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListLineageGroupsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListLineageGroups" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListLineageGroupsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelBiasJobDefinitionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelBiasJobDefinitions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelBiasJobDefinitionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelExplainabilityJobDefinitionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelExplainabilityJobDefinitions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelExplainabilityJobDefinitionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelMetadataCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelMetadata" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelMetadataRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelPackageGroupsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelPackageGroups" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelPackageGroupsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelPackagesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelPackages" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelPackagesInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelQualityJobDefinitionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModelQualityJobDefinitions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelQualityJobDefinitionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListModelsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListModels" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListModelsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListMonitoringExecutionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListMonitoringExecutions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListMonitoringExecutionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListMonitoringSchedulesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListMonitoringSchedules" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListMonitoringSchedulesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListNotebookInstanceLifecycleConfigsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListNotebookInstanceLifecycleConfigs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListNotebookInstanceLifecycleConfigsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListNotebookInstancesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListNotebookInstances" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListNotebookInstancesInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListPipelineExecutionsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListPipelineExecutions" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListPipelineExecutionsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListPipelineExecutionStepsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListPipelineExecutionSteps" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListPipelineExecutionStepsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListPipelineParametersForExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListPipelineParametersForExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListPipelineParametersForExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListPipelinesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListPipelines" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListPipelinesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListProcessingJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListProcessingJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListProcessingJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListProjectsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListProjects" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListProjectsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListStudioLifecycleConfigsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListStudioLifecycleConfigs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListStudioLifecycleConfigsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListSubscribedWorkteamsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListSubscribedWorkteams" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListSubscribedWorkteamsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTagsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTags" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTagsInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTrainingJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTrainingJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTrainingJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTrainingJobsForHyperParameterTuningJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTransformJobsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTransformJobs" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTransformJobsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTrialComponentsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTrialComponents" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTrialComponentsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListTrialsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListTrials" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListTrialsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListUserProfilesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListUserProfiles" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListUserProfilesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListWorkforcesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListWorkforces" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListWorkforcesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1ListWorkteamsCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.ListWorkteams" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1ListWorkteamsRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1PutModelPackageGroupPolicyCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.PutModelPackageGroupPolicy" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1PutModelPackageGroupPolicyInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1QueryLineageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.QueryLineage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1QueryLineageRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1RegisterDevicesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.RegisterDevices" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1RegisterDevicesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1RenderUiTemplateCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.RenderUiTemplate" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1RenderUiTemplateRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1RetryPipelineExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.RetryPipelineExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1RetryPipelineExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1SearchCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.Search" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1SearchRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1SendPipelineExecutionStepFailureCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.SendPipelineExecutionStepFailure" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1SendPipelineExecutionStepFailureRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1SendPipelineExecutionStepSuccessCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.SendPipelineExecutionStepSuccess" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1SendPipelineExecutionStepSuccessRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StartMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StartMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StartMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StartNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StartNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StartNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StartPipelineExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StartPipelineExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StartPipelineExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopAutoMLJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopAutoMLJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopAutoMLJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopCompilationJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopCompilationJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopCompilationJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopEdgePackagingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopEdgePackagingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopEdgePackagingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopHyperParameterTuningJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopHyperParameterTuningJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopHyperParameterTuningJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopInferenceRecommendationsJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopInferenceRecommendationsJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopInferenceRecommendationsJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopLabelingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopLabelingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopLabelingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopPipelineExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopPipelineExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopPipelineExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopProcessingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopProcessingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopProcessingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopTrainingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopTrainingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopTrainingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1StopTransformJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.StopTransformJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1StopTransformJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateActionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateAction" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateActionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateAppImageConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateAppImageConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateAppImageConfigRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateArtifactCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateArtifact" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateArtifactRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateCodeRepositoryCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateCodeRepository" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateCodeRepositoryInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateContextCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateContext" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateContextRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateDeviceFleetCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateDeviceFleet" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateDeviceFleetRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateDevicesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateDevices" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateDevicesRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateDomainCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateDomain" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateDomainRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateEndpointCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateEndpoint" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateEndpointInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateEndpointWeightsAndCapacities" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateEndpointWeightsAndCapacitiesInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateExperimentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateExperiment" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateExperimentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateImageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateImage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateImageRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateModelPackageCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateModelPackage" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateModelPackageInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateMonitoringScheduleCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateMonitoringSchedule" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateMonitoringScheduleRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateNotebookInstanceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateNotebookInstance" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateNotebookInstanceInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateNotebookInstanceLifecycleConfigCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateNotebookInstanceLifecycleConfig" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateNotebookInstanceLifecycleConfigInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdatePipelineCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdatePipeline" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdatePipelineRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdatePipelineExecutionCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdatePipelineExecution" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdatePipelineExecutionRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateProjectCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateProject" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateProjectInput ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateTrainingJobCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateTrainingJob" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateTrainingJobRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateTrialCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateTrial" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateTrialRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateTrialComponentCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateTrialComponent" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateTrialComponentRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateUserProfileCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateUserProfile" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateUserProfileRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateWorkforceCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateWorkforce" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateWorkforceRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const serializeAws_json1_1UpdateWorkteamCommand = async ( input , context ) : Promise < __HttpRequest > => { const headers = { "content-type" : "application/x-amz-json-1.1" , "x-amz-target" : "SageMaker.UpdateWorkteam" , } ; let body ; body = JSON . stringify ( serializeAws_json1_1UpdateWorkteamRequest ( input , context ) ) ; return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ; } ; export const deserializeAws_json1_1AddAssociationCommand = async ( output , context ) : Promise < AddAssociationCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1AddAssociationCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1AddAssociationResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1AddAssociationCommandError = async ( output , context ) : Promise < AddAssociationCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1AddTagsCommand = async ( output , context ) : Promise < AddTagsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1AddTagsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1AddTagsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1AddTagsCommandError = async ( output , context ) : Promise < AddTagsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1AssociateTrialComponentCommand = async ( output , context ) : Promise < AssociateTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1AssociateTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1AssociateTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1AssociateTrialComponentCommandError = async ( output , context ) : Promise < AssociateTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1BatchDescribeModelPackageCommand = async ( output , context ) : Promise < BatchDescribeModelPackageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1BatchDescribeModelPackageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1BatchDescribeModelPackageOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1BatchDescribeModelPackageCommandError = async ( output , context ) : Promise < BatchDescribeModelPackageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateActionCommand = async ( output , context ) : Promise < CreateActionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateActionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateActionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateActionCommandError = async ( output , context ) : Promise < CreateActionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateAlgorithmCommand = async ( output , context ) : Promise < CreateAlgorithmCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateAlgorithmCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateAlgorithmOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateAlgorithmCommandError = async ( output , context ) : Promise < CreateAlgorithmCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateAppCommand = async ( output , context ) : Promise < CreateAppCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateAppCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateAppResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateAppCommandError = async ( output , context ) : Promise < CreateAppCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateAppImageConfigCommand = async ( output , context ) : Promise < CreateAppImageConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateAppImageConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateAppImageConfigResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateAppImageConfigCommandError = async ( output , context ) : Promise < CreateAppImageConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateArtifactCommand = async ( output , context ) : Promise < CreateArtifactCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateArtifactCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateArtifactResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateArtifactCommandError = async ( output , context ) : Promise < CreateArtifactCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateAutoMLJobCommand = async ( output , context ) : Promise < CreateAutoMLJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateAutoMLJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateAutoMLJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateAutoMLJobCommandError = async ( output , context ) : Promise < CreateAutoMLJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateCodeRepositoryCommand = async ( output , context ) : Promise < CreateCodeRepositoryCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateCodeRepositoryCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateCodeRepositoryOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateCodeRepositoryCommandError = async ( output , context ) : Promise < CreateCodeRepositoryCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateCompilationJobCommand = async ( output , context ) : Promise < CreateCompilationJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateCompilationJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateCompilationJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateCompilationJobCommandError = async ( output , context ) : Promise < CreateCompilationJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateContextCommand = async ( output , context ) : Promise < CreateContextCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateContextCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateContextResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateContextCommandError = async ( output , context ) : Promise < CreateContextCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateDataQualityJobDefinitionCommand = async ( output , context ) : Promise < CreateDataQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateDataQualityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateDataQualityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateDataQualityJobDefinitionCommandError = async ( output , context ) : Promise < CreateDataQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateDeviceFleetCommand = async ( output , context ) : Promise < CreateDeviceFleetCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateDeviceFleetCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateDeviceFleetCommandError = async ( output , context ) : Promise < CreateDeviceFleetCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateDomainCommand = async ( output , context ) : Promise < CreateDomainCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateDomainCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateDomainResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateDomainCommandError = async ( output , context ) : Promise < CreateDomainCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateEdgePackagingJobCommand = async ( output , context ) : Promise < CreateEdgePackagingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateEdgePackagingJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateEdgePackagingJobCommandError = async ( output , context ) : Promise < CreateEdgePackagingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateEndpointCommand = async ( output , context ) : Promise < CreateEndpointCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateEndpointCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateEndpointOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateEndpointCommandError = async ( output , context ) : Promise < CreateEndpointCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateEndpointConfigCommand = async ( output , context ) : Promise < CreateEndpointConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateEndpointConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateEndpointConfigOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateEndpointConfigCommandError = async ( output , context ) : Promise < CreateEndpointConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateExperimentCommand = async ( output , context ) : Promise < CreateExperimentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateExperimentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateExperimentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateExperimentCommandError = async ( output , context ) : Promise < CreateExperimentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateFeatureGroupCommand = async ( output , context ) : Promise < CreateFeatureGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateFeatureGroupCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateFeatureGroupResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateFeatureGroupCommandError = async ( output , context ) : Promise < CreateFeatureGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateFlowDefinitionCommand = async ( output , context ) : Promise < CreateFlowDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateFlowDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateFlowDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateFlowDefinitionCommandError = async ( output , context ) : Promise < CreateFlowDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateHumanTaskUiCommand = async ( output , context ) : Promise < CreateHumanTaskUiCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateHumanTaskUiCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateHumanTaskUiResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateHumanTaskUiCommandError = async ( output , context ) : Promise < CreateHumanTaskUiCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateHyperParameterTuningJobCommand = async ( output , context ) : Promise < CreateHyperParameterTuningJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateHyperParameterTuningJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateHyperParameterTuningJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateHyperParameterTuningJobCommandError = async ( output , context ) : Promise < CreateHyperParameterTuningJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateImageCommand = async ( output , context ) : Promise < CreateImageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateImageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateImageResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateImageCommandError = async ( output , context ) : Promise < CreateImageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateImageVersionCommand = async ( output , context ) : Promise < CreateImageVersionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateImageVersionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateImageVersionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateImageVersionCommandError = async ( output , context ) : Promise < CreateImageVersionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateInferenceRecommendationsJobCommand = async ( output , context ) : Promise < CreateInferenceRecommendationsJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateInferenceRecommendationsJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateInferenceRecommendationsJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateInferenceRecommendationsJobCommandError = async ( output , context ) : Promise < CreateInferenceRecommendationsJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateLabelingJobCommand = async ( output , context ) : Promise < CreateLabelingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateLabelingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateLabelingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateLabelingJobCommandError = async ( output , context ) : Promise < CreateLabelingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelCommand = async ( output , context ) : Promise < CreateModelCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelCommandError = async ( output , context ) : Promise < CreateModelCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelBiasJobDefinitionCommand = async ( output , context ) : Promise < CreateModelBiasJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelBiasJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelBiasJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelBiasJobDefinitionCommandError = async ( output , context ) : Promise < CreateModelBiasJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelExplainabilityJobDefinitionCommand = async ( output , context ) : Promise < CreateModelExplainabilityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelExplainabilityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelExplainabilityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelExplainabilityJobDefinitionCommandError = async ( output , context ) : Promise < CreateModelExplainabilityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelPackageCommand = async ( output , context ) : Promise < CreateModelPackageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelPackageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelPackageOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelPackageCommandError = async ( output , context ) : Promise < CreateModelPackageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelPackageGroupCommand = async ( output , context ) : Promise < CreateModelPackageGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelPackageGroupCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelPackageGroupOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelPackageGroupCommandError = async ( output , context ) : Promise < CreateModelPackageGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateModelQualityJobDefinitionCommand = async ( output , context ) : Promise < CreateModelQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateModelQualityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateModelQualityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateModelQualityJobDefinitionCommandError = async ( output , context ) : Promise < CreateModelQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateMonitoringScheduleCommand = async ( output , context ) : Promise < CreateMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateMonitoringScheduleCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateMonitoringScheduleResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateMonitoringScheduleCommandError = async ( output , context ) : Promise < CreateMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateNotebookInstanceCommand = async ( output , context ) : Promise < CreateNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateNotebookInstanceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateNotebookInstanceOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateNotebookInstanceCommandError = async ( output , context ) : Promise < CreateNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateNotebookInstanceLifecycleConfigCommand = async ( output , context ) : Promise < CreateNotebookInstanceLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateNotebookInstanceLifecycleConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateNotebookInstanceLifecycleConfigOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateNotebookInstanceLifecycleConfigCommandError = async ( output , context ) : Promise < CreateNotebookInstanceLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreatePipelineCommand = async ( output , context ) : Promise < CreatePipelineCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreatePipelineCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreatePipelineResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreatePipelineCommandError = async ( output , context ) : Promise < CreatePipelineCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreatePresignedDomainUrlCommand = async ( output , context ) : Promise < CreatePresignedDomainUrlCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreatePresignedDomainUrlCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreatePresignedDomainUrlResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreatePresignedDomainUrlCommandError = async ( output , context ) : Promise < CreatePresignedDomainUrlCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreatePresignedNotebookInstanceUrlCommand = async ( output , context ) : Promise < CreatePresignedNotebookInstanceUrlCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreatePresignedNotebookInstanceUrlCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreatePresignedNotebookInstanceUrlOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreatePresignedNotebookInstanceUrlCommandError = async ( output , context ) : Promise < CreatePresignedNotebookInstanceUrlCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateProcessingJobCommand = async ( output , context ) : Promise < CreateProcessingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateProcessingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateProcessingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateProcessingJobCommandError = async ( output , context ) : Promise < CreateProcessingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateProjectCommand = async ( output , context ) : Promise < CreateProjectCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateProjectCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateProjectOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateProjectCommandError = async ( output , context ) : Promise < CreateProjectCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateStudioLifecycleConfigCommand = async ( output , context ) : Promise < CreateStudioLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateStudioLifecycleConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateStudioLifecycleConfigResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateStudioLifecycleConfigCommandError = async ( output , context ) : Promise < CreateStudioLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateTrainingJobCommand = async ( output , context ) : Promise < CreateTrainingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateTrainingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateTrainingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateTrainingJobCommandError = async ( output , context ) : Promise < CreateTrainingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateTransformJobCommand = async ( output , context ) : Promise < CreateTransformJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateTransformJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateTransformJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateTransformJobCommandError = async ( output , context ) : Promise < CreateTransformJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateTrialCommand = async ( output , context ) : Promise < CreateTrialCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateTrialCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateTrialResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateTrialCommandError = async ( output , context ) : Promise < CreateTrialCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateTrialComponentCommand = async ( output , context ) : Promise < CreateTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateTrialComponentCommandError = async ( output , context ) : Promise < CreateTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateUserProfileCommand = async ( output , context ) : Promise < CreateUserProfileCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateUserProfileCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateUserProfileResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateUserProfileCommandError = async ( output , context ) : Promise < CreateUserProfileCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateWorkforceCommand = async ( output , context ) : Promise < CreateWorkforceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateWorkforceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateWorkforceResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateWorkforceCommandError = async ( output , context ) : Promise < CreateWorkforceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1CreateWorkteamCommand = async ( output , context ) : Promise < CreateWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1CreateWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1CreateWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1CreateWorkteamCommandError = async ( output , context ) : Promise < CreateWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteActionCommand = async ( output , context ) : Promise < DeleteActionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteActionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteActionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteActionCommandError = async ( output , context ) : Promise < DeleteActionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteAlgorithmCommand = async ( output , context ) : Promise < DeleteAlgorithmCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteAlgorithmCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteAlgorithmCommandError = async ( output , context ) : Promise < DeleteAlgorithmCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteAppCommand = async ( output , context ) : Promise < DeleteAppCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteAppCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteAppCommandError = async ( output , context ) : Promise < DeleteAppCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteAppImageConfigCommand = async ( output , context ) : Promise < DeleteAppImageConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteAppImageConfigCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteAppImageConfigCommandError = async ( output , context ) : Promise < DeleteAppImageConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteArtifactCommand = async ( output , context ) : Promise < DeleteArtifactCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteArtifactCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteArtifactResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteArtifactCommandError = async ( output , context ) : Promise < DeleteArtifactCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteAssociationCommand = async ( output , context ) : Promise < DeleteAssociationCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteAssociationCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteAssociationResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteAssociationCommandError = async ( output , context ) : Promise < DeleteAssociationCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteCodeRepositoryCommand = async ( output , context ) : Promise < DeleteCodeRepositoryCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteCodeRepositoryCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteCodeRepositoryCommandError = async ( output , context ) : Promise < DeleteCodeRepositoryCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteContextCommand = async ( output , context ) : Promise < DeleteContextCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteContextCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteContextResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteContextCommandError = async ( output , context ) : Promise < DeleteContextCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteDataQualityJobDefinitionCommand = async ( output , context ) : Promise < DeleteDataQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteDataQualityJobDefinitionCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteDataQualityJobDefinitionCommandError = async ( output , context ) : Promise < DeleteDataQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteDeviceFleetCommand = async ( output , context ) : Promise < DeleteDeviceFleetCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteDeviceFleetCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteDeviceFleetCommandError = async ( output , context ) : Promise < DeleteDeviceFleetCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteDomainCommand = async ( output , context ) : Promise < DeleteDomainCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteDomainCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteDomainCommandError = async ( output , context ) : Promise < DeleteDomainCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteEndpointCommand = async ( output , context ) : Promise < DeleteEndpointCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteEndpointCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteEndpointCommandError = async ( output , context ) : Promise < DeleteEndpointCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteEndpointConfigCommand = async ( output , context ) : Promise < DeleteEndpointConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteEndpointConfigCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteEndpointConfigCommandError = async ( output , context ) : Promise < DeleteEndpointConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteExperimentCommand = async ( output , context ) : Promise < DeleteExperimentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteExperimentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteExperimentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteExperimentCommandError = async ( output , context ) : Promise < DeleteExperimentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteFeatureGroupCommand = async ( output , context ) : Promise < DeleteFeatureGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteFeatureGroupCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteFeatureGroupCommandError = async ( output , context ) : Promise < DeleteFeatureGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteFlowDefinitionCommand = async ( output , context ) : Promise < DeleteFlowDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteFlowDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteFlowDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteFlowDefinitionCommandError = async ( output , context ) : Promise < DeleteFlowDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteHumanTaskUiCommand = async ( output , context ) : Promise < DeleteHumanTaskUiCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteHumanTaskUiCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteHumanTaskUiResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteHumanTaskUiCommandError = async ( output , context ) : Promise < DeleteHumanTaskUiCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteImageCommand = async ( output , context ) : Promise < DeleteImageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteImageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteImageResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteImageCommandError = async ( output , context ) : Promise < DeleteImageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteImageVersionCommand = async ( output , context ) : Promise < DeleteImageVersionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteImageVersionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteImageVersionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteImageVersionCommandError = async ( output , context ) : Promise < DeleteImageVersionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelCommand = async ( output , context ) : Promise < DeleteModelCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelCommandError = async ( output , context ) : Promise < DeleteModelCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelBiasJobDefinitionCommand = async ( output , context ) : Promise < DeleteModelBiasJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelBiasJobDefinitionCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelBiasJobDefinitionCommandError = async ( output , context ) : Promise < DeleteModelBiasJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelExplainabilityJobDefinitionCommand = async ( output , context ) : Promise < DeleteModelExplainabilityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelExplainabilityJobDefinitionCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelExplainabilityJobDefinitionCommandError = async ( output , context ) : Promise < DeleteModelExplainabilityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelPackageCommand = async ( output , context ) : Promise < DeleteModelPackageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelPackageCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelPackageCommandError = async ( output , context ) : Promise < DeleteModelPackageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelPackageGroupCommand = async ( output , context ) : Promise < DeleteModelPackageGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelPackageGroupCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelPackageGroupCommandError = async ( output , context ) : Promise < DeleteModelPackageGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelPackageGroupPolicyCommand = async ( output , context ) : Promise < DeleteModelPackageGroupPolicyCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelPackageGroupPolicyCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelPackageGroupPolicyCommandError = async ( output , context ) : Promise < DeleteModelPackageGroupPolicyCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteModelQualityJobDefinitionCommand = async ( output , context ) : Promise < DeleteModelQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteModelQualityJobDefinitionCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteModelQualityJobDefinitionCommandError = async ( output , context ) : Promise < DeleteModelQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteMonitoringScheduleCommand = async ( output , context ) : Promise < DeleteMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteMonitoringScheduleCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteMonitoringScheduleCommandError = async ( output , context ) : Promise < DeleteMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteNotebookInstanceCommand = async ( output , context ) : Promise < DeleteNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteNotebookInstanceCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteNotebookInstanceCommandError = async ( output , context ) : Promise < DeleteNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteNotebookInstanceLifecycleConfigCommand = async ( output , context ) : Promise < DeleteNotebookInstanceLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteNotebookInstanceLifecycleConfigCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteNotebookInstanceLifecycleConfigCommandError = async ( output , context ) : Promise < DeleteNotebookInstanceLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeletePipelineCommand = async ( output , context ) : Promise < DeletePipelineCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeletePipelineCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeletePipelineResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeletePipelineCommandError = async ( output , context ) : Promise < DeletePipelineCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteProjectCommand = async ( output , context ) : Promise < DeleteProjectCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteProjectCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteProjectCommandError = async ( output , context ) : Promise < DeleteProjectCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteStudioLifecycleConfigCommand = async ( output , context ) : Promise < DeleteStudioLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteStudioLifecycleConfigCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteStudioLifecycleConfigCommandError = async ( output , context ) : Promise < DeleteStudioLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteTagsCommand = async ( output , context ) : Promise < DeleteTagsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteTagsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteTagsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteTagsCommandError = async ( output , context ) : Promise < DeleteTagsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteTrialCommand = async ( output , context ) : Promise < DeleteTrialCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteTrialCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteTrialResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteTrialCommandError = async ( output , context ) : Promise < DeleteTrialCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteTrialComponentCommand = async ( output , context ) : Promise < DeleteTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteTrialComponentCommandError = async ( output , context ) : Promise < DeleteTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteUserProfileCommand = async ( output , context ) : Promise < DeleteUserProfileCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteUserProfileCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteUserProfileCommandError = async ( output , context ) : Promise < DeleteUserProfileCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteWorkforceCommand = async ( output , context ) : Promise < DeleteWorkforceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteWorkforceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteWorkforceResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteWorkforceCommandError = async ( output , context ) : Promise < DeleteWorkforceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeleteWorkteamCommand = async ( output , context ) : Promise < DeleteWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeleteWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DeleteWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeleteWorkteamCommandError = async ( output , context ) : Promise < DeleteWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DeregisterDevicesCommand = async ( output , context ) : Promise < DeregisterDevicesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DeregisterDevicesCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DeregisterDevicesCommandError = async ( output , context ) : Promise < DeregisterDevicesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeActionCommand = async ( output , context ) : Promise < DescribeActionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeActionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeActionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeActionCommandError = async ( output , context ) : Promise < DescribeActionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeAlgorithmCommand = async ( output , context ) : Promise < DescribeAlgorithmCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeAlgorithmCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeAlgorithmOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeAlgorithmCommandError = async ( output , context ) : Promise < DescribeAlgorithmCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeAppCommand = async ( output , context ) : Promise < DescribeAppCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeAppCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeAppResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeAppCommandError = async ( output , context ) : Promise < DescribeAppCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeAppImageConfigCommand = async ( output , context ) : Promise < DescribeAppImageConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeAppImageConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeAppImageConfigResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeAppImageConfigCommandError = async ( output , context ) : Promise < DescribeAppImageConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeArtifactCommand = async ( output , context ) : Promise < DescribeArtifactCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeArtifactCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeArtifactResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeArtifactCommandError = async ( output , context ) : Promise < DescribeArtifactCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeAutoMLJobCommand = async ( output , context ) : Promise < DescribeAutoMLJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeAutoMLJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeAutoMLJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeAutoMLJobCommandError = async ( output , context ) : Promise < DescribeAutoMLJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeCodeRepositoryCommand = async ( output , context ) : Promise < DescribeCodeRepositoryCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeCodeRepositoryCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeCodeRepositoryOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeCodeRepositoryCommandError = async ( output , context ) : Promise < DescribeCodeRepositoryCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeCompilationJobCommand = async ( output , context ) : Promise < DescribeCompilationJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeCompilationJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeCompilationJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeCompilationJobCommandError = async ( output , context ) : Promise < DescribeCompilationJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeContextCommand = async ( output , context ) : Promise < DescribeContextCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeContextCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeContextResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeContextCommandError = async ( output , context ) : Promise < DescribeContextCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeDataQualityJobDefinitionCommand = async ( output , context ) : Promise < DescribeDataQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeDataQualityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeDataQualityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeDataQualityJobDefinitionCommandError = async ( output , context ) : Promise < DescribeDataQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeDeviceCommand = async ( output , context ) : Promise < DescribeDeviceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeDeviceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeDeviceResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeDeviceCommandError = async ( output , context ) : Promise < DescribeDeviceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeDeviceFleetCommand = async ( output , context ) : Promise < DescribeDeviceFleetCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeDeviceFleetCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeDeviceFleetResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeDeviceFleetCommandError = async ( output , context ) : Promise < DescribeDeviceFleetCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeDomainCommand = async ( output , context ) : Promise < DescribeDomainCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeDomainCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeDomainResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeDomainCommandError = async ( output , context ) : Promise < DescribeDomainCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeEdgePackagingJobCommand = async ( output , context ) : Promise < DescribeEdgePackagingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeEdgePackagingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeEdgePackagingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeEdgePackagingJobCommandError = async ( output , context ) : Promise < DescribeEdgePackagingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeEndpointCommand = async ( output , context ) : Promise < DescribeEndpointCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeEndpointCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeEndpointOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeEndpointCommandError = async ( output , context ) : Promise < DescribeEndpointCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeEndpointConfigCommand = async ( output , context ) : Promise < DescribeEndpointConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeEndpointConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeEndpointConfigOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeEndpointConfigCommandError = async ( output , context ) : Promise < DescribeEndpointConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeExperimentCommand = async ( output , context ) : Promise < DescribeExperimentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeExperimentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeExperimentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeExperimentCommandError = async ( output , context ) : Promise < DescribeExperimentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeFeatureGroupCommand = async ( output , context ) : Promise < DescribeFeatureGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeFeatureGroupCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeFeatureGroupResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeFeatureGroupCommandError = async ( output , context ) : Promise < DescribeFeatureGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeFlowDefinitionCommand = async ( output , context ) : Promise < DescribeFlowDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeFlowDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeFlowDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeFlowDefinitionCommandError = async ( output , context ) : Promise < DescribeFlowDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeHumanTaskUiCommand = async ( output , context ) : Promise < DescribeHumanTaskUiCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeHumanTaskUiCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeHumanTaskUiResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeHumanTaskUiCommandError = async ( output , context ) : Promise < DescribeHumanTaskUiCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeHyperParameterTuningJobCommand = async ( output , context ) : Promise < DescribeHyperParameterTuningJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeHyperParameterTuningJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeHyperParameterTuningJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeHyperParameterTuningJobCommandError = async ( output , context ) : Promise < DescribeHyperParameterTuningJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeImageCommand = async ( output , context ) : Promise < DescribeImageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeImageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeImageResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeImageCommandError = async ( output , context ) : Promise < DescribeImageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeImageVersionCommand = async ( output , context ) : Promise < DescribeImageVersionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeImageVersionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeImageVersionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeImageVersionCommandError = async ( output , context ) : Promise < DescribeImageVersionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeInferenceRecommendationsJobCommand = async ( output , context ) : Promise < DescribeInferenceRecommendationsJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeInferenceRecommendationsJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeInferenceRecommendationsJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeInferenceRecommendationsJobCommandError = async ( output , context ) : Promise < DescribeInferenceRecommendationsJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeLabelingJobCommand = async ( output , context ) : Promise < DescribeLabelingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeLabelingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeLabelingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeLabelingJobCommandError = async ( output , context ) : Promise < DescribeLabelingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeLineageGroupCommand = async ( output , context ) : Promise < DescribeLineageGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeLineageGroupCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeLineageGroupResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeLineageGroupCommandError = async ( output , context ) : Promise < DescribeLineageGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelCommand = async ( output , context ) : Promise < DescribeModelCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelCommandError = async ( output , context ) : Promise < DescribeModelCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelBiasJobDefinitionCommand = async ( output , context ) : Promise < DescribeModelBiasJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelBiasJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelBiasJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelBiasJobDefinitionCommandError = async ( output , context ) : Promise < DescribeModelBiasJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelExplainabilityJobDefinitionCommand = async ( output , context ) : Promise < DescribeModelExplainabilityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelExplainabilityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelExplainabilityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelExplainabilityJobDefinitionCommandError = async ( output , context ) : Promise < DescribeModelExplainabilityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelPackageCommand = async ( output , context ) : Promise < DescribeModelPackageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelPackageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelPackageOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelPackageCommandError = async ( output , context ) : Promise < DescribeModelPackageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelPackageGroupCommand = async ( output , context ) : Promise < DescribeModelPackageGroupCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelPackageGroupCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelPackageGroupOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelPackageGroupCommandError = async ( output , context ) : Promise < DescribeModelPackageGroupCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeModelQualityJobDefinitionCommand = async ( output , context ) : Promise < DescribeModelQualityJobDefinitionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeModelQualityJobDefinitionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeModelQualityJobDefinitionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeModelQualityJobDefinitionCommandError = async ( output , context ) : Promise < DescribeModelQualityJobDefinitionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeMonitoringScheduleCommand = async ( output , context ) : Promise < DescribeMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeMonitoringScheduleCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeMonitoringScheduleResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeMonitoringScheduleCommandError = async ( output , context ) : Promise < DescribeMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeNotebookInstanceCommand = async ( output , context ) : Promise < DescribeNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeNotebookInstanceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeNotebookInstanceOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeNotebookInstanceCommandError = async ( output , context ) : Promise < DescribeNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeNotebookInstanceLifecycleConfigCommand = async ( output , context ) : Promise < DescribeNotebookInstanceLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeNotebookInstanceLifecycleConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeNotebookInstanceLifecycleConfigOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeNotebookInstanceLifecycleConfigCommandError = async ( output , context ) : Promise < DescribeNotebookInstanceLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribePipelineCommand = async ( output , context ) : Promise < DescribePipelineCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribePipelineCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribePipelineResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribePipelineCommandError = async ( output , context ) : Promise < DescribePipelineCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribePipelineDefinitionForExecutionCommand = async ( output , context ) : Promise < DescribePipelineDefinitionForExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribePipelineDefinitionForExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribePipelineDefinitionForExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribePipelineDefinitionForExecutionCommandError = async ( output , context ) : Promise < DescribePipelineDefinitionForExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribePipelineExecutionCommand = async ( output , context ) : Promise < DescribePipelineExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribePipelineExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribePipelineExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribePipelineExecutionCommandError = async ( output , context ) : Promise < DescribePipelineExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeProcessingJobCommand = async ( output , context ) : Promise < DescribeProcessingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeProcessingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeProcessingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeProcessingJobCommandError = async ( output , context ) : Promise < DescribeProcessingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeProjectCommand = async ( output , context ) : Promise < DescribeProjectCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeProjectCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeProjectOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeProjectCommandError = async ( output , context ) : Promise < DescribeProjectCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeStudioLifecycleConfigCommand = async ( output , context ) : Promise < DescribeStudioLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeStudioLifecycleConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeStudioLifecycleConfigResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeStudioLifecycleConfigCommandError = async ( output , context ) : Promise < DescribeStudioLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeSubscribedWorkteamCommand = async ( output , context ) : Promise < DescribeSubscribedWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeSubscribedWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeSubscribedWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeSubscribedWorkteamCommandError = async ( output , context ) : Promise < DescribeSubscribedWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeTrainingJobCommand = async ( output , context ) : Promise < DescribeTrainingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeTrainingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeTrainingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeTrainingJobCommandError = async ( output , context ) : Promise < DescribeTrainingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeTransformJobCommand = async ( output , context ) : Promise < DescribeTransformJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeTransformJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeTransformJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeTransformJobCommandError = async ( output , context ) : Promise < DescribeTransformJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeTrialCommand = async ( output , context ) : Promise < DescribeTrialCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeTrialCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeTrialResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeTrialCommandError = async ( output , context ) : Promise < DescribeTrialCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeTrialComponentCommand = async ( output , context ) : Promise < DescribeTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeTrialComponentCommandError = async ( output , context ) : Promise < DescribeTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeUserProfileCommand = async ( output , context ) : Promise < DescribeUserProfileCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeUserProfileCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeUserProfileResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeUserProfileCommandError = async ( output , context ) : Promise < DescribeUserProfileCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeWorkforceCommand = async ( output , context ) : Promise < DescribeWorkforceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeWorkforceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeWorkforceResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeWorkforceCommandError = async ( output , context ) : Promise < DescribeWorkforceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DescribeWorkteamCommand = async ( output , context ) : Promise < DescribeWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DescribeWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DescribeWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DescribeWorkteamCommandError = async ( output , context ) : Promise < DescribeWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DisableSagemakerServicecatalogPortfolioCommand = async ( output , context ) : Promise < DisableSagemakerServicecatalogPortfolioCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DisableSagemakerServicecatalogPortfolioCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DisableSagemakerServicecatalogPortfolioOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DisableSagemakerServicecatalogPortfolioCommandError = async ( output , context ) : Promise < DisableSagemakerServicecatalogPortfolioCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1DisassociateTrialComponentCommand = async ( output , context ) : Promise < DisassociateTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1DisassociateTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1DisassociateTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1DisassociateTrialComponentCommandError = async ( output , context ) : Promise < DisassociateTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1EnableSagemakerServicecatalogPortfolioCommand = async ( output , context ) : Promise < EnableSagemakerServicecatalogPortfolioCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1EnableSagemakerServicecatalogPortfolioCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1EnableSagemakerServicecatalogPortfolioOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1EnableSagemakerServicecatalogPortfolioCommandError = async ( output , context ) : Promise < EnableSagemakerServicecatalogPortfolioCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1GetDeviceFleetReportCommand = async ( output , context ) : Promise < GetDeviceFleetReportCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1GetDeviceFleetReportCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1GetDeviceFleetReportResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1GetDeviceFleetReportCommandError = async ( output , context ) : Promise < GetDeviceFleetReportCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1GetLineageGroupPolicyCommand = async ( output , context ) : Promise < GetLineageGroupPolicyCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1GetLineageGroupPolicyCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1GetLineageGroupPolicyResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1GetLineageGroupPolicyCommandError = async ( output , context ) : Promise < GetLineageGroupPolicyCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1GetModelPackageGroupPolicyCommand = async ( output , context ) : Promise < GetModelPackageGroupPolicyCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1GetModelPackageGroupPolicyCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1GetModelPackageGroupPolicyOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1GetModelPackageGroupPolicyCommandError = async ( output , context ) : Promise < GetModelPackageGroupPolicyCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusCommand = async ( output , context ) : Promise < GetSagemakerServicecatalogPortfolioStatusCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusCommandError = async ( output , context ) : Promise < GetSagemakerServicecatalogPortfolioStatusCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1GetSearchSuggestionsCommand = async ( output , context ) : Promise < GetSearchSuggestionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1GetSearchSuggestionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1GetSearchSuggestionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1GetSearchSuggestionsCommandError = async ( output , context ) : Promise < GetSearchSuggestionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListActionsCommand = async ( output , context ) : Promise < ListActionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListActionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListActionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListActionsCommandError = async ( output , context ) : Promise < ListActionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListAlgorithmsCommand = async ( output , context ) : Promise < ListAlgorithmsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListAlgorithmsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListAlgorithmsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListAlgorithmsCommandError = async ( output , context ) : Promise < ListAlgorithmsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListAppImageConfigsCommand = async ( output , context ) : Promise < ListAppImageConfigsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListAppImageConfigsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListAppImageConfigsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListAppImageConfigsCommandError = async ( output , context ) : Promise < ListAppImageConfigsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListAppsCommand = async ( output , context ) : Promise < ListAppsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListAppsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListAppsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListAppsCommandError = async ( output , context ) : Promise < ListAppsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListArtifactsCommand = async ( output , context ) : Promise < ListArtifactsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListArtifactsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListArtifactsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListArtifactsCommandError = async ( output , context ) : Promise < ListArtifactsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListAssociationsCommand = async ( output , context ) : Promise < ListAssociationsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListAssociationsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListAssociationsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListAssociationsCommandError = async ( output , context ) : Promise < ListAssociationsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListAutoMLJobsCommand = async ( output , context ) : Promise < ListAutoMLJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListAutoMLJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListAutoMLJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListAutoMLJobsCommandError = async ( output , context ) : Promise < ListAutoMLJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListCandidatesForAutoMLJobCommand = async ( output , context ) : Promise < ListCandidatesForAutoMLJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListCandidatesForAutoMLJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListCandidatesForAutoMLJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListCandidatesForAutoMLJobCommandError = async ( output , context ) : Promise < ListCandidatesForAutoMLJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListCodeRepositoriesCommand = async ( output , context ) : Promise < ListCodeRepositoriesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListCodeRepositoriesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListCodeRepositoriesOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListCodeRepositoriesCommandError = async ( output , context ) : Promise < ListCodeRepositoriesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListCompilationJobsCommand = async ( output , context ) : Promise < ListCompilationJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListCompilationJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListCompilationJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListCompilationJobsCommandError = async ( output , context ) : Promise < ListCompilationJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListContextsCommand = async ( output , context ) : Promise < ListContextsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListContextsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListContextsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListContextsCommandError = async ( output , context ) : Promise < ListContextsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListDataQualityJobDefinitionsCommand = async ( output , context ) : Promise < ListDataQualityJobDefinitionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListDataQualityJobDefinitionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListDataQualityJobDefinitionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListDataQualityJobDefinitionsCommandError = async ( output , context ) : Promise < ListDataQualityJobDefinitionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListDeviceFleetsCommand = async ( output , context ) : Promise < ListDeviceFleetsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListDeviceFleetsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListDeviceFleetsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListDeviceFleetsCommandError = async ( output , context ) : Promise < ListDeviceFleetsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListDevicesCommand = async ( output , context ) : Promise < ListDevicesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListDevicesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListDevicesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListDevicesCommandError = async ( output , context ) : Promise < ListDevicesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListDomainsCommand = async ( output , context ) : Promise < ListDomainsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListDomainsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListDomainsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListDomainsCommandError = async ( output , context ) : Promise < ListDomainsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListEdgePackagingJobsCommand = async ( output , context ) : Promise < ListEdgePackagingJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListEdgePackagingJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListEdgePackagingJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListEdgePackagingJobsCommandError = async ( output , context ) : Promise < ListEdgePackagingJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListEndpointConfigsCommand = async ( output , context ) : Promise < ListEndpointConfigsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListEndpointConfigsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListEndpointConfigsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListEndpointConfigsCommandError = async ( output , context ) : Promise < ListEndpointConfigsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListEndpointsCommand = async ( output , context ) : Promise < ListEndpointsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListEndpointsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListEndpointsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListEndpointsCommandError = async ( output , context ) : Promise < ListEndpointsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListExperimentsCommand = async ( output , context ) : Promise < ListExperimentsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListExperimentsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListExperimentsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListExperimentsCommandError = async ( output , context ) : Promise < ListExperimentsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListFeatureGroupsCommand = async ( output , context ) : Promise < ListFeatureGroupsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListFeatureGroupsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListFeatureGroupsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListFeatureGroupsCommandError = async ( output , context ) : Promise < ListFeatureGroupsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListFlowDefinitionsCommand = async ( output , context ) : Promise < ListFlowDefinitionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListFlowDefinitionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListFlowDefinitionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListFlowDefinitionsCommandError = async ( output , context ) : Promise < ListFlowDefinitionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListHumanTaskUisCommand = async ( output , context ) : Promise < ListHumanTaskUisCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListHumanTaskUisCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListHumanTaskUisResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListHumanTaskUisCommandError = async ( output , context ) : Promise < ListHumanTaskUisCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListHyperParameterTuningJobsCommand = async ( output , context ) : Promise < ListHyperParameterTuningJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListHyperParameterTuningJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListHyperParameterTuningJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListHyperParameterTuningJobsCommandError = async ( output , context ) : Promise < ListHyperParameterTuningJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListImagesCommand = async ( output , context ) : Promise < ListImagesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListImagesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListImagesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListImagesCommandError = async ( output , context ) : Promise < ListImagesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListImageVersionsCommand = async ( output , context ) : Promise < ListImageVersionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListImageVersionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListImageVersionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListImageVersionsCommandError = async ( output , context ) : Promise < ListImageVersionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListInferenceRecommendationsJobsCommand = async ( output , context ) : Promise < ListInferenceRecommendationsJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListInferenceRecommendationsJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListInferenceRecommendationsJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListInferenceRecommendationsJobsCommandError = async ( output , context ) : Promise < ListInferenceRecommendationsJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListLabelingJobsCommand = async ( output , context ) : Promise < ListLabelingJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListLabelingJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListLabelingJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListLabelingJobsCommandError = async ( output , context ) : Promise < ListLabelingJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListLabelingJobsForWorkteamCommand = async ( output , context ) : Promise < ListLabelingJobsForWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListLabelingJobsForWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListLabelingJobsForWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListLabelingJobsForWorkteamCommandError = async ( output , context ) : Promise < ListLabelingJobsForWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListLineageGroupsCommand = async ( output , context ) : Promise < ListLineageGroupsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListLineageGroupsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListLineageGroupsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListLineageGroupsCommandError = async ( output , context ) : Promise < ListLineageGroupsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelBiasJobDefinitionsCommand = async ( output , context ) : Promise < ListModelBiasJobDefinitionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelBiasJobDefinitionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelBiasJobDefinitionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelBiasJobDefinitionsCommandError = async ( output , context ) : Promise < ListModelBiasJobDefinitionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelExplainabilityJobDefinitionsCommand = async ( output , context ) : Promise < ListModelExplainabilityJobDefinitionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelExplainabilityJobDefinitionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelExplainabilityJobDefinitionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelExplainabilityJobDefinitionsCommandError = async ( output , context ) : Promise < ListModelExplainabilityJobDefinitionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelMetadataCommand = async ( output , context ) : Promise < ListModelMetadataCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelMetadataCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelMetadataResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelMetadataCommandError = async ( output , context ) : Promise < ListModelMetadataCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelPackageGroupsCommand = async ( output , context ) : Promise < ListModelPackageGroupsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelPackageGroupsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelPackageGroupsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelPackageGroupsCommandError = async ( output , context ) : Promise < ListModelPackageGroupsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelPackagesCommand = async ( output , context ) : Promise < ListModelPackagesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelPackagesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelPackagesOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelPackagesCommandError = async ( output , context ) : Promise < ListModelPackagesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelQualityJobDefinitionsCommand = async ( output , context ) : Promise < ListModelQualityJobDefinitionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelQualityJobDefinitionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelQualityJobDefinitionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelQualityJobDefinitionsCommandError = async ( output , context ) : Promise < ListModelQualityJobDefinitionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListModelsCommand = async ( output , context ) : Promise < ListModelsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListModelsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListModelsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListModelsCommandError = async ( output , context ) : Promise < ListModelsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListMonitoringExecutionsCommand = async ( output , context ) : Promise < ListMonitoringExecutionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListMonitoringExecutionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListMonitoringExecutionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListMonitoringExecutionsCommandError = async ( output , context ) : Promise < ListMonitoringExecutionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListMonitoringSchedulesCommand = async ( output , context ) : Promise < ListMonitoringSchedulesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListMonitoringSchedulesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListMonitoringSchedulesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListMonitoringSchedulesCommandError = async ( output , context ) : Promise < ListMonitoringSchedulesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListNotebookInstanceLifecycleConfigsCommand = async ( output , context ) : Promise < ListNotebookInstanceLifecycleConfigsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListNotebookInstanceLifecycleConfigsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListNotebookInstanceLifecycleConfigsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListNotebookInstanceLifecycleConfigsCommandError = async ( output , context ) : Promise < ListNotebookInstanceLifecycleConfigsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListNotebookInstancesCommand = async ( output , context ) : Promise < ListNotebookInstancesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListNotebookInstancesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListNotebookInstancesOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListNotebookInstancesCommandError = async ( output , context ) : Promise < ListNotebookInstancesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListPipelineExecutionsCommand = async ( output , context ) : Promise < ListPipelineExecutionsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListPipelineExecutionsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListPipelineExecutionsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListPipelineExecutionsCommandError = async ( output , context ) : Promise < ListPipelineExecutionsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListPipelineExecutionStepsCommand = async ( output , context ) : Promise < ListPipelineExecutionStepsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListPipelineExecutionStepsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListPipelineExecutionStepsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListPipelineExecutionStepsCommandError = async ( output , context ) : Promise < ListPipelineExecutionStepsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListPipelineParametersForExecutionCommand = async ( output , context ) : Promise < ListPipelineParametersForExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListPipelineParametersForExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListPipelineParametersForExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListPipelineParametersForExecutionCommandError = async ( output , context ) : Promise < ListPipelineParametersForExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListPipelinesCommand = async ( output , context ) : Promise < ListPipelinesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListPipelinesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListPipelinesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListPipelinesCommandError = async ( output , context ) : Promise < ListPipelinesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListProcessingJobsCommand = async ( output , context ) : Promise < ListProcessingJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListProcessingJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListProcessingJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListProcessingJobsCommandError = async ( output , context ) : Promise < ListProcessingJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListProjectsCommand = async ( output , context ) : Promise < ListProjectsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListProjectsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListProjectsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListProjectsCommandError = async ( output , context ) : Promise < ListProjectsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListStudioLifecycleConfigsCommand = async ( output , context ) : Promise < ListStudioLifecycleConfigsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListStudioLifecycleConfigsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListStudioLifecycleConfigsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListStudioLifecycleConfigsCommandError = async ( output , context ) : Promise < ListStudioLifecycleConfigsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListSubscribedWorkteamsCommand = async ( output , context ) : Promise < ListSubscribedWorkteamsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListSubscribedWorkteamsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListSubscribedWorkteamsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListSubscribedWorkteamsCommandError = async ( output , context ) : Promise < ListSubscribedWorkteamsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTagsCommand = async ( output , context ) : Promise < ListTagsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTagsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTagsOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTagsCommandError = async ( output , context ) : Promise < ListTagsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTrainingJobsCommand = async ( output , context ) : Promise < ListTrainingJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTrainingJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTrainingJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTrainingJobsCommandError = async ( output , context ) : Promise < ListTrainingJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobCommand = async ( output , context ) : Promise < ListTrainingJobsForHyperParameterTuningJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobCommandError = async ( output , context ) : Promise < ListTrainingJobsForHyperParameterTuningJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTransformJobsCommand = async ( output , context ) : Promise < ListTransformJobsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTransformJobsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTransformJobsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTransformJobsCommandError = async ( output , context ) : Promise < ListTransformJobsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTrialComponentsCommand = async ( output , context ) : Promise < ListTrialComponentsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTrialComponentsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTrialComponentsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTrialComponentsCommandError = async ( output , context ) : Promise < ListTrialComponentsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListTrialsCommand = async ( output , context ) : Promise < ListTrialsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListTrialsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListTrialsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListTrialsCommandError = async ( output , context ) : Promise < ListTrialsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListUserProfilesCommand = async ( output , context ) : Promise < ListUserProfilesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListUserProfilesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListUserProfilesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListUserProfilesCommandError = async ( output , context ) : Promise < ListUserProfilesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListWorkforcesCommand = async ( output , context ) : Promise < ListWorkforcesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListWorkforcesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListWorkforcesResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListWorkforcesCommandError = async ( output , context ) : Promise < ListWorkforcesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1ListWorkteamsCommand = async ( output , context ) : Promise < ListWorkteamsCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1ListWorkteamsCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1ListWorkteamsResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1ListWorkteamsCommandError = async ( output , context ) : Promise < ListWorkteamsCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1PutModelPackageGroupPolicyCommand = async ( output , context ) : Promise < PutModelPackageGroupPolicyCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1PutModelPackageGroupPolicyCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1PutModelPackageGroupPolicyOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1PutModelPackageGroupPolicyCommandError = async ( output , context ) : Promise < PutModelPackageGroupPolicyCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1QueryLineageCommand = async ( output , context ) : Promise < QueryLineageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1QueryLineageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1QueryLineageResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1QueryLineageCommandError = async ( output , context ) : Promise < QueryLineageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1RegisterDevicesCommand = async ( output , context ) : Promise < RegisterDevicesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1RegisterDevicesCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1RegisterDevicesCommandError = async ( output , context ) : Promise < RegisterDevicesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1RenderUiTemplateCommand = async ( output , context ) : Promise < RenderUiTemplateCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1RenderUiTemplateCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1RenderUiTemplateResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1RenderUiTemplateCommandError = async ( output , context ) : Promise < RenderUiTemplateCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1RetryPipelineExecutionCommand = async ( output , context ) : Promise < RetryPipelineExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1RetryPipelineExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1RetryPipelineExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1RetryPipelineExecutionCommandError = async ( output , context ) : Promise < RetryPipelineExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1SearchCommand = async ( output , context ) : Promise < SearchCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1SearchCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1SearchResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1SearchCommandError = async ( output , context ) : Promise < SearchCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1SendPipelineExecutionStepFailureCommand = async ( output , context ) : Promise < SendPipelineExecutionStepFailureCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1SendPipelineExecutionStepFailureCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1SendPipelineExecutionStepFailureResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1SendPipelineExecutionStepFailureCommandError = async ( output , context ) : Promise < SendPipelineExecutionStepFailureCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1SendPipelineExecutionStepSuccessCommand = async ( output , context ) : Promise < SendPipelineExecutionStepSuccessCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1SendPipelineExecutionStepSuccessCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1SendPipelineExecutionStepSuccessResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1SendPipelineExecutionStepSuccessCommandError = async ( output , context ) : Promise < SendPipelineExecutionStepSuccessCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StartMonitoringScheduleCommand = async ( output , context ) : Promise < StartMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StartMonitoringScheduleCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StartMonitoringScheduleCommandError = async ( output , context ) : Promise < StartMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StartNotebookInstanceCommand = async ( output , context ) : Promise < StartNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StartNotebookInstanceCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StartNotebookInstanceCommandError = async ( output , context ) : Promise < StartNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StartPipelineExecutionCommand = async ( output , context ) : Promise < StartPipelineExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StartPipelineExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1StartPipelineExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StartPipelineExecutionCommandError = async ( output , context ) : Promise < StartPipelineExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopAutoMLJobCommand = async ( output , context ) : Promise < StopAutoMLJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopAutoMLJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopAutoMLJobCommandError = async ( output , context ) : Promise < StopAutoMLJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopCompilationJobCommand = async ( output , context ) : Promise < StopCompilationJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopCompilationJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopCompilationJobCommandError = async ( output , context ) : Promise < StopCompilationJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopEdgePackagingJobCommand = async ( output , context ) : Promise < StopEdgePackagingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopEdgePackagingJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopEdgePackagingJobCommandError = async ( output , context ) : Promise < StopEdgePackagingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopHyperParameterTuningJobCommand = async ( output , context ) : Promise < StopHyperParameterTuningJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopHyperParameterTuningJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopHyperParameterTuningJobCommandError = async ( output , context ) : Promise < StopHyperParameterTuningJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopInferenceRecommendationsJobCommand = async ( output , context ) : Promise < StopInferenceRecommendationsJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopInferenceRecommendationsJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopInferenceRecommendationsJobCommandError = async ( output , context ) : Promise < StopInferenceRecommendationsJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopLabelingJobCommand = async ( output , context ) : Promise < StopLabelingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopLabelingJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopLabelingJobCommandError = async ( output , context ) : Promise < StopLabelingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopMonitoringScheduleCommand = async ( output , context ) : Promise < StopMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopMonitoringScheduleCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopMonitoringScheduleCommandError = async ( output , context ) : Promise < StopMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopNotebookInstanceCommand = async ( output , context ) : Promise < StopNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopNotebookInstanceCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopNotebookInstanceCommandError = async ( output , context ) : Promise < StopNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopPipelineExecutionCommand = async ( output , context ) : Promise < StopPipelineExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopPipelineExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1StopPipelineExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopPipelineExecutionCommandError = async ( output , context ) : Promise < StopPipelineExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopProcessingJobCommand = async ( output , context ) : Promise < StopProcessingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopProcessingJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopProcessingJobCommandError = async ( output , context ) : Promise < StopProcessingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopTrainingJobCommand = async ( output , context ) : Promise < StopTrainingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopTrainingJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopTrainingJobCommandError = async ( output , context ) : Promise < StopTrainingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1StopTransformJobCommand = async ( output , context ) : Promise < StopTransformJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1StopTransformJobCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1StopTransformJobCommandError = async ( output , context ) : Promise < StopTransformJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateActionCommand = async ( output , context ) : Promise < UpdateActionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateActionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateActionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateActionCommandError = async ( output , context ) : Promise < UpdateActionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateAppImageConfigCommand = async ( output , context ) : Promise < UpdateAppImageConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateAppImageConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateAppImageConfigResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateAppImageConfigCommandError = async ( output , context ) : Promise < UpdateAppImageConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateArtifactCommand = async ( output , context ) : Promise < UpdateArtifactCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateArtifactCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateArtifactResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateArtifactCommandError = async ( output , context ) : Promise < UpdateArtifactCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateCodeRepositoryCommand = async ( output , context ) : Promise < UpdateCodeRepositoryCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateCodeRepositoryCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateCodeRepositoryOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateCodeRepositoryCommandError = async ( output , context ) : Promise < UpdateCodeRepositoryCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateContextCommand = async ( output , context ) : Promise < UpdateContextCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateContextCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateContextResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateContextCommandError = async ( output , context ) : Promise < UpdateContextCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateDeviceFleetCommand = async ( output , context ) : Promise < UpdateDeviceFleetCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateDeviceFleetCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateDeviceFleetCommandError = async ( output , context ) : Promise < UpdateDeviceFleetCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateDevicesCommand = async ( output , context ) : Promise < UpdateDevicesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateDevicesCommandError ( output , context ) ; } await collectBody ( output . body , context ) ; const response = { $metadata : deserializeMetadata ( output ) , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateDevicesCommandError = async ( output , context ) : Promise < UpdateDevicesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateDomainCommand = async ( output , context ) : Promise < UpdateDomainCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateDomainCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateDomainResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateDomainCommandError = async ( output , context ) : Promise < UpdateDomainCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateEndpointCommand = async ( output , context ) : Promise < UpdateEndpointCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateEndpointCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateEndpointOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateEndpointCommandError = async ( output , context ) : Promise < UpdateEndpointCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommand = async ( output , context ) : Promise < UpdateEndpointWeightsAndCapacitiesCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommandError = async ( output , context ) : Promise < UpdateEndpointWeightsAndCapacitiesCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateExperimentCommand = async ( output , context ) : Promise < UpdateExperimentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateExperimentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateExperimentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateExperimentCommandError = async ( output , context ) : Promise < UpdateExperimentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateImageCommand = async ( output , context ) : Promise < UpdateImageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateImageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateImageResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateImageCommandError = async ( output , context ) : Promise < UpdateImageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateModelPackageCommand = async ( output , context ) : Promise < UpdateModelPackageCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateModelPackageCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateModelPackageOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateModelPackageCommandError = async ( output , context ) : Promise < UpdateModelPackageCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateMonitoringScheduleCommand = async ( output , context ) : Promise < UpdateMonitoringScheduleCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateMonitoringScheduleCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateMonitoringScheduleResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateMonitoringScheduleCommandError = async ( output , context ) : Promise < UpdateMonitoringScheduleCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateNotebookInstanceCommand = async ( output , context ) : Promise < UpdateNotebookInstanceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateNotebookInstanceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateNotebookInstanceOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateNotebookInstanceCommandError = async ( output , context ) : Promise < UpdateNotebookInstanceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateNotebookInstanceLifecycleConfigCommand = async ( output , context ) : Promise < UpdateNotebookInstanceLifecycleConfigCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateNotebookInstanceLifecycleConfigCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateNotebookInstanceLifecycleConfigOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateNotebookInstanceLifecycleConfigCommandError = async ( output , context ) : Promise < UpdateNotebookInstanceLifecycleConfigCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdatePipelineCommand = async ( output , context ) : Promise < UpdatePipelineCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdatePipelineCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdatePipelineResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdatePipelineCommandError = async ( output , context ) : Promise < UpdatePipelineCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdatePipelineExecutionCommand = async ( output , context ) : Promise < UpdatePipelineExecutionCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdatePipelineExecutionCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdatePipelineExecutionResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdatePipelineExecutionCommandError = async ( output , context ) : Promise < UpdatePipelineExecutionCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateProjectCommand = async ( output , context ) : Promise < UpdateProjectCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateProjectCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateProjectOutput ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateProjectCommandError = async ( output , context ) : Promise < UpdateProjectCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateTrainingJobCommand = async ( output , context ) : Promise < UpdateTrainingJobCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateTrainingJobCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateTrainingJobResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateTrainingJobCommandError = async ( output , context ) : Promise < UpdateTrainingJobCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateTrialCommand = async ( output , context ) : Promise < UpdateTrialCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateTrialCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateTrialResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateTrialCommandError = async ( output , context ) : Promise < UpdateTrialCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateTrialComponentCommand = async ( output , context ) : Promise < UpdateTrialComponentCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateTrialComponentCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateTrialComponentResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateTrialComponentCommandError = async ( output , context ) : Promise < UpdateTrialComponentCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ConflictException" : case "com.amazonaws.sagemaker#ConflictException" : response = { ... ( await deserializeAws_json1_1ConflictExceptionResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateUserProfileCommand = async ( output , context ) : Promise < UpdateUserProfileCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateUserProfileCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateUserProfileResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateUserProfileCommandError = async ( output , context ) : Promise < UpdateUserProfileCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceInUse" : case "com.amazonaws.sagemaker#ResourceInUse" : response = { ... ( await deserializeAws_json1_1ResourceInUseResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; case "ResourceNotFound" : case "com.amazonaws.sagemaker#ResourceNotFound" : response = { ... ( await deserializeAws_json1_1ResourceNotFoundResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateWorkforceCommand = async ( output , context ) : Promise < UpdateWorkforceCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateWorkforceCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateWorkforceResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateWorkforceCommandError = async ( output , context ) : Promise < UpdateWorkforceCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; export const deserializeAws_json1_1UpdateWorkteamCommand = async ( output , context ) : Promise < UpdateWorkteamCommandOutput > => { if ( output . statusCode >= 300 ) { return deserializeAws_json1_1UpdateWorkteamCommandError ( output , context ) ; } const data = await parseBody ( output . body , context ) ; let contents = { } ; contents = deserializeAws_json1_1UpdateWorkteamResponse ( data , context ) ; const response = { $metadata : deserializeMetadata ( output ) , ... contents , } ; return Promise . resolve ( response ) ; } ; const deserializeAws_json1_1UpdateWorkteamCommandError = async ( output , context ) : Promise < UpdateWorkteamCommandOutput > => { const parsedOutput = { ... output , body : await parseBody ( output . body , context ) , } ; let response ; let errorCode = "UnknownError" ; errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ; switch ( errorCode ) { case "ResourceLimitExceeded" : case "com.amazonaws.sagemaker#ResourceLimitExceeded" : response = { ... ( await deserializeAws_json1_1ResourceLimitExceededResponse ( parsedOutput , context ) ) , name : errorCode , $metadata : deserializeMetadata ( output ) , } ; break ; default : const parsedBody = parsedOutput . body ; errorCode = parsedBody . code || parsedBody . Code || errorCode ; response = { ... parsedBody , name : `${ errorCode }` , message : parsedBody . message || parsedBody . Message || errorCode , $fault : "client" , $metadata : deserializeMetadata ( output ) , } as any ; } const message = response . message || response . Message || errorCode ; response . message = message ; delete response . Message ; return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ; } ; const deserializeAws_json1_1ConflictExceptionResponse = async ( parsedOutput , context ) : Promise < ConflictException > => { const body = parsedOutput . body ; const deserialized = deserializeAws_json1_1ConflictException ( body , context ) ; const contents = { name : "ConflictException" , $fault : "client" , $metadata : deserializeMetadata ( parsedOutput ) , ... deserialized , } ; return contents ; } ; const deserializeAws_json1_1ResourceInUseResponse = async ( parsedOutput , context ) : Promise < ResourceInUse > => { const body = parsedOutput . body ; const deserialized = deserializeAws_json1_1ResourceInUse ( body , context ) ; const contents = { name : "ResourceInUse" , $fault : "client" , $metadata : deserializeMetadata ( parsedOutput ) , ... deserialized , } ; return contents ; } ; const deserializeAws_json1_1ResourceLimitExceededResponse = async ( parsedOutput , context ) : Promise < ResourceLimitExceeded > => { const body = parsedOutput . body ; const deserialized = deserializeAws_json1_1ResourceLimitExceeded ( body , context ) ; const contents = { name : "ResourceLimitExceeded" , $fault : "client" , $metadata : deserializeMetadata ( parsedOutput ) , ... deserialized , } ; return contents ; } ; const deserializeAws_json1_1ResourceNotFoundResponse = async ( parsedOutput , context ) : Promise < ResourceNotFound > => { const body = parsedOutput . body ; const deserialized = deserializeAws_json1_1ResourceNotFound ( body , context ) ; const contents = { name : "ResourceNotFound" , $fault : "client" , $metadata : deserializeMetadata ( parsedOutput ) , ... deserialized , } ; return contents ; } ; const serializeAws_json1_1ActionSource = ( input , context ) : any => { return { ... ( input . SourceId !== undefined && input . SourceId !== null && { SourceId : input . SourceId } ) , ... ( input . SourceType !== undefined && input . SourceType !== null && { SourceType : input . SourceType } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1AddAssociationRequest = ( input , context ) : any => { return { ... ( input . AssociationType !== undefined && input . AssociationType !== null && { AssociationType : input . AssociationType } ) , ... ( input . DestinationArn !== undefined && input . DestinationArn !== null && { DestinationArn : input . DestinationArn } ) , ... ( input . SourceArn !== undefined && input . SourceArn !== null && { SourceArn : input . SourceArn } ) , } ; } ; const serializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1AdditionalInferenceSpecificationDefinition = ( input , context ) : any => { return { ... ( input . Containers !== undefined && input . Containers !== null && { Containers : serializeAws_json1_1ModelPackageContainerDefinitionList ( input . Containers , context ) , } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . SupportedContentTypes !== undefined && input . SupportedContentTypes !== null && { SupportedContentTypes : serializeAws_json1_1ContentTypes ( input . SupportedContentTypes , context ) , } ) , ... ( input . SupportedRealtimeInferenceInstanceTypes !== undefined && input . SupportedRealtimeInferenceInstanceTypes !== null && { SupportedRealtimeInferenceInstanceTypes : serializeAws_json1_1RealtimeInferenceInstanceTypes ( input . SupportedRealtimeInferenceInstanceTypes , context ) , } ) , ... ( input . SupportedResponseMIMETypes !== undefined && input . SupportedResponseMIMETypes !== null && { SupportedResponseMIMETypes : serializeAws_json1_1ResponseMIMETypes ( input . SupportedResponseMIMETypes , context ) , } ) , ... ( input . SupportedTransformInstanceTypes !== undefined && input . SupportedTransformInstanceTypes !== null && { SupportedTransformInstanceTypes : serializeAws_json1_1TransformInstanceTypes ( input . SupportedTransformInstanceTypes , context ) , } ) , } ; } ; const serializeAws_json1_1AdditionalInferenceSpecifications = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1AdditionalInferenceSpecificationDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1AddTagsInput = ( input , context ) : any => { return { ... ( input . ResourceArn !== undefined && input . ResourceArn !== null && { ResourceArn : input . ResourceArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1Alarm = ( input , context ) : any => { return { ... ( input . AlarmName !== undefined && input . AlarmName !== null && { AlarmName : input . AlarmName } ) , } ; } ; const serializeAws_json1_1AlarmList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Alarm ( entry , context ) ; } ) ; } ; const serializeAws_json1_1AlgorithmSpecification = ( input , context ) : any => { return { ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , ... ( input . EnableSageMakerMetricsTimeSeries !== undefined && input . EnableSageMakerMetricsTimeSeries !== null && { EnableSageMakerMetricsTimeSeries : input . EnableSageMakerMetricsTimeSeries , } ) , ... ( input . MetricDefinitions !== undefined && input . MetricDefinitions !== null && { MetricDefinitions : serializeAws_json1_1MetricDefinitionList ( input . MetricDefinitions , context ) , } ) , ... ( input . TrainingImage !== undefined && input . TrainingImage !== null && { TrainingImage : input . TrainingImage } ) , ... ( input . TrainingInputMode !== undefined && input . TrainingInputMode !== null && { TrainingInputMode : input . TrainingInputMode } ) , } ; } ; const serializeAws_json1_1AlgorithmValidationProfile = ( input , context ) : any => { return { ... ( input . ProfileName !== undefined && input . ProfileName !== null && { ProfileName : input . ProfileName } ) , ... ( input . TrainingJobDefinition !== undefined && input . TrainingJobDefinition !== null && { TrainingJobDefinition : serializeAws_json1_1TrainingJobDefinition ( input . TrainingJobDefinition , context ) , } ) , ... ( input . TransformJobDefinition !== undefined && input . TransformJobDefinition !== null && { TransformJobDefinition : serializeAws_json1_1TransformJobDefinition ( input . TransformJobDefinition , context ) , } ) , } ; } ; const serializeAws_json1_1AlgorithmValidationProfiles = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1AlgorithmValidationProfile ( entry , context ) ; } ) ; } ; const serializeAws_json1_1AlgorithmValidationSpecification = ( input , context ) : any => { return { ... ( input . ValidationProfiles !== undefined && input . ValidationProfiles !== null && { ValidationProfiles : serializeAws_json1_1AlgorithmValidationProfiles ( input . ValidationProfiles , context ) , } ) , ... ( input . ValidationRole !== undefined && input . ValidationRole !== null && { ValidationRole : input . ValidationRole } ) , } ; } ; const serializeAws_json1_1AnnotationConsolidationConfig = ( input , context ) : any => { return { ... ( input . AnnotationConsolidationLambdaArn !== undefined && input . AnnotationConsolidationLambdaArn !== null && { AnnotationConsolidationLambdaArn : input . AnnotationConsolidationLambdaArn , } ) , } ; } ; const serializeAws_json1_1AppSpecification = ( input , context ) : any => { return { ... ( input . ContainerArguments !== undefined && input . ContainerArguments !== null && { ContainerArguments : serializeAws_json1_1ContainerArguments ( input . ContainerArguments , context ) , } ) , ... ( input . ContainerEntrypoint !== undefined && input . ContainerEntrypoint !== null && { ContainerEntrypoint : serializeAws_json1_1ContainerEntrypoint ( input . ContainerEntrypoint , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , } ; } ; const serializeAws_json1_1ArtifactSource = ( input , context ) : any => { return { ... ( input . SourceTypes !== undefined && input . SourceTypes !== null && { SourceTypes : serializeAws_json1_1ArtifactSourceTypes ( input . SourceTypes , context ) , } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1ArtifactSourceType = ( input , context ) : any => { return { ... ( input . SourceIdType !== undefined && input . SourceIdType !== null && { SourceIdType : input . SourceIdType } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1ArtifactSourceTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ArtifactSourceType ( entry , context ) ; } ) ; } ; const serializeAws_json1_1AssociateTrialComponentRequest = ( input , context ) : any => { return { ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1AsyncInferenceClientConfig = ( input , context ) : any => { return { ... ( input . MaxConcurrentInvocationsPerInstance !== undefined && input . MaxConcurrentInvocationsPerInstance !== null && { MaxConcurrentInvocationsPerInstance : input . MaxConcurrentInvocationsPerInstance , } ) , } ; } ; const serializeAws_json1_1AsyncInferenceConfig = ( input , context ) : any => { return { ... ( input . ClientConfig !== undefined && input . ClientConfig !== null && { ClientConfig : serializeAws_json1_1AsyncInferenceClientConfig ( input . ClientConfig , context ) , } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1AsyncInferenceOutputConfig ( input . OutputConfig , context ) , } ) , } ; } ; const serializeAws_json1_1AsyncInferenceNotificationConfig = ( input , context ) : any => { return { ... ( input . ErrorTopic !== undefined && input . ErrorTopic !== null && { ErrorTopic : input . ErrorTopic } ) , ... ( input . SuccessTopic !== undefined && input . SuccessTopic !== null && { SuccessTopic : input . SuccessTopic } ) , } ; } ; const serializeAws_json1_1AsyncInferenceOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . NotificationConfig !== undefined && input . NotificationConfig !== null && { NotificationConfig : serializeAws_json1_1AsyncInferenceNotificationConfig ( input . NotificationConfig , context ) , } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1AthenaDatasetDefinition = ( input , context ) : any => { return { ... ( input . Catalog !== undefined && input . Catalog !== null && { Catalog : input . Catalog } ) , ... ( input . Database !== undefined && input . Database !== null && { Database : input . Database } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . OutputCompression !== undefined && input . OutputCompression !== null && { OutputCompression : input . OutputCompression } ) , ... ( input . OutputFormat !== undefined && input . OutputFormat !== null && { OutputFormat : input . OutputFormat } ) , ... ( input . OutputS3Uri !== undefined && input . OutputS3Uri !== null && { OutputS3Uri : input . OutputS3Uri } ) , ... ( input . QueryString !== undefined && input . QueryString !== null && { QueryString : input . QueryString } ) , ... ( input . WorkGroup !== undefined && input . WorkGroup !== null && { WorkGroup : input . WorkGroup } ) , } ; } ; const serializeAws_json1_1AttributeNames = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1AutoMLChannel = ( input , context ) : any => { return { ... ( input . CompressionType !== undefined && input . CompressionType !== null && { CompressionType : input . CompressionType } ) , ... ( input . ContentType !== undefined && input . ContentType !== null && { ContentType : input . ContentType } ) , ... ( input . DataSource !== undefined && input . DataSource !== null && { DataSource : serializeAws_json1_1AutoMLDataSource ( input . DataSource , context ) } ) , ... ( input . TargetAttributeName !== undefined && input . TargetAttributeName !== null && { TargetAttributeName : input . TargetAttributeName } ) , } ; } ; const serializeAws_json1_1AutoMLDataSource = ( input , context ) : any => { return { ... ( input . S3DataSource !== undefined && input . S3DataSource !== null && { S3DataSource : serializeAws_json1_1AutoMLS3DataSource ( input . S3DataSource , context ) , } ) , } ; } ; const serializeAws_json1_1AutoMLInputDataConfig = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1AutoMLChannel ( entry , context ) ; } ) ; } ; const serializeAws_json1_1AutoMLJobCompletionCriteria = ( input , context ) : any => { return { ... ( input . MaxAutoMLJobRuntimeInSeconds !== undefined && input . MaxAutoMLJobRuntimeInSeconds !== null && { MaxAutoMLJobRuntimeInSeconds : input . MaxAutoMLJobRuntimeInSeconds , } ) , ... ( input . MaxCandidates !== undefined && input . MaxCandidates !== null && { MaxCandidates : input . MaxCandidates } ) , ... ( input . MaxRuntimePerTrainingJobInSeconds !== undefined && input . MaxRuntimePerTrainingJobInSeconds !== null && { MaxRuntimePerTrainingJobInSeconds : input . MaxRuntimePerTrainingJobInSeconds , } ) , } ; } ; const serializeAws_json1_1AutoMLJobConfig = ( input , context ) : any => { return { ... ( input . CompletionCriteria !== undefined && input . CompletionCriteria !== null && { CompletionCriteria : serializeAws_json1_1AutoMLJobCompletionCriteria ( input . CompletionCriteria , context ) , } ) , ... ( input . SecurityConfig !== undefined && input . SecurityConfig !== null && { SecurityConfig : serializeAws_json1_1AutoMLSecurityConfig ( input . SecurityConfig , context ) , } ) , } ; } ; const serializeAws_json1_1AutoMLJobObjective = ( input , context ) : any => { return { ... ( input . MetricName !== undefined && input . MetricName !== null && { MetricName : input . MetricName } ) , } ; } ; const serializeAws_json1_1AutoMLOutputDataConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1AutoMLS3DataSource = ( input , context ) : any => { return { ... ( input . S3DataType !== undefined && input . S3DataType !== null && { S3DataType : input . S3DataType } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1AutoMLSecurityConfig = ( input , context ) : any => { return { ... ( input . EnableInterContainerTrafficEncryption !== undefined && input . EnableInterContainerTrafficEncryption !== null && { EnableInterContainerTrafficEncryption : input . EnableInterContainerTrafficEncryption , } ) , ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1AutoRollbackConfig = ( input , context ) : any => { return { ... ( input . Alarms !== undefined && input . Alarms !== null && { Alarms : serializeAws_json1_1AlarmList ( input . Alarms , context ) } ) , } ; } ; const serializeAws_json1_1BatchDescribeModelPackageInput = ( input , context ) : any => { return { ... ( input . ModelPackageArnList !== undefined && input . ModelPackageArnList !== null && { ModelPackageArnList : serializeAws_json1_1ModelPackageArnList ( input . ModelPackageArnList , context ) , } ) , } ; } ; const serializeAws_json1_1Bias = ( input , context ) : any => { return { ... ( input . PostTrainingReport !== undefined && input . PostTrainingReport !== null && { PostTrainingReport : serializeAws_json1_1MetricsSource ( input . PostTrainingReport , context ) , } ) , ... ( input . PreTrainingReport !== undefined && input . PreTrainingReport !== null && { PreTrainingReport : serializeAws_json1_1MetricsSource ( input . PreTrainingReport , context ) , } ) , ... ( input . Report !== undefined && input . Report !== null && { Report : serializeAws_json1_1MetricsSource ( input . Report , context ) } ) , } ; } ; const serializeAws_json1_1BlueGreenUpdatePolicy = ( input , context ) : any => { return { ... ( input . MaximumExecutionTimeoutInSeconds !== undefined && input . MaximumExecutionTimeoutInSeconds !== null && { MaximumExecutionTimeoutInSeconds : input . MaximumExecutionTimeoutInSeconds , } ) , ... ( input . TerminationWaitInSeconds !== undefined && input . TerminationWaitInSeconds !== null && { TerminationWaitInSeconds : input . TerminationWaitInSeconds } ) , ... ( input . TrafficRoutingConfiguration !== undefined && input . TrafficRoutingConfiguration !== null && { TrafficRoutingConfiguration : serializeAws_json1_1TrafficRoutingConfig ( input . TrafficRoutingConfiguration , context ) , } ) , } ; } ; const serializeAws_json1_1CapacitySize = ( input , context ) : any => { return { ... ( input . Type !== undefined && input . Type !== null && { Type : input . Type } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1CaptureContentTypeHeader = ( input , context ) : any => { return { ... ( input . CsvContentTypes !== undefined && input . CsvContentTypes !== null && { CsvContentTypes : serializeAws_json1_1CsvContentTypes ( input . CsvContentTypes , context ) , } ) , ... ( input . JsonContentTypes !== undefined && input . JsonContentTypes !== null && { JsonContentTypes : serializeAws_json1_1JsonContentTypes ( input . JsonContentTypes , context ) , } ) , } ; } ; const serializeAws_json1_1CaptureOption = ( input , context ) : any => { return { ... ( input . CaptureMode !== undefined && input . CaptureMode !== null && { CaptureMode : input . CaptureMode } ) , } ; } ; const serializeAws_json1_1CaptureOptionList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1CaptureOption ( entry , context ) ; } ) ; } ; const serializeAws_json1_1CategoricalParameter = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : serializeAws_json1_1CategoricalParameterRangeValues ( input . Value , context ) } ) , } ; } ; const serializeAws_json1_1CategoricalParameterRange = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Values !== undefined && input . Values !== null && { Values : serializeAws_json1_1ParameterValues ( input . Values , context ) } ) , } ; } ; const serializeAws_json1_1CategoricalParameterRanges = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1CategoricalParameterRange ( entry , context ) ; } ) ; } ; const serializeAws_json1_1CategoricalParameterRangeSpecification = ( input , context ) : any => { return { ... ( input . Values !== undefined && input . Values !== null && { Values : serializeAws_json1_1ParameterValues ( input . Values , context ) } ) , } ; } ; const serializeAws_json1_1CategoricalParameterRangeValues = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1CategoricalParameters = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1CategoricalParameter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1Channel = ( input , context ) : any => { return { ... ( input . ChannelName !== undefined && input . ChannelName !== null && { ChannelName : input . ChannelName } ) , ... ( input . CompressionType !== undefined && input . CompressionType !== null && { CompressionType : input . CompressionType } ) , ... ( input . ContentType !== undefined && input . ContentType !== null && { ContentType : input . ContentType } ) , ... ( input . DataSource !== undefined && input . DataSource !== null && { DataSource : serializeAws_json1_1DataSource ( input . DataSource , context ) } ) , ... ( input . InputMode !== undefined && input . InputMode !== null && { InputMode : input . InputMode } ) , ... ( input . RecordWrapperType !== undefined && input . RecordWrapperType !== null && { RecordWrapperType : input . RecordWrapperType } ) , ... ( input . ShuffleConfig !== undefined && input . ShuffleConfig !== null && { ShuffleConfig : serializeAws_json1_1ShuffleConfig ( input . ShuffleConfig , context ) , } ) , } ; } ; const serializeAws_json1_1ChannelSpecification = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . IsRequired !== undefined && input . IsRequired !== null && { IsRequired : input . IsRequired } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . SupportedCompressionTypes !== undefined && input . SupportedCompressionTypes !== null && { SupportedCompressionTypes : serializeAws_json1_1CompressionTypes ( input . SupportedCompressionTypes , context ) , } ) , ... ( input . SupportedContentTypes !== undefined && input . SupportedContentTypes !== null && { SupportedContentTypes : serializeAws_json1_1ContentTypes ( input . SupportedContentTypes , context ) , } ) , ... ( input . SupportedInputModes !== undefined && input . SupportedInputModes !== null && { SupportedInputModes : serializeAws_json1_1InputModes ( input . SupportedInputModes , context ) , } ) , } ; } ; const serializeAws_json1_1ChannelSpecifications = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ChannelSpecification ( entry , context ) ; } ) ; } ; const serializeAws_json1_1CheckpointConfig = ( input , context ) : any => { return { ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1Cidrs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1CognitoConfig = ( input , context ) : any => { return { ... ( input . ClientId !== undefined && input . ClientId !== null && { ClientId : input . ClientId } ) , ... ( input . UserPool !== undefined && input . UserPool !== null && { UserPool : input . UserPool } ) , } ; } ; const serializeAws_json1_1CognitoMemberDefinition = ( input , context ) : any => { return { ... ( input . ClientId !== undefined && input . ClientId !== null && { ClientId : input . ClientId } ) , ... ( input . UserGroup !== undefined && input . UserGroup !== null && { UserGroup : input . UserGroup } ) , ... ( input . UserPool !== undefined && input . UserPool !== null && { UserPool : input . UserPool } ) , } ; } ; const serializeAws_json1_1CollectionConfiguration = ( input , context ) : any => { return { ... ( input . CollectionName !== undefined && input . CollectionName !== null && { CollectionName : input . CollectionName } ) , ... ( input . CollectionParameters !== undefined && input . CollectionParameters !== null && { CollectionParameters : serializeAws_json1_1CollectionParameters ( input . CollectionParameters , context ) , } ) , } ; } ; const serializeAws_json1_1CollectionConfigurations = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1CollectionConfiguration ( entry , context ) ; } ) ; } ; const serializeAws_json1_1CollectionParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1CompressionTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ContainerArguments = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ContainerDefinition = ( input , context ) : any => { return { ... ( input . ContainerHostname !== undefined && input . ContainerHostname !== null && { ContainerHostname : input . ContainerHostname } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1EnvironmentMap ( input . Environment , context ) } ) , ... ( input . Image !== undefined && input . Image !== null && { Image : input . Image } ) , ... ( input . ImageConfig !== undefined && input . ImageConfig !== null && { ImageConfig : serializeAws_json1_1ImageConfig ( input . ImageConfig , context ) } ) , ... ( input . InferenceSpecificationName !== undefined && input . InferenceSpecificationName !== null && { InferenceSpecificationName : input . InferenceSpecificationName } ) , ... ( input . Mode !== undefined && input . Mode !== null && { Mode : input . Mode } ) , ... ( input . ModelDataUrl !== undefined && input . ModelDataUrl !== null && { ModelDataUrl : input . ModelDataUrl } ) , ... ( input . ModelPackageName !== undefined && input . ModelPackageName !== null && { ModelPackageName : input . ModelPackageName } ) , ... ( input . MultiModelConfig !== undefined && input . MultiModelConfig !== null && { MultiModelConfig : serializeAws_json1_1MultiModelConfig ( input . MultiModelConfig , context ) , } ) , } ; } ; const serializeAws_json1_1ContainerDefinitionList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ContainerDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ContainerEntrypoint = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ContentClassifiers = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ContentTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ContextSource = ( input , context ) : any => { return { ... ( input . SourceId !== undefined && input . SourceId !== null && { SourceId : input . SourceId } ) , ... ( input . SourceType !== undefined && input . SourceType !== null && { SourceType : input . SourceType } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1ContinuousParameterRange = ( input , context ) : any => { return { ... ( input . MaxValue !== undefined && input . MaxValue !== null && { MaxValue : input . MaxValue } ) , ... ( input . MinValue !== undefined && input . MinValue !== null && { MinValue : input . MinValue } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . ScalingType !== undefined && input . ScalingType !== null && { ScalingType : input . ScalingType } ) , } ; } ; const serializeAws_json1_1ContinuousParameterRanges = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ContinuousParameterRange ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ContinuousParameterRangeSpecification = ( input , context ) : any => { return { ... ( input . MaxValue !== undefined && input . MaxValue !== null && { MaxValue : input . MaxValue } ) , ... ( input . MinValue !== undefined && input . MinValue !== null && { MinValue : input . MinValue } ) , } ; } ; const serializeAws_json1_1CreateActionRequest = ( input , context ) : any => { return { ... ( input . ActionName !== undefined && input . ActionName !== null && { ActionName : input . ActionName } ) , ... ( input . ActionType !== undefined && input . ActionType !== null && { ActionType : input . ActionType } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . MetadataProperties !== undefined && input . MetadataProperties !== null && { MetadataProperties : serializeAws_json1_1MetadataProperties ( input . MetadataProperties , context ) , } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . Source !== undefined && input . Source !== null && { Source : serializeAws_json1_1ActionSource ( input . Source , context ) } ) , ... ( input . Status !== undefined && input . Status !== null && { Status : input . Status } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateAlgorithmInput = ( input , context ) : any => { return { ... ( input . AlgorithmDescription !== undefined && input . AlgorithmDescription !== null && { AlgorithmDescription : input . AlgorithmDescription } ) , ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , ... ( input . CertifyForMarketplace !== undefined && input . CertifyForMarketplace !== null && { CertifyForMarketplace : input . CertifyForMarketplace } ) , ... ( input . InferenceSpecification !== undefined && input . InferenceSpecification !== null && { InferenceSpecification : serializeAws_json1_1InferenceSpecification ( input . InferenceSpecification , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TrainingSpecification !== undefined && input . TrainingSpecification !== null && { TrainingSpecification : serializeAws_json1_1TrainingSpecification ( input . TrainingSpecification , context ) , } ) , ... ( input . ValidationSpecification !== undefined && input . ValidationSpecification !== null && { ValidationSpecification : serializeAws_json1_1AlgorithmValidationSpecification ( input . ValidationSpecification , context ) , } ) , } ; } ; const serializeAws_json1_1CreateAppImageConfigRequest = ( input , context ) : any => { return { ... ( input . AppImageConfigName !== undefined && input . AppImageConfigName !== null && { AppImageConfigName : input . AppImageConfigName } ) , ... ( input . KernelGatewayImageConfig !== undefined && input . KernelGatewayImageConfig !== null && { KernelGatewayImageConfig : serializeAws_json1_1KernelGatewayImageConfig ( input . KernelGatewayImageConfig , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateAppRequest = ( input , context ) : any => { return { ... ( input . AppName !== undefined && input . AppName !== null && { AppName : input . AppName } ) , ... ( input . AppType !== undefined && input . AppType !== null && { AppType : input . AppType } ) , ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . ResourceSpec !== undefined && input . ResourceSpec !== null && { ResourceSpec : serializeAws_json1_1ResourceSpec ( input . ResourceSpec , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1CreateArtifactRequest = ( input , context ) : any => { return { ... ( input . ArtifactName !== undefined && input . ArtifactName !== null && { ArtifactName : input . ArtifactName } ) , ... ( input . ArtifactType !== undefined && input . ArtifactType !== null && { ArtifactType : input . ArtifactType } ) , ... ( input . MetadataProperties !== undefined && input . MetadataProperties !== null && { MetadataProperties : serializeAws_json1_1MetadataProperties ( input . MetadataProperties , context ) , } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . Source !== undefined && input . Source !== null && { Source : serializeAws_json1_1ArtifactSource ( input . Source , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateAutoMLJobRequest = ( input , context ) : any => { return { ... ( input . AutoMLJobConfig !== undefined && input . AutoMLJobConfig !== null && { AutoMLJobConfig : serializeAws_json1_1AutoMLJobConfig ( input . AutoMLJobConfig , context ) , } ) , ... ( input . AutoMLJobName !== undefined && input . AutoMLJobName !== null && { AutoMLJobName : input . AutoMLJobName } ) , ... ( input . AutoMLJobObjective !== undefined && input . AutoMLJobObjective !== null && { AutoMLJobObjective : serializeAws_json1_1AutoMLJobObjective ( input . AutoMLJobObjective , context ) , } ) , ... ( input . GenerateCandidateDefinitionsOnly !== undefined && input . GenerateCandidateDefinitionsOnly !== null && { GenerateCandidateDefinitionsOnly : input . GenerateCandidateDefinitionsOnly , } ) , ... ( input . InputDataConfig !== undefined && input . InputDataConfig !== null && { InputDataConfig : serializeAws_json1_1AutoMLInputDataConfig ( input . InputDataConfig , context ) , } ) , ... ( input . ModelDeployConfig !== undefined && input . ModelDeployConfig !== null && { ModelDeployConfig : serializeAws_json1_1ModelDeployConfig ( input . ModelDeployConfig , context ) , } ) , ... ( input . OutputDataConfig !== undefined && input . OutputDataConfig !== null && { OutputDataConfig : serializeAws_json1_1AutoMLOutputDataConfig ( input . OutputDataConfig , context ) , } ) , ... ( input . ProblemType !== undefined && input . ProblemType !== null && { ProblemType : input . ProblemType } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateCodeRepositoryInput = ( input , context ) : any => { return { ... ( input . CodeRepositoryName !== undefined && input . CodeRepositoryName !== null && { CodeRepositoryName : input . CodeRepositoryName } ) , ... ( input . GitConfig !== undefined && input . GitConfig !== null && { GitConfig : serializeAws_json1_1GitConfig ( input . GitConfig , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateCompilationJobRequest = ( input , context ) : any => { return { ... ( input . CompilationJobName !== undefined && input . CompilationJobName !== null && { CompilationJobName : input . CompilationJobName } ) , ... ( input . InputConfig !== undefined && input . InputConfig !== null && { InputConfig : serializeAws_json1_1InputConfig ( input . InputConfig , context ) } ) , ... ( input . ModelPackageVersionArn !== undefined && input . ModelPackageVersionArn !== null && { ModelPackageVersionArn : input . ModelPackageVersionArn } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1OutputConfig ( input . OutputConfig , context ) } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1StoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1NeoVpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1CreateContextRequest = ( input , context ) : any => { return { ... ( input . ContextName !== undefined && input . ContextName !== null && { ContextName : input . ContextName } ) , ... ( input . ContextType !== undefined && input . ContextType !== null && { ContextType : input . ContextType } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . Source !== undefined && input . Source !== null && { Source : serializeAws_json1_1ContextSource ( input . Source , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateDataQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . DataQualityAppSpecification !== undefined && input . DataQualityAppSpecification !== null && { DataQualityAppSpecification : serializeAws_json1_1DataQualityAppSpecification ( input . DataQualityAppSpecification , context ) , } ) , ... ( input . DataQualityBaselineConfig !== undefined && input . DataQualityBaselineConfig !== null && { DataQualityBaselineConfig : serializeAws_json1_1DataQualityBaselineConfig ( input . DataQualityBaselineConfig , context ) , } ) , ... ( input . DataQualityJobInput !== undefined && input . DataQualityJobInput !== null && { DataQualityJobInput : serializeAws_json1_1DataQualityJobInput ( input . DataQualityJobInput , context ) , } ) , ... ( input . DataQualityJobOutputConfig !== undefined && input . DataQualityJobOutputConfig !== null && { DataQualityJobOutputConfig : serializeAws_json1_1MonitoringOutputConfig ( input . DataQualityJobOutputConfig , context ) , } ) , ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , ... ( input . JobResources !== undefined && input . JobResources !== null && { JobResources : serializeAws_json1_1MonitoringResources ( input . JobResources , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1MonitoringNetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1MonitoringStoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateDeviceFleetRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . EnableIotRoleAlias !== undefined && input . EnableIotRoleAlias !== null && { EnableIotRoleAlias : input . EnableIotRoleAlias } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1EdgeOutputConfig ( input . OutputConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateDomainRequest = ( input , context ) : any => { return { ... ( input . AppNetworkAccessType !== undefined && input . AppNetworkAccessType !== null && { AppNetworkAccessType : input . AppNetworkAccessType } ) , ... ( input . AppSecurityGroupManagement !== undefined && input . AppSecurityGroupManagement !== null && { AppSecurityGroupManagement : input . AppSecurityGroupManagement } ) , ... ( input . AuthMode !== undefined && input . AuthMode !== null && { AuthMode : input . AuthMode } ) , ... ( input . DefaultUserSettings !== undefined && input . DefaultUserSettings !== null && { DefaultUserSettings : serializeAws_json1_1UserSettings ( input . DefaultUserSettings , context ) , } ) , ... ( input . DomainName !== undefined && input . DomainName !== null && { DomainName : input . DomainName } ) , ... ( input . DomainSettings !== undefined && input . DomainSettings !== null && { DomainSettings : serializeAws_json1_1DomainSettings ( input . DomainSettings , context ) , } ) , ... ( input . HomeEfsFileSystemKmsKeyId !== undefined && input . HomeEfsFileSystemKmsKeyId !== null && { HomeEfsFileSystemKmsKeyId : input . HomeEfsFileSystemKmsKeyId } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . SubnetIds !== undefined && input . SubnetIds !== null && { SubnetIds : serializeAws_json1_1Subnets ( input . SubnetIds , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . VpcId !== undefined && input . VpcId !== null && { VpcId : input . VpcId } ) , } ; } ; const serializeAws_json1_1CreateEdgePackagingJobRequest = ( input , context ) : any => { return { ... ( input . CompilationJobName !== undefined && input . CompilationJobName !== null && { CompilationJobName : input . CompilationJobName } ) , ... ( input . EdgePackagingJobName !== undefined && input . EdgePackagingJobName !== null && { EdgePackagingJobName : input . EdgePackagingJobName } ) , ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , ... ( input . ModelVersion !== undefined && input . ModelVersion !== null && { ModelVersion : input . ModelVersion } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1EdgeOutputConfig ( input . OutputConfig , context ) , } ) , ... ( input . ResourceKey !== undefined && input . ResourceKey !== null && { ResourceKey : input . ResourceKey } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateEndpointConfigInput = ( input , context ) : any => { return { ... ( input . AsyncInferenceConfig !== undefined && input . AsyncInferenceConfig !== null && { AsyncInferenceConfig : serializeAws_json1_1AsyncInferenceConfig ( input . AsyncInferenceConfig , context ) , } ) , ... ( input . DataCaptureConfig !== undefined && input . DataCaptureConfig !== null && { DataCaptureConfig : serializeAws_json1_1DataCaptureConfig ( input . DataCaptureConfig , context ) , } ) , ... ( input . EndpointConfigName !== undefined && input . EndpointConfigName !== null && { EndpointConfigName : input . EndpointConfigName } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . ProductionVariants !== undefined && input . ProductionVariants !== null && { ProductionVariants : serializeAws_json1_1ProductionVariantList ( input . ProductionVariants , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateEndpointInput = ( input , context ) : any => { return { ... ( input . DeploymentConfig !== undefined && input . DeploymentConfig !== null && { DeploymentConfig : serializeAws_json1_1DeploymentConfig ( input . DeploymentConfig , context ) , } ) , ... ( input . EndpointConfigName !== undefined && input . EndpointConfigName !== null && { EndpointConfigName : input . EndpointConfigName } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateExperimentRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateFeatureGroupRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . EventTimeFeatureName !== undefined && input . EventTimeFeatureName !== null && { EventTimeFeatureName : input . EventTimeFeatureName } ) , ... ( input . FeatureDefinitions !== undefined && input . FeatureDefinitions !== null && { FeatureDefinitions : serializeAws_json1_1FeatureDefinitions ( input . FeatureDefinitions , context ) , } ) , ... ( input . FeatureGroupName !== undefined && input . FeatureGroupName !== null && { FeatureGroupName : input . FeatureGroupName } ) , ... ( input . OfflineStoreConfig !== undefined && input . OfflineStoreConfig !== null && { OfflineStoreConfig : serializeAws_json1_1OfflineStoreConfig ( input . OfflineStoreConfig , context ) , } ) , ... ( input . OnlineStoreConfig !== undefined && input . OnlineStoreConfig !== null && { OnlineStoreConfig : serializeAws_json1_1OnlineStoreConfig ( input . OnlineStoreConfig , context ) , } ) , ... ( input . RecordIdentifierFeatureName !== undefined && input . RecordIdentifierFeatureName !== null && { RecordIdentifierFeatureName : input . RecordIdentifierFeatureName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateFlowDefinitionRequest = ( input , context ) : any => { return { ... ( input . FlowDefinitionName !== undefined && input . FlowDefinitionName !== null && { FlowDefinitionName : input . FlowDefinitionName } ) , ... ( input . HumanLoopActivationConfig !== undefined && input . HumanLoopActivationConfig !== null && { HumanLoopActivationConfig : serializeAws_json1_1HumanLoopActivationConfig ( input . HumanLoopActivationConfig , context ) , } ) , ... ( input . HumanLoopConfig !== undefined && input . HumanLoopConfig !== null && { HumanLoopConfig : serializeAws_json1_1HumanLoopConfig ( input . HumanLoopConfig , context ) , } ) , ... ( input . HumanLoopRequestSource !== undefined && input . HumanLoopRequestSource !== null && { HumanLoopRequestSource : serializeAws_json1_1HumanLoopRequestSource ( input . HumanLoopRequestSource , context ) , } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1FlowDefinitionOutputConfig ( input . OutputConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateHumanTaskUiRequest = ( input , context ) : any => { return { ... ( input . HumanTaskUiName !== undefined && input . HumanTaskUiName !== null && { HumanTaskUiName : input . HumanTaskUiName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . UiTemplate !== undefined && input . UiTemplate !== null && { UiTemplate : serializeAws_json1_1UiTemplate ( input . UiTemplate , context ) } ) , } ; } ; const serializeAws_json1_1CreateHyperParameterTuningJobRequest = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobConfig !== undefined && input . HyperParameterTuningJobConfig !== null && { HyperParameterTuningJobConfig : serializeAws_json1_1HyperParameterTuningJobConfig ( input . HyperParameterTuningJobConfig , context ) , } ) , ... ( input . HyperParameterTuningJobName !== undefined && input . HyperParameterTuningJobName !== null && { HyperParameterTuningJobName : input . HyperParameterTuningJobName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TrainingJobDefinition !== undefined && input . TrainingJobDefinition !== null && { TrainingJobDefinition : serializeAws_json1_1HyperParameterTrainingJobDefinition ( input . TrainingJobDefinition , context ) , } ) , ... ( input . TrainingJobDefinitions !== undefined && input . TrainingJobDefinitions !== null && { TrainingJobDefinitions : serializeAws_json1_1HyperParameterTrainingJobDefinitions ( input . TrainingJobDefinitions , context ) , } ) , ... ( input . WarmStartConfig !== undefined && input . WarmStartConfig !== null && { WarmStartConfig : serializeAws_json1_1HyperParameterTuningJobWarmStartConfig ( input . WarmStartConfig , context ) , } ) , } ; } ; const serializeAws_json1_1CreateImageRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateImageVersionRequest = ( input , context ) : any => { return { ... ( input . BaseImage !== undefined && input . BaseImage !== null && { BaseImage : input . BaseImage } ) , ClientToken : input . ClientToken ?? generateIdempotencyToken ( ) , ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , } ; } ; const serializeAws_json1_1CreateInferenceRecommendationsJobRequest = ( input , context ) : any => { return { ... ( input . InputConfig !== undefined && input . InputConfig !== null && { InputConfig : serializeAws_json1_1RecommendationJobInputConfig ( input . InputConfig , context ) , } ) , ... ( input . JobDescription !== undefined && input . JobDescription !== null && { JobDescription : input . JobDescription } ) , ... ( input . JobName !== undefined && input . JobName !== null && { JobName : input . JobName } ) , ... ( input . JobType !== undefined && input . JobType !== null && { JobType : input . JobType } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingConditions !== undefined && input . StoppingConditions !== null && { StoppingConditions : serializeAws_json1_1RecommendationJobStoppingConditions ( input . StoppingConditions , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateLabelingJobRequest = ( input , context ) : any => { return { ... ( input . HumanTaskConfig !== undefined && input . HumanTaskConfig !== null && { HumanTaskConfig : serializeAws_json1_1HumanTaskConfig ( input . HumanTaskConfig , context ) , } ) , ... ( input . InputConfig !== undefined && input . InputConfig !== null && { InputConfig : serializeAws_json1_1LabelingJobInputConfig ( input . InputConfig , context ) , } ) , ... ( input . LabelAttributeName !== undefined && input . LabelAttributeName !== null && { LabelAttributeName : input . LabelAttributeName } ) , ... ( input . LabelCategoryConfigS3Uri !== undefined && input . LabelCategoryConfigS3Uri !== null && { LabelCategoryConfigS3Uri : input . LabelCategoryConfigS3Uri } ) , ... ( input . LabelingJobAlgorithmsConfig !== undefined && input . LabelingJobAlgorithmsConfig !== null && { LabelingJobAlgorithmsConfig : serializeAws_json1_1LabelingJobAlgorithmsConfig ( input . LabelingJobAlgorithmsConfig , context ) , } ) , ... ( input . LabelingJobName !== undefined && input . LabelingJobName !== null && { LabelingJobName : input . LabelingJobName } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1LabelingJobOutputConfig ( input . OutputConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingConditions !== undefined && input . StoppingConditions !== null && { StoppingConditions : serializeAws_json1_1LabelingJobStoppingConditions ( input . StoppingConditions , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateModelBiasJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , ... ( input . JobResources !== undefined && input . JobResources !== null && { JobResources : serializeAws_json1_1MonitoringResources ( input . JobResources , context ) , } ) , ... ( input . ModelBiasAppSpecification !== undefined && input . ModelBiasAppSpecification !== null && { ModelBiasAppSpecification : serializeAws_json1_1ModelBiasAppSpecification ( input . ModelBiasAppSpecification , context ) , } ) , ... ( input . ModelBiasBaselineConfig !== undefined && input . ModelBiasBaselineConfig !== null && { ModelBiasBaselineConfig : serializeAws_json1_1ModelBiasBaselineConfig ( input . ModelBiasBaselineConfig , context ) , } ) , ... ( input . ModelBiasJobInput !== undefined && input . ModelBiasJobInput !== null && { ModelBiasJobInput : serializeAws_json1_1ModelBiasJobInput ( input . ModelBiasJobInput , context ) , } ) , ... ( input . ModelBiasJobOutputConfig !== undefined && input . ModelBiasJobOutputConfig !== null && { ModelBiasJobOutputConfig : serializeAws_json1_1MonitoringOutputConfig ( input . ModelBiasJobOutputConfig , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1MonitoringNetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1MonitoringStoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateModelExplainabilityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , ... ( input . JobResources !== undefined && input . JobResources !== null && { JobResources : serializeAws_json1_1MonitoringResources ( input . JobResources , context ) , } ) , ... ( input . ModelExplainabilityAppSpecification !== undefined && input . ModelExplainabilityAppSpecification !== null && { ModelExplainabilityAppSpecification : serializeAws_json1_1ModelExplainabilityAppSpecification ( input . ModelExplainabilityAppSpecification , context ) , } ) , ... ( input . ModelExplainabilityBaselineConfig !== undefined && input . ModelExplainabilityBaselineConfig !== null && { ModelExplainabilityBaselineConfig : serializeAws_json1_1ModelExplainabilityBaselineConfig ( input . ModelExplainabilityBaselineConfig , context ) , } ) , ... ( input . ModelExplainabilityJobInput !== undefined && input . ModelExplainabilityJobInput !== null && { ModelExplainabilityJobInput : serializeAws_json1_1ModelExplainabilityJobInput ( input . ModelExplainabilityJobInput , context ) , } ) , ... ( input . ModelExplainabilityJobOutputConfig !== undefined && input . ModelExplainabilityJobOutputConfig !== null && { ModelExplainabilityJobOutputConfig : serializeAws_json1_1MonitoringOutputConfig ( input . ModelExplainabilityJobOutputConfig , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1MonitoringNetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1MonitoringStoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateModelInput = ( input , context ) : any => { return { ... ( input . Containers !== undefined && input . Containers !== null && { Containers : serializeAws_json1_1ContainerDefinitionList ( input . Containers , context ) , } ) , ... ( input . EnableNetworkIsolation !== undefined && input . EnableNetworkIsolation !== null && { EnableNetworkIsolation : input . EnableNetworkIsolation } ) , ... ( input . ExecutionRoleArn !== undefined && input . ExecutionRoleArn !== null && { ExecutionRoleArn : input . ExecutionRoleArn } ) , ... ( input . InferenceExecutionConfig !== undefined && input . InferenceExecutionConfig !== null && { InferenceExecutionConfig : serializeAws_json1_1InferenceExecutionConfig ( input . InferenceExecutionConfig , context ) , } ) , ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , ... ( input . PrimaryContainer !== undefined && input . PrimaryContainer !== null && { PrimaryContainer : serializeAws_json1_1ContainerDefinition ( input . PrimaryContainer , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1CreateModelPackageGroupInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupDescription !== undefined && input . ModelPackageGroupDescription !== null && { ModelPackageGroupDescription : input . ModelPackageGroupDescription , } ) , ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateModelPackageInput = ( input , context ) : any => { return { ... ( input . AdditionalInferenceSpecifications !== undefined && input . AdditionalInferenceSpecifications !== null && { AdditionalInferenceSpecifications : serializeAws_json1_1AdditionalInferenceSpecifications ( input . AdditionalInferenceSpecifications , context ) , } ) , ... ( input . CertifyForMarketplace !== undefined && input . CertifyForMarketplace !== null && { CertifyForMarketplace : input . CertifyForMarketplace } ) , ClientToken : input . ClientToken ?? generateIdempotencyToken ( ) , ... ( input . CustomerMetadataProperties !== undefined && input . CustomerMetadataProperties !== null && { CustomerMetadataProperties : serializeAws_json1_1CustomerMetadataMap ( input . CustomerMetadataProperties , context ) , } ) , ... ( input . Domain !== undefined && input . Domain !== null && { Domain : input . Domain } ) , ... ( input . DriftCheckBaselines !== undefined && input . DriftCheckBaselines !== null && { DriftCheckBaselines : serializeAws_json1_1DriftCheckBaselines ( input . DriftCheckBaselines , context ) , } ) , ... ( input . InferenceSpecification !== undefined && input . InferenceSpecification !== null && { InferenceSpecification : serializeAws_json1_1InferenceSpecification ( input . InferenceSpecification , context ) , } ) , ... ( input . MetadataProperties !== undefined && input . MetadataProperties !== null && { MetadataProperties : serializeAws_json1_1MetadataProperties ( input . MetadataProperties , context ) , } ) , ... ( input . ModelApprovalStatus !== undefined && input . ModelApprovalStatus !== null && { ModelApprovalStatus : input . ModelApprovalStatus } ) , ... ( input . ModelMetrics !== undefined && input . ModelMetrics !== null && { ModelMetrics : serializeAws_json1_1ModelMetrics ( input . ModelMetrics , context ) } ) , ... ( input . ModelPackageDescription !== undefined && input . ModelPackageDescription !== null && { ModelPackageDescription : input . ModelPackageDescription } ) , ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , ... ( input . ModelPackageName !== undefined && input . ModelPackageName !== null && { ModelPackageName : input . ModelPackageName } ) , ... ( input . SamplePayloadUrl !== undefined && input . SamplePayloadUrl !== null && { SamplePayloadUrl : input . SamplePayloadUrl } ) , ... ( input . SourceAlgorithmSpecification !== undefined && input . SourceAlgorithmSpecification !== null && { SourceAlgorithmSpecification : serializeAws_json1_1SourceAlgorithmSpecification ( input . SourceAlgorithmSpecification , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . Task !== undefined && input . Task !== null && { Task : input . Task } ) , ... ( input . ValidationSpecification !== undefined && input . ValidationSpecification !== null && { ValidationSpecification : serializeAws_json1_1ModelPackageValidationSpecification ( input . ValidationSpecification , context ) , } ) , } ; } ; const serializeAws_json1_1CreateModelQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , ... ( input . JobResources !== undefined && input . JobResources !== null && { JobResources : serializeAws_json1_1MonitoringResources ( input . JobResources , context ) , } ) , ... ( input . ModelQualityAppSpecification !== undefined && input . ModelQualityAppSpecification !== null && { ModelQualityAppSpecification : serializeAws_json1_1ModelQualityAppSpecification ( input . ModelQualityAppSpecification , context ) , } ) , ... ( input . ModelQualityBaselineConfig !== undefined && input . ModelQualityBaselineConfig !== null && { ModelQualityBaselineConfig : serializeAws_json1_1ModelQualityBaselineConfig ( input . ModelQualityBaselineConfig , context ) , } ) , ... ( input . ModelQualityJobInput !== undefined && input . ModelQualityJobInput !== null && { ModelQualityJobInput : serializeAws_json1_1ModelQualityJobInput ( input . ModelQualityJobInput , context ) , } ) , ... ( input . ModelQualityJobOutputConfig !== undefined && input . ModelQualityJobOutputConfig !== null && { ModelQualityJobOutputConfig : serializeAws_json1_1MonitoringOutputConfig ( input . ModelQualityJobOutputConfig , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1MonitoringNetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1MonitoringStoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleConfig !== undefined && input . MonitoringScheduleConfig !== null && { MonitoringScheduleConfig : serializeAws_json1_1MonitoringScheduleConfig ( input . MonitoringScheduleConfig , context ) , } ) , ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . AcceleratorTypes !== undefined && input . AcceleratorTypes !== null && { AcceleratorTypes : serializeAws_json1_1NotebookInstanceAcceleratorTypes ( input . AcceleratorTypes , context ) , } ) , ... ( input . AdditionalCodeRepositories !== undefined && input . AdditionalCodeRepositories !== null && { AdditionalCodeRepositories : serializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls ( input . AdditionalCodeRepositories , context ) , } ) , ... ( input . DefaultCodeRepository !== undefined && input . DefaultCodeRepository !== null && { DefaultCodeRepository : input . DefaultCodeRepository } ) , ... ( input . DirectInternetAccess !== undefined && input . DirectInternetAccess !== null && { DirectInternetAccess : input . DirectInternetAccess } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . LifecycleConfigName !== undefined && input . LifecycleConfigName !== null && { LifecycleConfigName : input . LifecycleConfigName } ) , ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , ... ( input . PlatformIdentifier !== undefined && input . PlatformIdentifier !== null && { PlatformIdentifier : input . PlatformIdentifier } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . RootAccess !== undefined && input . RootAccess !== null && { RootAccess : input . RootAccess } ) , ... ( input . SecurityGroupIds !== undefined && input . SecurityGroupIds !== null && { SecurityGroupIds : serializeAws_json1_1SecurityGroupIds ( input . SecurityGroupIds , context ) , } ) , ... ( input . SubnetId !== undefined && input . SubnetId !== null && { SubnetId : input . SubnetId } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1CreateNotebookInstanceLifecycleConfigInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceLifecycleConfigName !== undefined && input . NotebookInstanceLifecycleConfigName !== null && { NotebookInstanceLifecycleConfigName : input . NotebookInstanceLifecycleConfigName , } ) , ... ( input . OnCreate !== undefined && input . OnCreate !== null && { OnCreate : serializeAws_json1_1NotebookInstanceLifecycleConfigList ( input . OnCreate , context ) , } ) , ... ( input . OnStart !== undefined && input . OnStart !== null && { OnStart : serializeAws_json1_1NotebookInstanceLifecycleConfigList ( input . OnStart , context ) , } ) , } ; } ; const serializeAws_json1_1CreatePipelineRequest = ( input , context ) : any => { return { ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . ParallelismConfiguration !== undefined && input . ParallelismConfiguration !== null && { ParallelismConfiguration : serializeAws_json1_1ParallelismConfiguration ( input . ParallelismConfiguration , context ) , } ) , ... ( input . PipelineDefinition !== undefined && input . PipelineDefinition !== null && { PipelineDefinition : input . PipelineDefinition } ) , ... ( input . PipelineDefinitionS3Location !== undefined && input . PipelineDefinitionS3Location !== null && { PipelineDefinitionS3Location : serializeAws_json1_1PipelineDefinitionS3Location ( input . PipelineDefinitionS3Location , context ) , } ) , ... ( input . PipelineDescription !== undefined && input . PipelineDescription !== null && { PipelineDescription : input . PipelineDescription } ) , ... ( input . PipelineDisplayName !== undefined && input . PipelineDisplayName !== null && { PipelineDisplayName : input . PipelineDisplayName } ) , ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreatePresignedDomainUrlRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . ExpiresInSeconds !== undefined && input . ExpiresInSeconds !== null && { ExpiresInSeconds : input . ExpiresInSeconds } ) , ... ( input . SessionExpirationDurationInSeconds !== undefined && input . SessionExpirationDurationInSeconds !== null && { SessionExpirationDurationInSeconds : input . SessionExpirationDurationInSeconds , } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1CreatePresignedNotebookInstanceUrlInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , ... ( input . SessionExpirationDurationInSeconds !== undefined && input . SessionExpirationDurationInSeconds !== null && { SessionExpirationDurationInSeconds : input . SessionExpirationDurationInSeconds , } ) , } ; } ; const serializeAws_json1_1CreateProcessingJobRequest = ( input , context ) : any => { return { ... ( input . AppSpecification !== undefined && input . AppSpecification !== null && { AppSpecification : serializeAws_json1_1AppSpecification ( input . AppSpecification , context ) , } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1ProcessingEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ExperimentConfig !== undefined && input . ExperimentConfig !== null && { ExperimentConfig : serializeAws_json1_1ExperimentConfig ( input . ExperimentConfig , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1NetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . ProcessingInputs !== undefined && input . ProcessingInputs !== null && { ProcessingInputs : serializeAws_json1_1ProcessingInputs ( input . ProcessingInputs , context ) , } ) , ... ( input . ProcessingJobName !== undefined && input . ProcessingJobName !== null && { ProcessingJobName : input . ProcessingJobName } ) , ... ( input . ProcessingOutputConfig !== undefined && input . ProcessingOutputConfig !== null && { ProcessingOutputConfig : serializeAws_json1_1ProcessingOutputConfig ( input . ProcessingOutputConfig , context ) , } ) , ... ( input . ProcessingResources !== undefined && input . ProcessingResources !== null && { ProcessingResources : serializeAws_json1_1ProcessingResources ( input . ProcessingResources , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1ProcessingStoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateProjectInput = ( input , context ) : any => { return { ... ( input . ProjectDescription !== undefined && input . ProjectDescription !== null && { ProjectDescription : input . ProjectDescription } ) , ... ( input . ProjectName !== undefined && input . ProjectName !== null && { ProjectName : input . ProjectName } ) , ... ( input . ServiceCatalogProvisioningDetails !== undefined && input . ServiceCatalogProvisioningDetails !== null && { ServiceCatalogProvisioningDetails : serializeAws_json1_1ServiceCatalogProvisioningDetails ( input . ServiceCatalogProvisioningDetails , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateStudioLifecycleConfigRequest = ( input , context ) : any => { return { ... ( input . StudioLifecycleConfigAppType !== undefined && input . StudioLifecycleConfigAppType !== null && { StudioLifecycleConfigAppType : input . StudioLifecycleConfigAppType , } ) , ... ( input . StudioLifecycleConfigContent !== undefined && input . StudioLifecycleConfigContent !== null && { StudioLifecycleConfigContent : input . StudioLifecycleConfigContent , } ) , ... ( input . StudioLifecycleConfigName !== undefined && input . StudioLifecycleConfigName !== null && { StudioLifecycleConfigName : input . StudioLifecycleConfigName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1CreateTrainingJobRequest = ( input , context ) : any => { return { ... ( input . AlgorithmSpecification !== undefined && input . AlgorithmSpecification !== null && { AlgorithmSpecification : serializeAws_json1_1AlgorithmSpecification ( input . AlgorithmSpecification , context ) , } ) , ... ( input . CheckpointConfig !== undefined && input . CheckpointConfig !== null && { CheckpointConfig : serializeAws_json1_1CheckpointConfig ( input . CheckpointConfig , context ) , } ) , ... ( input . DebugHookConfig !== undefined && input . DebugHookConfig !== null && { DebugHookConfig : serializeAws_json1_1DebugHookConfig ( input . DebugHookConfig , context ) , } ) , ... ( input . DebugRuleConfigurations !== undefined && input . DebugRuleConfigurations !== null && { DebugRuleConfigurations : serializeAws_json1_1DebugRuleConfigurations ( input . DebugRuleConfigurations , context ) , } ) , ... ( input . EnableInterContainerTrafficEncryption !== undefined && input . EnableInterContainerTrafficEncryption !== null && { EnableInterContainerTrafficEncryption : input . EnableInterContainerTrafficEncryption , } ) , ... ( input . EnableManagedSpotTraining !== undefined && input . EnableManagedSpotTraining !== null && { EnableManagedSpotTraining : input . EnableManagedSpotTraining } ) , ... ( input . EnableNetworkIsolation !== undefined && input . EnableNetworkIsolation !== null && { EnableNetworkIsolation : input . EnableNetworkIsolation } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1TrainingEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ExperimentConfig !== undefined && input . ExperimentConfig !== null && { ExperimentConfig : serializeAws_json1_1ExperimentConfig ( input . ExperimentConfig , context ) , } ) , ... ( input . HyperParameters !== undefined && input . HyperParameters !== null && { HyperParameters : serializeAws_json1_1HyperParameters ( input . HyperParameters , context ) , } ) , ... ( input . InputDataConfig !== undefined && input . InputDataConfig !== null && { InputDataConfig : serializeAws_json1_1InputDataConfig ( input . InputDataConfig , context ) , } ) , ... ( input . OutputDataConfig !== undefined && input . OutputDataConfig !== null && { OutputDataConfig : serializeAws_json1_1OutputDataConfig ( input . OutputDataConfig , context ) , } ) , ... ( input . ProfilerConfig !== undefined && input . ProfilerConfig !== null && { ProfilerConfig : serializeAws_json1_1ProfilerConfig ( input . ProfilerConfig , context ) , } ) , ... ( input . ProfilerRuleConfigurations !== undefined && input . ProfilerRuleConfigurations !== null && { ProfilerRuleConfigurations : serializeAws_json1_1ProfilerRuleConfigurations ( input . ProfilerRuleConfigurations , context ) , } ) , ... ( input . ResourceConfig !== undefined && input . ResourceConfig !== null && { ResourceConfig : serializeAws_json1_1ResourceConfig ( input . ResourceConfig , context ) , } ) , ... ( input . RetryStrategy !== undefined && input . RetryStrategy !== null && { RetryStrategy : serializeAws_json1_1RetryStrategy ( input . RetryStrategy , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1StoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TensorBoardOutputConfig !== undefined && input . TensorBoardOutputConfig !== null && { TensorBoardOutputConfig : serializeAws_json1_1TensorBoardOutputConfig ( input . TensorBoardOutputConfig , context ) , } ) , ... ( input . TrainingJobName !== undefined && input . TrainingJobName !== null && { TrainingJobName : input . TrainingJobName } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1CreateTransformJobRequest = ( input , context ) : any => { return { ... ( input . BatchStrategy !== undefined && input . BatchStrategy !== null && { BatchStrategy : input . BatchStrategy } ) , ... ( input . DataProcessing !== undefined && input . DataProcessing !== null && { DataProcessing : serializeAws_json1_1DataProcessing ( input . DataProcessing , context ) , } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1TransformEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ExperimentConfig !== undefined && input . ExperimentConfig !== null && { ExperimentConfig : serializeAws_json1_1ExperimentConfig ( input . ExperimentConfig , context ) , } ) , ... ( input . MaxConcurrentTransforms !== undefined && input . MaxConcurrentTransforms !== null && { MaxConcurrentTransforms : input . MaxConcurrentTransforms } ) , ... ( input . MaxPayloadInMB !== undefined && input . MaxPayloadInMB !== null && { MaxPayloadInMB : input . MaxPayloadInMB } ) , ... ( input . ModelClientConfig !== undefined && input . ModelClientConfig !== null && { ModelClientConfig : serializeAws_json1_1ModelClientConfig ( input . ModelClientConfig , context ) , } ) , ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TransformInput !== undefined && input . TransformInput !== null && { TransformInput : serializeAws_json1_1TransformInput ( input . TransformInput , context ) , } ) , ... ( input . TransformJobName !== undefined && input . TransformJobName !== null && { TransformJobName : input . TransformJobName } ) , ... ( input . TransformOutput !== undefined && input . TransformOutput !== null && { TransformOutput : serializeAws_json1_1TransformOutput ( input . TransformOutput , context ) , } ) , ... ( input . TransformResources !== undefined && input . TransformResources !== null && { TransformResources : serializeAws_json1_1TransformResources ( input . TransformResources , context ) , } ) , } ; } ; const serializeAws_json1_1CreateTrialComponentRequest = ( input , context ) : any => { return { ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . EndTime !== undefined && input . EndTime !== null && { EndTime : Math . round ( input . EndTime . getTime ( ) / 1000 ) } ) , ... ( input . InputArtifacts !== undefined && input . InputArtifacts !== null && { InputArtifacts : serializeAws_json1_1TrialComponentArtifacts ( input . InputArtifacts , context ) , } ) , ... ( input . MetadataProperties !== undefined && input . MetadataProperties !== null && { MetadataProperties : serializeAws_json1_1MetadataProperties ( input . MetadataProperties , context ) , } ) , ... ( input . OutputArtifacts !== undefined && input . OutputArtifacts !== null && { OutputArtifacts : serializeAws_json1_1TrialComponentArtifacts ( input . OutputArtifacts , context ) , } ) , ... ( input . Parameters !== undefined && input . Parameters !== null && { Parameters : serializeAws_json1_1TrialComponentParameters ( input . Parameters , context ) , } ) , ... ( input . StartTime !== undefined && input . StartTime !== null && { StartTime : Math . round ( input . StartTime . getTime ( ) / 1000 ) } ) , ... ( input . Status !== undefined && input . Status !== null && { Status : serializeAws_json1_1TrialComponentStatus ( input . Status , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , } ; } ; const serializeAws_json1_1CreateTrialRequest = ( input , context ) : any => { return { ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , ... ( input . MetadataProperties !== undefined && input . MetadataProperties !== null && { MetadataProperties : serializeAws_json1_1MetadataProperties ( input . MetadataProperties , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1CreateUserProfileRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . SingleSignOnUserIdentifier !== undefined && input . SingleSignOnUserIdentifier !== null && { SingleSignOnUserIdentifier : input . SingleSignOnUserIdentifier } ) , ... ( input . SingleSignOnUserValue !== undefined && input . SingleSignOnUserValue !== null && { SingleSignOnUserValue : input . SingleSignOnUserValue } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , ... ( input . UserSettings !== undefined && input . UserSettings !== null && { UserSettings : serializeAws_json1_1UserSettings ( input . UserSettings , context ) } ) , } ; } ; const serializeAws_json1_1CreateWorkforceRequest = ( input , context ) : any => { return { ... ( input . CognitoConfig !== undefined && input . CognitoConfig !== null && { CognitoConfig : serializeAws_json1_1CognitoConfig ( input . CognitoConfig , context ) , } ) , ... ( input . OidcConfig !== undefined && input . OidcConfig !== null && { OidcConfig : serializeAws_json1_1OidcConfig ( input . OidcConfig , context ) } ) , ... ( input . SourceIpConfig !== undefined && input . SourceIpConfig !== null && { SourceIpConfig : serializeAws_json1_1SourceIpConfig ( input . SourceIpConfig , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . WorkforceName !== undefined && input . WorkforceName !== null && { WorkforceName : input . WorkforceName } ) , } ; } ; const serializeAws_json1_1CreateWorkteamRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . MemberDefinitions !== undefined && input . MemberDefinitions !== null && { MemberDefinitions : serializeAws_json1_1MemberDefinitions ( input . MemberDefinitions , context ) , } ) , ... ( input . NotificationConfiguration !== undefined && input . NotificationConfiguration !== null && { NotificationConfiguration : serializeAws_json1_1NotificationConfiguration ( input . NotificationConfiguration , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , ... ( input . WorkforceName !== undefined && input . WorkforceName !== null && { WorkforceName : input . WorkforceName } ) , ... ( input . WorkteamName !== undefined && input . WorkteamName !== null && { WorkteamName : input . WorkteamName } ) , } ; } ; const serializeAws_json1_1CsvContentTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1CustomerMetadataKeyList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1CustomerMetadataMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1CustomImage = ( input , context ) : any => { return { ... ( input . AppImageConfigName !== undefined && input . AppImageConfigName !== null && { AppImageConfigName : input . AppImageConfigName } ) , ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . ImageVersionNumber !== undefined && input . ImageVersionNumber !== null && { ImageVersionNumber : input . ImageVersionNumber } ) , } ; } ; const serializeAws_json1_1CustomImages = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1CustomImage ( entry , context ) ; } ) ; } ; const serializeAws_json1_1DataCaptureConfig = ( input , context ) : any => { return { ... ( input . CaptureContentTypeHeader !== undefined && input . CaptureContentTypeHeader !== null && { CaptureContentTypeHeader : serializeAws_json1_1CaptureContentTypeHeader ( input . CaptureContentTypeHeader , context ) , } ) , ... ( input . CaptureOptions !== undefined && input . CaptureOptions !== null && { CaptureOptions : serializeAws_json1_1CaptureOptionList ( input . CaptureOptions , context ) , } ) , ... ( input . DestinationS3Uri !== undefined && input . DestinationS3Uri !== null && { DestinationS3Uri : input . DestinationS3Uri } ) , ... ( input . EnableCapture !== undefined && input . EnableCapture !== null && { EnableCapture : input . EnableCapture } ) , ... ( input . InitialSamplingPercentage !== undefined && input . InitialSamplingPercentage !== null && { InitialSamplingPercentage : input . InitialSamplingPercentage } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , } ; } ; const serializeAws_json1_1DataCatalogConfig = ( input , context ) : any => { return { ... ( input . Catalog !== undefined && input . Catalog !== null && { Catalog : input . Catalog } ) , ... ( input . Database !== undefined && input . Database !== null && { Database : input . Database } ) , ... ( input . TableName !== undefined && input . TableName !== null && { TableName : input . TableName } ) , } ; } ; const serializeAws_json1_1DataProcessing = ( input , context ) : any => { return { ... ( input . InputFilter !== undefined && input . InputFilter !== null && { InputFilter : input . InputFilter } ) , ... ( input . JoinSource !== undefined && input . JoinSource !== null && { JoinSource : input . JoinSource } ) , ... ( input . OutputFilter !== undefined && input . OutputFilter !== null && { OutputFilter : input . OutputFilter } ) , } ; } ; const serializeAws_json1_1DataQualityAppSpecification = ( input , context ) : any => { return { ... ( input . ContainerArguments !== undefined && input . ContainerArguments !== null && { ContainerArguments : serializeAws_json1_1MonitoringContainerArguments ( input . ContainerArguments , context ) , } ) , ... ( input . ContainerEntrypoint !== undefined && input . ContainerEntrypoint !== null && { ContainerEntrypoint : serializeAws_json1_1ContainerEntrypoint ( input . ContainerEntrypoint , context ) , } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1MonitoringEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , ... ( input . PostAnalyticsProcessorSourceUri !== undefined && input . PostAnalyticsProcessorSourceUri !== null && { PostAnalyticsProcessorSourceUri : input . PostAnalyticsProcessorSourceUri , } ) , ... ( input . RecordPreprocessorSourceUri !== undefined && input . RecordPreprocessorSourceUri !== null && { RecordPreprocessorSourceUri : input . RecordPreprocessorSourceUri } ) , } ; } ; const serializeAws_json1_1DataQualityBaselineConfig = ( input , context ) : any => { return { ... ( input . BaseliningJobName !== undefined && input . BaseliningJobName !== null && { BaseliningJobName : input . BaseliningJobName } ) , ... ( input . ConstraintsResource !== undefined && input . ConstraintsResource !== null && { ConstraintsResource : serializeAws_json1_1MonitoringConstraintsResource ( input . ConstraintsResource , context ) , } ) , ... ( input . StatisticsResource !== undefined && input . StatisticsResource !== null && { StatisticsResource : serializeAws_json1_1MonitoringStatisticsResource ( input . StatisticsResource , context ) , } ) , } ; } ; const serializeAws_json1_1DataQualityJobInput = ( input , context ) : any => { return { ... ( input . EndpointInput !== undefined && input . EndpointInput !== null && { EndpointInput : serializeAws_json1_1EndpointInput ( input . EndpointInput , context ) , } ) , } ; } ; const serializeAws_json1_1DatasetDefinition = ( input , context ) : any => { return { ... ( input . AthenaDatasetDefinition !== undefined && input . AthenaDatasetDefinition !== null && { AthenaDatasetDefinition : serializeAws_json1_1AthenaDatasetDefinition ( input . AthenaDatasetDefinition , context ) , } ) , ... ( input . DataDistributionType !== undefined && input . DataDistributionType !== null && { DataDistributionType : input . DataDistributionType } ) , ... ( input . InputMode !== undefined && input . InputMode !== null && { InputMode : input . InputMode } ) , ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . RedshiftDatasetDefinition !== undefined && input . RedshiftDatasetDefinition !== null && { RedshiftDatasetDefinition : serializeAws_json1_1RedshiftDatasetDefinition ( input . RedshiftDatasetDefinition , context ) , } ) , } ; } ; const serializeAws_json1_1DataSource = ( input , context ) : any => { return { ... ( input . FileSystemDataSource !== undefined && input . FileSystemDataSource !== null && { FileSystemDataSource : serializeAws_json1_1FileSystemDataSource ( input . FileSystemDataSource , context ) , } ) , ... ( input . S3DataSource !== undefined && input . S3DataSource !== null && { S3DataSource : serializeAws_json1_1S3DataSource ( input . S3DataSource , context ) } ) , } ; } ; const serializeAws_json1_1DebugHookConfig = ( input , context ) : any => { return { ... ( input . CollectionConfigurations !== undefined && input . CollectionConfigurations !== null && { CollectionConfigurations : serializeAws_json1_1CollectionConfigurations ( input . CollectionConfigurations , context ) , } ) , ... ( input . HookParameters !== undefined && input . HookParameters !== null && { HookParameters : serializeAws_json1_1HookParameters ( input . HookParameters , context ) , } ) , ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1DebugRuleConfiguration = ( input , context ) : any => { return { ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . RuleConfigurationName !== undefined && input . RuleConfigurationName !== null && { RuleConfigurationName : input . RuleConfigurationName } ) , ... ( input . RuleEvaluatorImage !== undefined && input . RuleEvaluatorImage !== null && { RuleEvaluatorImage : input . RuleEvaluatorImage } ) , ... ( input . RuleParameters !== undefined && input . RuleParameters !== null && { RuleParameters : serializeAws_json1_1RuleParameters ( input . RuleParameters , context ) , } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1DebugRuleConfigurations = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1DebugRuleConfiguration ( entry , context ) ; } ) ; } ; const serializeAws_json1_1DeleteActionRequest = ( input , context ) : any => { return { ... ( input . ActionName !== undefined && input . ActionName !== null && { ActionName : input . ActionName } ) , } ; } ; const serializeAws_json1_1DeleteAlgorithmInput = ( input , context ) : any => { return { ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , } ; } ; const serializeAws_json1_1DeleteAppImageConfigRequest = ( input , context ) : any => { return { ... ( input . AppImageConfigName !== undefined && input . AppImageConfigName !== null && { AppImageConfigName : input . AppImageConfigName } ) , } ; } ; const serializeAws_json1_1DeleteAppRequest = ( input , context ) : any => { return { ... ( input . AppName !== undefined && input . AppName !== null && { AppName : input . AppName } ) , ... ( input . AppType !== undefined && input . AppType !== null && { AppType : input . AppType } ) , ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1DeleteArtifactRequest = ( input , context ) : any => { return { ... ( input . ArtifactArn !== undefined && input . ArtifactArn !== null && { ArtifactArn : input . ArtifactArn } ) , ... ( input . Source !== undefined && input . Source !== null && { Source : serializeAws_json1_1ArtifactSource ( input . Source , context ) } ) , } ; } ; const serializeAws_json1_1DeleteAssociationRequest = ( input , context ) : any => { return { ... ( input . DestinationArn !== undefined && input . DestinationArn !== null && { DestinationArn : input . DestinationArn } ) , ... ( input . SourceArn !== undefined && input . SourceArn !== null && { SourceArn : input . SourceArn } ) , } ; } ; const serializeAws_json1_1DeleteCodeRepositoryInput = ( input , context ) : any => { return { ... ( input . CodeRepositoryName !== undefined && input . CodeRepositoryName !== null && { CodeRepositoryName : input . CodeRepositoryName } ) , } ; } ; const serializeAws_json1_1DeleteContextRequest = ( input , context ) : any => { return { ... ( input . ContextName !== undefined && input . ContextName !== null && { ContextName : input . ContextName } ) , } ; } ; const serializeAws_json1_1DeleteDataQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DeleteDeviceFleetRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , } ; } ; const serializeAws_json1_1DeleteDomainRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . RetentionPolicy !== undefined && input . RetentionPolicy !== null && { RetentionPolicy : serializeAws_json1_1RetentionPolicy ( input . RetentionPolicy , context ) , } ) , } ; } ; const serializeAws_json1_1DeleteEndpointConfigInput = ( input , context ) : any => { return { ... ( input . EndpointConfigName !== undefined && input . EndpointConfigName !== null && { EndpointConfigName : input . EndpointConfigName } ) , } ; } ; const serializeAws_json1_1DeleteEndpointInput = ( input , context ) : any => { return { ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , } ; } ; const serializeAws_json1_1DeleteExperimentRequest = ( input , context ) : any => { return { ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , } ; } ; const serializeAws_json1_1DeleteFeatureGroupRequest = ( input , context ) : any => { return { ... ( input . FeatureGroupName !== undefined && input . FeatureGroupName !== null && { FeatureGroupName : input . FeatureGroupName } ) , } ; } ; const serializeAws_json1_1DeleteFlowDefinitionRequest = ( input , context ) : any => { return { ... ( input . FlowDefinitionName !== undefined && input . FlowDefinitionName !== null && { FlowDefinitionName : input . FlowDefinitionName } ) , } ; } ; const serializeAws_json1_1DeleteHumanTaskUiRequest = ( input , context ) : any => { return { ... ( input . HumanTaskUiName !== undefined && input . HumanTaskUiName !== null && { HumanTaskUiName : input . HumanTaskUiName } ) , } ; } ; const serializeAws_json1_1DeleteImageRequest = ( input , context ) : any => { return { ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , } ; } ; const serializeAws_json1_1DeleteImageVersionRequest = ( input , context ) : any => { return { ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . Version !== undefined && input . Version !== null && { Version : input . Version } ) , } ; } ; const serializeAws_json1_1DeleteModelBiasJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DeleteModelExplainabilityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DeleteModelInput = ( input , context ) : any => { return { ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , } ; } ; const serializeAws_json1_1DeleteModelPackageGroupInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , } ; } ; const serializeAws_json1_1DeleteModelPackageGroupPolicyInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , } ; } ; const serializeAws_json1_1DeleteModelPackageInput = ( input , context ) : any => { return { ... ( input . ModelPackageName !== undefined && input . ModelPackageName !== null && { ModelPackageName : input . ModelPackageName } ) , } ; } ; const serializeAws_json1_1DeleteModelQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DeleteMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , } ; } ; const serializeAws_json1_1DeleteNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , } ; } ; const serializeAws_json1_1DeleteNotebookInstanceLifecycleConfigInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceLifecycleConfigName !== undefined && input . NotebookInstanceLifecycleConfigName !== null && { NotebookInstanceLifecycleConfigName : input . NotebookInstanceLifecycleConfigName , } ) , } ; } ; const serializeAws_json1_1DeletePipelineRequest = ( input , context ) : any => { return { ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , } ; } ; const serializeAws_json1_1DeleteProjectInput = ( input , context ) : any => { return { ... ( input . ProjectName !== undefined && input . ProjectName !== null && { ProjectName : input . ProjectName } ) , } ; } ; const serializeAws_json1_1DeleteStudioLifecycleConfigRequest = ( input , context ) : any => { return { ... ( input . StudioLifecycleConfigName !== undefined && input . StudioLifecycleConfigName !== null && { StudioLifecycleConfigName : input . StudioLifecycleConfigName } ) , } ; } ; const serializeAws_json1_1DeleteTagsInput = ( input , context ) : any => { return { ... ( input . ResourceArn !== undefined && input . ResourceArn !== null && { ResourceArn : input . ResourceArn } ) , ... ( input . TagKeys !== undefined && input . TagKeys !== null && { TagKeys : serializeAws_json1_1TagKeyList ( input . TagKeys , context ) } ) , } ; } ; const serializeAws_json1_1DeleteTrialComponentRequest = ( input , context ) : any => { return { ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , } ; } ; const serializeAws_json1_1DeleteTrialRequest = ( input , context ) : any => { return { ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1DeleteUserProfileRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1DeleteWorkforceRequest = ( input , context ) : any => { return { ... ( input . WorkforceName !== undefined && input . WorkforceName !== null && { WorkforceName : input . WorkforceName } ) , } ; } ; const serializeAws_json1_1DeleteWorkteamRequest = ( input , context ) : any => { return { ... ( input . WorkteamName !== undefined && input . WorkteamName !== null && { WorkteamName : input . WorkteamName } ) , } ; } ; const serializeAws_json1_1DeploymentConfig = ( input , context ) : any => { return { ... ( input . AutoRollbackConfiguration !== undefined && input . AutoRollbackConfiguration !== null && { AutoRollbackConfiguration : serializeAws_json1_1AutoRollbackConfig ( input . AutoRollbackConfiguration , context ) , } ) , ... ( input . BlueGreenUpdatePolicy !== undefined && input . BlueGreenUpdatePolicy !== null && { BlueGreenUpdatePolicy : serializeAws_json1_1BlueGreenUpdatePolicy ( input . BlueGreenUpdatePolicy , context ) , } ) , } ; } ; const serializeAws_json1_1DeregisterDevicesRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . DeviceNames !== undefined && input . DeviceNames !== null && { DeviceNames : serializeAws_json1_1DeviceNames ( input . DeviceNames , context ) } ) , } ; } ; const serializeAws_json1_1DescribeActionRequest = ( input , context ) : any => { return { ... ( input . ActionName !== undefined && input . ActionName !== null && { ActionName : input . ActionName } ) , } ; } ; const serializeAws_json1_1DescribeAlgorithmInput = ( input , context ) : any => { return { ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , } ; } ; const serializeAws_json1_1DescribeAppImageConfigRequest = ( input , context ) : any => { return { ... ( input . AppImageConfigName !== undefined && input . AppImageConfigName !== null && { AppImageConfigName : input . AppImageConfigName } ) , } ; } ; const serializeAws_json1_1DescribeAppRequest = ( input , context ) : any => { return { ... ( input . AppName !== undefined && input . AppName !== null && { AppName : input . AppName } ) , ... ( input . AppType !== undefined && input . AppType !== null && { AppType : input . AppType } ) , ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1DescribeArtifactRequest = ( input , context ) : any => { return { ... ( input . ArtifactArn !== undefined && input . ArtifactArn !== null && { ArtifactArn : input . ArtifactArn } ) , } ; } ; const serializeAws_json1_1DescribeAutoMLJobRequest = ( input , context ) : any => { return { ... ( input . AutoMLJobName !== undefined && input . AutoMLJobName !== null && { AutoMLJobName : input . AutoMLJobName } ) , } ; } ; const serializeAws_json1_1DescribeCodeRepositoryInput = ( input , context ) : any => { return { ... ( input . CodeRepositoryName !== undefined && input . CodeRepositoryName !== null && { CodeRepositoryName : input . CodeRepositoryName } ) , } ; } ; const serializeAws_json1_1DescribeCompilationJobRequest = ( input , context ) : any => { return { ... ( input . CompilationJobName !== undefined && input . CompilationJobName !== null && { CompilationJobName : input . CompilationJobName } ) , } ; } ; const serializeAws_json1_1DescribeContextRequest = ( input , context ) : any => { return { ... ( input . ContextName !== undefined && input . ContextName !== null && { ContextName : input . ContextName } ) , } ; } ; const serializeAws_json1_1DescribeDataQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DescribeDeviceFleetRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , } ; } ; const serializeAws_json1_1DescribeDeviceRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . DeviceName !== undefined && input . DeviceName !== null && { DeviceName : input . DeviceName } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , } ; } ; const serializeAws_json1_1DescribeDomainRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , } ; } ; const serializeAws_json1_1DescribeEdgePackagingJobRequest = ( input , context ) : any => { return { ... ( input . EdgePackagingJobName !== undefined && input . EdgePackagingJobName !== null && { EdgePackagingJobName : input . EdgePackagingJobName } ) , } ; } ; const serializeAws_json1_1DescribeEndpointConfigInput = ( input , context ) : any => { return { ... ( input . EndpointConfigName !== undefined && input . EndpointConfigName !== null && { EndpointConfigName : input . EndpointConfigName } ) , } ; } ; const serializeAws_json1_1DescribeEndpointInput = ( input , context ) : any => { return { ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , } ; } ; const serializeAws_json1_1DescribeExperimentRequest = ( input , context ) : any => { return { ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , } ; } ; const serializeAws_json1_1DescribeFeatureGroupRequest = ( input , context ) : any => { return { ... ( input . FeatureGroupName !== undefined && input . FeatureGroupName !== null && { FeatureGroupName : input . FeatureGroupName } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , } ; } ; const serializeAws_json1_1DescribeFlowDefinitionRequest = ( input , context ) : any => { return { ... ( input . FlowDefinitionName !== undefined && input . FlowDefinitionName !== null && { FlowDefinitionName : input . FlowDefinitionName } ) , } ; } ; const serializeAws_json1_1DescribeHumanTaskUiRequest = ( input , context ) : any => { return { ... ( input . HumanTaskUiName !== undefined && input . HumanTaskUiName !== null && { HumanTaskUiName : input . HumanTaskUiName } ) , } ; } ; const serializeAws_json1_1DescribeHyperParameterTuningJobRequest = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobName !== undefined && input . HyperParameterTuningJobName !== null && { HyperParameterTuningJobName : input . HyperParameterTuningJobName } ) , } ; } ; const serializeAws_json1_1DescribeImageRequest = ( input , context ) : any => { return { ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , } ; } ; const serializeAws_json1_1DescribeImageVersionRequest = ( input , context ) : any => { return { ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . Version !== undefined && input . Version !== null && { Version : input . Version } ) , } ; } ; const serializeAws_json1_1DescribeInferenceRecommendationsJobRequest = ( input , context ) : any => { return { ... ( input . JobName !== undefined && input . JobName !== null && { JobName : input . JobName } ) , } ; } ; const serializeAws_json1_1DescribeLabelingJobRequest = ( input , context ) : any => { return { ... ( input . LabelingJobName !== undefined && input . LabelingJobName !== null && { LabelingJobName : input . LabelingJobName } ) , } ; } ; const serializeAws_json1_1DescribeLineageGroupRequest = ( input , context ) : any => { return { ... ( input . LineageGroupName !== undefined && input . LineageGroupName !== null && { LineageGroupName : input . LineageGroupName } ) , } ; } ; const serializeAws_json1_1DescribeModelBiasJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DescribeModelExplainabilityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DescribeModelInput = ( input , context ) : any => { return { ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , } ; } ; const serializeAws_json1_1DescribeModelPackageGroupInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , } ; } ; const serializeAws_json1_1DescribeModelPackageInput = ( input , context ) : any => { return { ... ( input . ModelPackageName !== undefined && input . ModelPackageName !== null && { ModelPackageName : input . ModelPackageName } ) , } ; } ; const serializeAws_json1_1DescribeModelQualityJobDefinitionRequest = ( input , context ) : any => { return { ... ( input . JobDefinitionName !== undefined && input . JobDefinitionName !== null && { JobDefinitionName : input . JobDefinitionName } ) , } ; } ; const serializeAws_json1_1DescribeMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , } ; } ; const serializeAws_json1_1DescribeNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , } ; } ; const serializeAws_json1_1DescribeNotebookInstanceLifecycleConfigInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceLifecycleConfigName !== undefined && input . NotebookInstanceLifecycleConfigName !== null && { NotebookInstanceLifecycleConfigName : input . NotebookInstanceLifecycleConfigName , } ) , } ; } ; const serializeAws_json1_1DescribePipelineDefinitionForExecutionRequest = ( input , context ) : any => { return { ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , } ; } ; const serializeAws_json1_1DescribePipelineExecutionRequest = ( input , context ) : any => { return { ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , } ; } ; const serializeAws_json1_1DescribePipelineRequest = ( input , context ) : any => { return { ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , } ; } ; const serializeAws_json1_1DescribeProcessingJobRequest = ( input , context ) : any => { return { ... ( input . ProcessingJobName !== undefined && input . ProcessingJobName !== null && { ProcessingJobName : input . ProcessingJobName } ) , } ; } ; const serializeAws_json1_1DescribeProjectInput = ( input , context ) : any => { return { ... ( input . ProjectName !== undefined && input . ProjectName !== null && { ProjectName : input . ProjectName } ) , } ; } ; const serializeAws_json1_1DescribeStudioLifecycleConfigRequest = ( input , context ) : any => { return { ... ( input . StudioLifecycleConfigName !== undefined && input . StudioLifecycleConfigName !== null && { StudioLifecycleConfigName : input . StudioLifecycleConfigName } ) , } ; } ; const serializeAws_json1_1DescribeSubscribedWorkteamRequest = ( input , context ) : any => { return { ... ( input . WorkteamArn !== undefined && input . WorkteamArn !== null && { WorkteamArn : input . WorkteamArn } ) , } ; } ; const serializeAws_json1_1DescribeTrainingJobRequest = ( input , context ) : any => { return { ... ( input . TrainingJobName !== undefined && input . TrainingJobName !== null && { TrainingJobName : input . TrainingJobName } ) , } ; } ; const serializeAws_json1_1DescribeTransformJobRequest = ( input , context ) : any => { return { ... ( input . TransformJobName !== undefined && input . TransformJobName !== null && { TransformJobName : input . TransformJobName } ) , } ; } ; const serializeAws_json1_1DescribeTrialComponentRequest = ( input , context ) : any => { return { ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , } ; } ; const serializeAws_json1_1DescribeTrialRequest = ( input , context ) : any => { return { ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1DescribeUserProfileRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , } ; } ; const serializeAws_json1_1DescribeWorkforceRequest = ( input , context ) : any => { return { ... ( input . WorkforceName !== undefined && input . WorkforceName !== null && { WorkforceName : input . WorkforceName } ) , } ; } ; const serializeAws_json1_1DescribeWorkteamRequest = ( input , context ) : any => { return { ... ( input . WorkteamName !== undefined && input . WorkteamName !== null && { WorkteamName : input . WorkteamName } ) , } ; } ; const serializeAws_json1_1DesiredWeightAndCapacity = ( input , context ) : any => { return { ... ( input . DesiredInstanceCount !== undefined && input . DesiredInstanceCount !== null && { DesiredInstanceCount : input . DesiredInstanceCount } ) , ... ( input . DesiredWeight !== undefined && input . DesiredWeight !== null && { DesiredWeight : __serializeFloat ( input . DesiredWeight ) } ) , ... ( input . VariantName !== undefined && input . VariantName !== null && { VariantName : input . VariantName } ) , } ; } ; const serializeAws_json1_1DesiredWeightAndCapacityList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1DesiredWeightAndCapacity ( entry , context ) ; } ) ; } ; const serializeAws_json1_1Device = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DeviceName !== undefined && input . DeviceName !== null && { DeviceName : input . DeviceName } ) , ... ( input . IotThingName !== undefined && input . IotThingName !== null && { IotThingName : input . IotThingName } ) , } ; } ; const serializeAws_json1_1DeviceNames = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1Devices = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Device ( entry , context ) ; } ) ; } ; const serializeAws_json1_1DisableSagemakerServicecatalogPortfolioInput = ( input , context ) : any => { return { } ; } ; const serializeAws_json1_1DisassociateTrialComponentRequest = ( input , context ) : any => { return { ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1DomainSecurityGroupIds = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1DomainSettings = ( input , context ) : any => { return { ... ( input . RStudioServerProDomainSettings !== undefined && input . RStudioServerProDomainSettings !== null && { RStudioServerProDomainSettings : serializeAws_json1_1RStudioServerProDomainSettings ( input . RStudioServerProDomainSettings , context ) , } ) , ... ( input . SecurityGroupIds !== undefined && input . SecurityGroupIds !== null && { SecurityGroupIds : serializeAws_json1_1DomainSecurityGroupIds ( input . SecurityGroupIds , context ) , } ) , } ; } ; const serializeAws_json1_1DomainSettingsForUpdate = ( input , context ) : any => { return { ... ( input . RStudioServerProDomainSettingsForUpdate !== undefined && input . RStudioServerProDomainSettingsForUpdate !== null && { RStudioServerProDomainSettingsForUpdate : serializeAws_json1_1RStudioServerProDomainSettingsForUpdate ( input . RStudioServerProDomainSettingsForUpdate , context ) , } ) , } ; } ; const serializeAws_json1_1DriftCheckBaselines = ( input , context ) : any => { return { ... ( input . Bias !== undefined && input . Bias !== null && { Bias : serializeAws_json1_1DriftCheckBias ( input . Bias , context ) } ) , ... ( input . Explainability !== undefined && input . Explainability !== null && { Explainability : serializeAws_json1_1DriftCheckExplainability ( input . Explainability , context ) , } ) , ... ( input . ModelDataQuality !== undefined && input . ModelDataQuality !== null && { ModelDataQuality : serializeAws_json1_1DriftCheckModelDataQuality ( input . ModelDataQuality , context ) , } ) , ... ( input . ModelQuality !== undefined && input . ModelQuality !== null && { ModelQuality : serializeAws_json1_1DriftCheckModelQuality ( input . ModelQuality , context ) , } ) , } ; } ; const serializeAws_json1_1DriftCheckBias = ( input , context ) : any => { return { ... ( input . ConfigFile !== undefined && input . ConfigFile !== null && { ConfigFile : serializeAws_json1_1FileSource ( input . ConfigFile , context ) } ) , ... ( input . PostTrainingConstraints !== undefined && input . PostTrainingConstraints !== null && { PostTrainingConstraints : serializeAws_json1_1MetricsSource ( input . PostTrainingConstraints , context ) , } ) , ... ( input . PreTrainingConstraints !== undefined && input . PreTrainingConstraints !== null && { PreTrainingConstraints : serializeAws_json1_1MetricsSource ( input . PreTrainingConstraints , context ) , } ) , } ; } ; const serializeAws_json1_1DriftCheckExplainability = ( input , context ) : any => { return { ... ( input . ConfigFile !== undefined && input . ConfigFile !== null && { ConfigFile : serializeAws_json1_1FileSource ( input . ConfigFile , context ) } ) , ... ( input . Constraints !== undefined && input . Constraints !== null && { Constraints : serializeAws_json1_1MetricsSource ( input . Constraints , context ) } ) , } ; } ; const serializeAws_json1_1DriftCheckModelDataQuality = ( input , context ) : any => { return { ... ( input . Constraints !== undefined && input . Constraints !== null && { Constraints : serializeAws_json1_1MetricsSource ( input . Constraints , context ) } ) , ... ( input . Statistics !== undefined && input . Statistics !== null && { Statistics : serializeAws_json1_1MetricsSource ( input . Statistics , context ) } ) , } ; } ; const serializeAws_json1_1DriftCheckModelQuality = ( input , context ) : any => { return { ... ( input . Constraints !== undefined && input . Constraints !== null && { Constraints : serializeAws_json1_1MetricsSource ( input . Constraints , context ) } ) , ... ( input . Statistics !== undefined && input . Statistics !== null && { Statistics : serializeAws_json1_1MetricsSource ( input . Statistics , context ) } ) , } ; } ; const serializeAws_json1_1EdgeOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . PresetDeploymentConfig !== undefined && input . PresetDeploymentConfig !== null && { PresetDeploymentConfig : input . PresetDeploymentConfig } ) , ... ( input . PresetDeploymentType !== undefined && input . PresetDeploymentType !== null && { PresetDeploymentType : input . PresetDeploymentType } ) , ... ( input . S3OutputLocation !== undefined && input . S3OutputLocation !== null && { S3OutputLocation : input . S3OutputLocation } ) , } ; } ; const serializeAws_json1_1EnableSagemakerServicecatalogPortfolioInput = ( input , context ) : any => { return { } ; } ; const serializeAws_json1_1EndpointInput = ( input , context ) : any => { return { ... ( input . EndTimeOffset !== undefined && input . EndTimeOffset !== null && { EndTimeOffset : input . EndTimeOffset } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . FeaturesAttribute !== undefined && input . FeaturesAttribute !== null && { FeaturesAttribute : input . FeaturesAttribute } ) , ... ( input . InferenceAttribute !== undefined && input . InferenceAttribute !== null && { InferenceAttribute : input . InferenceAttribute } ) , ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . ProbabilityAttribute !== undefined && input . ProbabilityAttribute !== null && { ProbabilityAttribute : input . ProbabilityAttribute } ) , ... ( input . ProbabilityThresholdAttribute !== undefined && input . ProbabilityThresholdAttribute !== null && { ProbabilityThresholdAttribute : __serializeFloat ( input . ProbabilityThresholdAttribute ) , } ) , ... ( input . S3DataDistributionType !== undefined && input . S3DataDistributionType !== null && { S3DataDistributionType : input . S3DataDistributionType } ) , ... ( input . S3InputMode !== undefined && input . S3InputMode !== null && { S3InputMode : input . S3InputMode } ) , ... ( input . StartTimeOffset !== undefined && input . StartTimeOffset !== null && { StartTimeOffset : input . StartTimeOffset } ) , } ; } ; const serializeAws_json1_1EndpointInputConfiguration = ( input , context ) : any => { return { ... ( input . EnvironmentParameterRanges !== undefined && input . EnvironmentParameterRanges !== null && { EnvironmentParameterRanges : serializeAws_json1_1EnvironmentParameterRanges ( input . EnvironmentParameterRanges , context ) , } ) , ... ( input . InferenceSpecificationName !== undefined && input . InferenceSpecificationName !== null && { InferenceSpecificationName : input . InferenceSpecificationName } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , } ; } ; const serializeAws_json1_1EndpointInputConfigurations = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1EndpointInputConfiguration ( entry , context ) ; } ) ; } ; const serializeAws_json1_1EnvironmentMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1EnvironmentParameterRanges = ( input , context ) : any => { return { ... ( input . CategoricalParameterRanges !== undefined && input . CategoricalParameterRanges !== null && { CategoricalParameterRanges : serializeAws_json1_1CategoricalParameters ( input . CategoricalParameterRanges , context ) , } ) , } ; } ; const serializeAws_json1_1ExperimentConfig = ( input , context ) : any => { return { ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , ... ( input . TrialComponentDisplayName !== undefined && input . TrialComponentDisplayName !== null && { TrialComponentDisplayName : input . TrialComponentDisplayName } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1Explainability = ( input , context ) : any => { return { ... ( input . Report !== undefined && input . Report !== null && { Report : serializeAws_json1_1MetricsSource ( input . Report , context ) } ) , } ; } ; const serializeAws_json1_1FeatureDefinition = ( input , context ) : any => { return { ... ( input . FeatureName !== undefined && input . FeatureName !== null && { FeatureName : input . FeatureName } ) , ... ( input . FeatureType !== undefined && input . FeatureType !== null && { FeatureType : input . FeatureType } ) , } ; } ; const serializeAws_json1_1FeatureDefinitions = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1FeatureDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1FileSource = ( input , context ) : any => { return { ... ( input . ContentDigest !== undefined && input . ContentDigest !== null && { ContentDigest : input . ContentDigest } ) , ... ( input . ContentType !== undefined && input . ContentType !== null && { ContentType : input . ContentType } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1FileSystemConfig = ( input , context ) : any => { return { ... ( input . DefaultGid !== undefined && input . DefaultGid !== null && { DefaultGid : input . DefaultGid } ) , ... ( input . DefaultUid !== undefined && input . DefaultUid !== null && { DefaultUid : input . DefaultUid } ) , ... ( input . MountPath !== undefined && input . MountPath !== null && { MountPath : input . MountPath } ) , } ; } ; const serializeAws_json1_1FileSystemDataSource = ( input , context ) : any => { return { ... ( input . DirectoryPath !== undefined && input . DirectoryPath !== null && { DirectoryPath : input . DirectoryPath } ) , ... ( input . FileSystemAccessMode !== undefined && input . FileSystemAccessMode !== null && { FileSystemAccessMode : input . FileSystemAccessMode } ) , ... ( input . FileSystemId !== undefined && input . FileSystemId !== null && { FileSystemId : input . FileSystemId } ) , ... ( input . FileSystemType !== undefined && input . FileSystemType !== null && { FileSystemType : input . FileSystemType } ) , } ; } ; const serializeAws_json1_1Filter = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Operator !== undefined && input . Operator !== null && { Operator : input . Operator } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1FilterList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Filter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1FlowDefinitionOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1FlowDefinitionTaskKeywords = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1GetDeviceFleetReportRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , } ; } ; const serializeAws_json1_1GetLineageGroupPolicyRequest = ( input , context ) : any => { return { ... ( input . LineageGroupName !== undefined && input . LineageGroupName !== null && { LineageGroupName : input . LineageGroupName } ) , } ; } ; const serializeAws_json1_1GetModelPackageGroupPolicyInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , } ; } ; const serializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusInput = ( input , context ) : any => { return { } ; } ; const serializeAws_json1_1GetSearchSuggestionsRequest = ( input , context ) : any => { return { ... ( input . Resource !== undefined && input . Resource !== null && { Resource : input . Resource } ) , ... ( input . SuggestionQuery !== undefined && input . SuggestionQuery !== null && { SuggestionQuery : serializeAws_json1_1SuggestionQuery ( input . SuggestionQuery , context ) , } ) , } ; } ; const serializeAws_json1_1GitConfig = ( input , context ) : any => { return { ... ( input . Branch !== undefined && input . Branch !== null && { Branch : input . Branch } ) , ... ( input . RepositoryUrl !== undefined && input . RepositoryUrl !== null && { RepositoryUrl : input . RepositoryUrl } ) , ... ( input . SecretArn !== undefined && input . SecretArn !== null && { SecretArn : input . SecretArn } ) , } ; } ; const serializeAws_json1_1GitConfigForUpdate = ( input , context ) : any => { return { ... ( input . SecretArn !== undefined && input . SecretArn !== null && { SecretArn : input . SecretArn } ) , } ; } ; const serializeAws_json1_1Groups = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1HookParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1HumanLoopActivationConditionsConfig = ( input , context ) : any => { return { ... ( input . HumanLoopActivationConditions !== undefined && input . HumanLoopActivationConditions !== null && { HumanLoopActivationConditions : __LazyJsonString . fromObject ( input . HumanLoopActivationConditions ) , } ) , } ; } ; const serializeAws_json1_1HumanLoopActivationConfig = ( input , context ) : any => { return { ... ( input . HumanLoopActivationConditionsConfig !== undefined && input . HumanLoopActivationConditionsConfig !== null && { HumanLoopActivationConditionsConfig : serializeAws_json1_1HumanLoopActivationConditionsConfig ( input . HumanLoopActivationConditionsConfig , context ) , } ) , } ; } ; const serializeAws_json1_1HumanLoopConfig = ( input , context ) : any => { return { ... ( input . HumanTaskUiArn !== undefined && input . HumanTaskUiArn !== null && { HumanTaskUiArn : input . HumanTaskUiArn } ) , ... ( input . PublicWorkforceTaskPrice !== undefined && input . PublicWorkforceTaskPrice !== null && { PublicWorkforceTaskPrice : serializeAws_json1_1PublicWorkforceTaskPrice ( input . PublicWorkforceTaskPrice , context ) , } ) , ... ( input . TaskAvailabilityLifetimeInSeconds !== undefined && input . TaskAvailabilityLifetimeInSeconds !== null && { TaskAvailabilityLifetimeInSeconds : input . TaskAvailabilityLifetimeInSeconds , } ) , ... ( input . TaskCount !== undefined && input . TaskCount !== null && { TaskCount : input . TaskCount } ) , ... ( input . TaskDescription !== undefined && input . TaskDescription !== null && { TaskDescription : input . TaskDescription } ) , ... ( input . TaskKeywords !== undefined && input . TaskKeywords !== null && { TaskKeywords : serializeAws_json1_1FlowDefinitionTaskKeywords ( input . TaskKeywords , context ) , } ) , ... ( input . TaskTimeLimitInSeconds !== undefined && input . TaskTimeLimitInSeconds !== null && { TaskTimeLimitInSeconds : input . TaskTimeLimitInSeconds } ) , ... ( input . TaskTitle !== undefined && input . TaskTitle !== null && { TaskTitle : input . TaskTitle } ) , ... ( input . WorkteamArn !== undefined && input . WorkteamArn !== null && { WorkteamArn : input . WorkteamArn } ) , } ; } ; const serializeAws_json1_1HumanLoopRequestSource = ( input , context ) : any => { return { ... ( input . AwsManagedHumanLoopRequestSource !== undefined && input . AwsManagedHumanLoopRequestSource !== null && { AwsManagedHumanLoopRequestSource : input . AwsManagedHumanLoopRequestSource , } ) , } ; } ; const serializeAws_json1_1HumanTaskConfig = ( input , context ) : any => { return { ... ( input . AnnotationConsolidationConfig !== undefined && input . AnnotationConsolidationConfig !== null && { AnnotationConsolidationConfig : serializeAws_json1_1AnnotationConsolidationConfig ( input . AnnotationConsolidationConfig , context ) , } ) , ... ( input . MaxConcurrentTaskCount !== undefined && input . MaxConcurrentTaskCount !== null && { MaxConcurrentTaskCount : input . MaxConcurrentTaskCount } ) , ... ( input . NumberOfHumanWorkersPerDataObject !== undefined && input . NumberOfHumanWorkersPerDataObject !== null && { NumberOfHumanWorkersPerDataObject : input . NumberOfHumanWorkersPerDataObject , } ) , ... ( input . PreHumanTaskLambdaArn !== undefined && input . PreHumanTaskLambdaArn !== null && { PreHumanTaskLambdaArn : input . PreHumanTaskLambdaArn } ) , ... ( input . PublicWorkforceTaskPrice !== undefined && input . PublicWorkforceTaskPrice !== null && { PublicWorkforceTaskPrice : serializeAws_json1_1PublicWorkforceTaskPrice ( input . PublicWorkforceTaskPrice , context ) , } ) , ... ( input . TaskAvailabilityLifetimeInSeconds !== undefined && input . TaskAvailabilityLifetimeInSeconds !== null && { TaskAvailabilityLifetimeInSeconds : input . TaskAvailabilityLifetimeInSeconds , } ) , ... ( input . TaskDescription !== undefined && input . TaskDescription !== null && { TaskDescription : input . TaskDescription } ) , ... ( input . TaskKeywords !== undefined && input . TaskKeywords !== null && { TaskKeywords : serializeAws_json1_1TaskKeywords ( input . TaskKeywords , context ) } ) , ... ( input . TaskTimeLimitInSeconds !== undefined && input . TaskTimeLimitInSeconds !== null && { TaskTimeLimitInSeconds : input . TaskTimeLimitInSeconds } ) , ... ( input . TaskTitle !== undefined && input . TaskTitle !== null && { TaskTitle : input . TaskTitle } ) , ... ( input . UiConfig !== undefined && input . UiConfig !== null && { UiConfig : serializeAws_json1_1UiConfig ( input . UiConfig , context ) } ) , ... ( input . WorkteamArn !== undefined && input . WorkteamArn !== null && { WorkteamArn : input . WorkteamArn } ) , } ; } ; const serializeAws_json1_1HyperParameterAlgorithmSpecification = ( input , context ) : any => { return { ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , ... ( input . MetricDefinitions !== undefined && input . MetricDefinitions !== null && { MetricDefinitions : serializeAws_json1_1MetricDefinitionList ( input . MetricDefinitions , context ) , } ) , ... ( input . TrainingImage !== undefined && input . TrainingImage !== null && { TrainingImage : input . TrainingImage } ) , ... ( input . TrainingInputMode !== undefined && input . TrainingInputMode !== null && { TrainingInputMode : input . TrainingInputMode } ) , } ; } ; const serializeAws_json1_1HyperParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1HyperParameterSpecification = ( input , context ) : any => { return { ... ( input . DefaultValue !== undefined && input . DefaultValue !== null && { DefaultValue : input . DefaultValue } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . IsRequired !== undefined && input . IsRequired !== null && { IsRequired : input . IsRequired } ) , ... ( input . IsTunable !== undefined && input . IsTunable !== null && { IsTunable : input . IsTunable } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Range !== undefined && input . Range !== null && { Range : serializeAws_json1_1ParameterRange ( input . Range , context ) } ) , ... ( input . Type !== undefined && input . Type !== null && { Type : input . Type } ) , } ; } ; const serializeAws_json1_1HyperParameterSpecifications = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1HyperParameterSpecification ( entry , context ) ; } ) ; } ; const serializeAws_json1_1HyperParameterTrainingJobDefinition = ( input , context ) : any => { return { ... ( input . AlgorithmSpecification !== undefined && input . AlgorithmSpecification !== null && { AlgorithmSpecification : serializeAws_json1_1HyperParameterAlgorithmSpecification ( input . AlgorithmSpecification , context ) , } ) , ... ( input . CheckpointConfig !== undefined && input . CheckpointConfig !== null && { CheckpointConfig : serializeAws_json1_1CheckpointConfig ( input . CheckpointConfig , context ) , } ) , ... ( input . DefinitionName !== undefined && input . DefinitionName !== null && { DefinitionName : input . DefinitionName } ) , ... ( input . EnableInterContainerTrafficEncryption !== undefined && input . EnableInterContainerTrafficEncryption !== null && { EnableInterContainerTrafficEncryption : input . EnableInterContainerTrafficEncryption , } ) , ... ( input . EnableManagedSpotTraining !== undefined && input . EnableManagedSpotTraining !== null && { EnableManagedSpotTraining : input . EnableManagedSpotTraining } ) , ... ( input . EnableNetworkIsolation !== undefined && input . EnableNetworkIsolation !== null && { EnableNetworkIsolation : input . EnableNetworkIsolation } ) , ... ( input . HyperParameterRanges !== undefined && input . HyperParameterRanges !== null && { HyperParameterRanges : serializeAws_json1_1ParameterRanges ( input . HyperParameterRanges , context ) , } ) , ... ( input . InputDataConfig !== undefined && input . InputDataConfig !== null && { InputDataConfig : serializeAws_json1_1InputDataConfig ( input . InputDataConfig , context ) , } ) , ... ( input . OutputDataConfig !== undefined && input . OutputDataConfig !== null && { OutputDataConfig : serializeAws_json1_1OutputDataConfig ( input . OutputDataConfig , context ) , } ) , ... ( input . ResourceConfig !== undefined && input . ResourceConfig !== null && { ResourceConfig : serializeAws_json1_1ResourceConfig ( input . ResourceConfig , context ) , } ) , ... ( input . RetryStrategy !== undefined && input . RetryStrategy !== null && { RetryStrategy : serializeAws_json1_1RetryStrategy ( input . RetryStrategy , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StaticHyperParameters !== undefined && input . StaticHyperParameters !== null && { StaticHyperParameters : serializeAws_json1_1HyperParameters ( input . StaticHyperParameters , context ) , } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1StoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . TuningObjective !== undefined && input . TuningObjective !== null && { TuningObjective : serializeAws_json1_1HyperParameterTuningJobObjective ( input . TuningObjective , context ) , } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1HyperParameterTrainingJobDefinitions = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1HyperParameterTrainingJobDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1HyperParameterTuningJobConfig = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobObjective !== undefined && input . HyperParameterTuningJobObjective !== null && { HyperParameterTuningJobObjective : serializeAws_json1_1HyperParameterTuningJobObjective ( input . HyperParameterTuningJobObjective , context ) , } ) , ... ( input . ParameterRanges !== undefined && input . ParameterRanges !== null && { ParameterRanges : serializeAws_json1_1ParameterRanges ( input . ParameterRanges , context ) , } ) , ... ( input . ResourceLimits !== undefined && input . ResourceLimits !== null && { ResourceLimits : serializeAws_json1_1ResourceLimits ( input . ResourceLimits , context ) , } ) , ... ( input . Strategy !== undefined && input . Strategy !== null && { Strategy : input . Strategy } ) , ... ( input . TrainingJobEarlyStoppingType !== undefined && input . TrainingJobEarlyStoppingType !== null && { TrainingJobEarlyStoppingType : input . TrainingJobEarlyStoppingType , } ) , ... ( input . TuningJobCompletionCriteria !== undefined && input . TuningJobCompletionCriteria !== null && { TuningJobCompletionCriteria : serializeAws_json1_1TuningJobCompletionCriteria ( input . TuningJobCompletionCriteria , context ) , } ) , } ; } ; const serializeAws_json1_1HyperParameterTuningJobObjective = ( input , context ) : any => { return { ... ( input . MetricName !== undefined && input . MetricName !== null && { MetricName : input . MetricName } ) , ... ( input . Type !== undefined && input . Type !== null && { Type : input . Type } ) , } ; } ; const serializeAws_json1_1HyperParameterTuningJobObjectives = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1HyperParameterTuningJobObjective ( entry , context ) ; } ) ; } ; const serializeAws_json1_1HyperParameterTuningJobWarmStartConfig = ( input , context ) : any => { return { ... ( input . ParentHyperParameterTuningJobs !== undefined && input . ParentHyperParameterTuningJobs !== null && { ParentHyperParameterTuningJobs : serializeAws_json1_1ParentHyperParameterTuningJobs ( input . ParentHyperParameterTuningJobs , context ) , } ) , ... ( input . WarmStartType !== undefined && input . WarmStartType !== null && { WarmStartType : input . WarmStartType } ) , } ; } ; const serializeAws_json1_1ImageConfig = ( input , context ) : any => { return { ... ( input . RepositoryAccessMode !== undefined && input . RepositoryAccessMode !== null && { RepositoryAccessMode : input . RepositoryAccessMode } ) , ... ( input . RepositoryAuthConfig !== undefined && input . RepositoryAuthConfig !== null && { RepositoryAuthConfig : serializeAws_json1_1RepositoryAuthConfig ( input . RepositoryAuthConfig , context ) , } ) , } ; } ; const serializeAws_json1_1ImageDeletePropertyList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1InferenceExecutionConfig = ( input , context ) : any => { return { ... ( input . Mode !== undefined && input . Mode !== null && { Mode : input . Mode } ) , } ; } ; const serializeAws_json1_1InferenceSpecification = ( input , context ) : any => { return { ... ( input . Containers !== undefined && input . Containers !== null && { Containers : serializeAws_json1_1ModelPackageContainerDefinitionList ( input . Containers , context ) , } ) , ... ( input . SupportedContentTypes !== undefined && input . SupportedContentTypes !== null && { SupportedContentTypes : serializeAws_json1_1ContentTypes ( input . SupportedContentTypes , context ) , } ) , ... ( input . SupportedRealtimeInferenceInstanceTypes !== undefined && input . SupportedRealtimeInferenceInstanceTypes !== null && { SupportedRealtimeInferenceInstanceTypes : serializeAws_json1_1RealtimeInferenceInstanceTypes ( input . SupportedRealtimeInferenceInstanceTypes , context ) , } ) , ... ( input . SupportedResponseMIMETypes !== undefined && input . SupportedResponseMIMETypes !== null && { SupportedResponseMIMETypes : serializeAws_json1_1ResponseMIMETypes ( input . SupportedResponseMIMETypes , context ) , } ) , ... ( input . SupportedTransformInstanceTypes !== undefined && input . SupportedTransformInstanceTypes !== null && { SupportedTransformInstanceTypes : serializeAws_json1_1TransformInstanceTypes ( input . SupportedTransformInstanceTypes , context ) , } ) , } ; } ; const serializeAws_json1_1InputConfig = ( input , context ) : any => { return { ... ( input . DataInputConfig !== undefined && input . DataInputConfig !== null && { DataInputConfig : input . DataInputConfig } ) , ... ( input . Framework !== undefined && input . Framework !== null && { Framework : input . Framework } ) , ... ( input . FrameworkVersion !== undefined && input . FrameworkVersion !== null && { FrameworkVersion : input . FrameworkVersion } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1InputDataConfig = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Channel ( entry , context ) ; } ) ; } ; const serializeAws_json1_1InputModes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1IntegerParameterRange = ( input , context ) : any => { return { ... ( input . MaxValue !== undefined && input . MaxValue !== null && { MaxValue : input . MaxValue } ) , ... ( input . MinValue !== undefined && input . MinValue !== null && { MinValue : input . MinValue } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . ScalingType !== undefined && input . ScalingType !== null && { ScalingType : input . ScalingType } ) , } ; } ; const serializeAws_json1_1IntegerParameterRanges = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1IntegerParameterRange ( entry , context ) ; } ) ; } ; const serializeAws_json1_1IntegerParameterRangeSpecification = ( input , context ) : any => { return { ... ( input . MaxValue !== undefined && input . MaxValue !== null && { MaxValue : input . MaxValue } ) , ... ( input . MinValue !== undefined && input . MinValue !== null && { MinValue : input . MinValue } ) , } ; } ; const serializeAws_json1_1JsonContentTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1JupyterServerAppSettings = ( input , context ) : any => { return { ... ( input . DefaultResourceSpec !== undefined && input . DefaultResourceSpec !== null && { DefaultResourceSpec : serializeAws_json1_1ResourceSpec ( input . DefaultResourceSpec , context ) , } ) , ... ( input . LifecycleConfigArns !== undefined && input . LifecycleConfigArns !== null && { LifecycleConfigArns : serializeAws_json1_1LifecycleConfigArns ( input . LifecycleConfigArns , context ) , } ) , } ; } ; const serializeAws_json1_1KernelGatewayAppSettings = ( input , context ) : any => { return { ... ( input . CustomImages !== undefined && input . CustomImages !== null && { CustomImages : serializeAws_json1_1CustomImages ( input . CustomImages , context ) } ) , ... ( input . DefaultResourceSpec !== undefined && input . DefaultResourceSpec !== null && { DefaultResourceSpec : serializeAws_json1_1ResourceSpec ( input . DefaultResourceSpec , context ) , } ) , ... ( input . LifecycleConfigArns !== undefined && input . LifecycleConfigArns !== null && { LifecycleConfigArns : serializeAws_json1_1LifecycleConfigArns ( input . LifecycleConfigArns , context ) , } ) , } ; } ; const serializeAws_json1_1KernelGatewayImageConfig = ( input , context ) : any => { return { ... ( input . FileSystemConfig !== undefined && input . FileSystemConfig !== null && { FileSystemConfig : serializeAws_json1_1FileSystemConfig ( input . FileSystemConfig , context ) , } ) , ... ( input . KernelSpecs !== undefined && input . KernelSpecs !== null && { KernelSpecs : serializeAws_json1_1KernelSpecs ( input . KernelSpecs , context ) } ) , } ; } ; const serializeAws_json1_1KernelSpec = ( input , context ) : any => { return { ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , } ; } ; const serializeAws_json1_1KernelSpecs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1KernelSpec ( entry , context ) ; } ) ; } ; const serializeAws_json1_1LabelingJobAlgorithmsConfig = ( input , context ) : any => { return { ... ( input . InitialActiveLearningModelArn !== undefined && input . InitialActiveLearningModelArn !== null && { InitialActiveLearningModelArn : input . InitialActiveLearningModelArn , } ) , ... ( input . LabelingJobAlgorithmSpecificationArn !== undefined && input . LabelingJobAlgorithmSpecificationArn !== null && { LabelingJobAlgorithmSpecificationArn : input . LabelingJobAlgorithmSpecificationArn , } ) , ... ( input . LabelingJobResourceConfig !== undefined && input . LabelingJobResourceConfig !== null && { LabelingJobResourceConfig : serializeAws_json1_1LabelingJobResourceConfig ( input . LabelingJobResourceConfig , context ) , } ) , } ; } ; const serializeAws_json1_1LabelingJobDataAttributes = ( input , context ) : any => { return { ... ( input . ContentClassifiers !== undefined && input . ContentClassifiers !== null && { ContentClassifiers : serializeAws_json1_1ContentClassifiers ( input . ContentClassifiers , context ) , } ) , } ; } ; const serializeAws_json1_1LabelingJobDataSource = ( input , context ) : any => { return { ... ( input . S3DataSource !== undefined && input . S3DataSource !== null && { S3DataSource : serializeAws_json1_1LabelingJobS3DataSource ( input . S3DataSource , context ) , } ) , ... ( input . SnsDataSource !== undefined && input . SnsDataSource !== null && { SnsDataSource : serializeAws_json1_1LabelingJobSnsDataSource ( input . SnsDataSource , context ) , } ) , } ; } ; const serializeAws_json1_1LabelingJobInputConfig = ( input , context ) : any => { return { ... ( input . DataAttributes !== undefined && input . DataAttributes !== null && { DataAttributes : serializeAws_json1_1LabelingJobDataAttributes ( input . DataAttributes , context ) , } ) , ... ( input . DataSource !== undefined && input . DataSource !== null && { DataSource : serializeAws_json1_1LabelingJobDataSource ( input . DataSource , context ) , } ) , } ; } ; const serializeAws_json1_1LabelingJobOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , ... ( input . SnsTopicArn !== undefined && input . SnsTopicArn !== null && { SnsTopicArn : input . SnsTopicArn } ) , } ; } ; const serializeAws_json1_1LabelingJobResourceConfig = ( input , context ) : any => { return { ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , } ; } ; const serializeAws_json1_1LabelingJobS3DataSource = ( input , context ) : any => { return { ... ( input . ManifestS3Uri !== undefined && input . ManifestS3Uri !== null && { ManifestS3Uri : input . ManifestS3Uri } ) , } ; } ; const serializeAws_json1_1LabelingJobSnsDataSource = ( input , context ) : any => { return { ... ( input . SnsTopicArn !== undefined && input . SnsTopicArn !== null && { SnsTopicArn : input . SnsTopicArn } ) , } ; } ; const serializeAws_json1_1LabelingJobStoppingConditions = ( input , context ) : any => { return { ... ( input . MaxHumanLabeledObjectCount !== undefined && input . MaxHumanLabeledObjectCount !== null && { MaxHumanLabeledObjectCount : input . MaxHumanLabeledObjectCount } ) , ... ( input . MaxPercentageOfInputDatasetLabeled !== undefined && input . MaxPercentageOfInputDatasetLabeled !== null && { MaxPercentageOfInputDatasetLabeled : input . MaxPercentageOfInputDatasetLabeled , } ) , } ; } ; const serializeAws_json1_1LifecycleConfigArns = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1LineageEntityParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1ListActionsRequest = ( input , context ) : any => { return { ... ( input . ActionType !== undefined && input . ActionType !== null && { ActionType : input . ActionType } ) , ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1ListAlgorithmsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListAppImageConfigsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . ModifiedTimeAfter !== undefined && input . ModifiedTimeAfter !== null && { ModifiedTimeAfter : Math . round ( input . ModifiedTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . ModifiedTimeBefore !== undefined && input . ModifiedTimeBefore !== null && { ModifiedTimeBefore : Math . round ( input . ModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListAppsRequest = ( input , context ) : any => { return { ... ( input . DomainIdEquals !== undefined && input . DomainIdEquals !== null && { DomainIdEquals : input . DomainIdEquals } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . UserProfileNameEquals !== undefined && input . UserProfileNameEquals !== null && { UserProfileNameEquals : input . UserProfileNameEquals } ) , } ; } ; const serializeAws_json1_1ListArtifactsRequest = ( input , context ) : any => { return { ... ( input . ArtifactType !== undefined && input . ArtifactType !== null && { ArtifactType : input . ArtifactType } ) , ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1ListAssociationsRequest = ( input , context ) : any => { return { ... ( input . AssociationType !== undefined && input . AssociationType !== null && { AssociationType : input . AssociationType } ) , ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . DestinationArn !== undefined && input . DestinationArn !== null && { DestinationArn : input . DestinationArn } ) , ... ( input . DestinationType !== undefined && input . DestinationType !== null && { DestinationType : input . DestinationType } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . SourceArn !== undefined && input . SourceArn !== null && { SourceArn : input . SourceArn } ) , ... ( input . SourceType !== undefined && input . SourceType !== null && { SourceType : input . SourceType } ) , } ; } ; const serializeAws_json1_1ListAutoMLJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListCandidatesForAutoMLJobRequest = ( input , context ) : any => { return { ... ( input . AutoMLJobName !== undefined && input . AutoMLJobName !== null && { AutoMLJobName : input . AutoMLJobName } ) , ... ( input . CandidateNameEquals !== undefined && input . CandidateNameEquals !== null && { CandidateNameEquals : input . CandidateNameEquals } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListCodeRepositoriesInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListCompilationJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListContextsRequest = ( input , context ) : any => { return { ... ( input . ContextType !== undefined && input . ContextType !== null && { ContextType : input . ContextType } ) , ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . SourceUri !== undefined && input . SourceUri !== null && { SourceUri : input . SourceUri } ) , } ; } ; const serializeAws_json1_1ListDataQualityJobDefinitionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListDeviceFleetsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListDevicesRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . LatestHeartbeatAfter !== undefined && input . LatestHeartbeatAfter !== null && { LatestHeartbeatAfter : Math . round ( input . LatestHeartbeatAfter . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , } ; } ; const serializeAws_json1_1ListDomainsRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , } ; } ; const serializeAws_json1_1ListEdgePackagingJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . ModelNameContains !== undefined && input . ModelNameContains !== null && { ModelNameContains : input . ModelNameContains } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListEndpointConfigsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListEndpointsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListExperimentsRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListFeatureGroupsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . FeatureGroupStatusEquals !== undefined && input . FeatureGroupStatusEquals !== null && { FeatureGroupStatusEquals : input . FeatureGroupStatusEquals } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . OfflineStoreStatusEquals !== undefined && input . OfflineStoreStatusEquals !== null && { OfflineStoreStatusEquals : input . OfflineStoreStatusEquals } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListFlowDefinitionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListHumanTaskUisRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListHyperParameterTuningJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListImagesRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListImageVersionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListInferenceRecommendationsJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListLabelingJobsForWorkteamRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . JobReferenceCodeContains !== undefined && input . JobReferenceCodeContains !== null && { JobReferenceCodeContains : input . JobReferenceCodeContains } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . WorkteamArn !== undefined && input . WorkteamArn !== null && { WorkteamArn : input . WorkteamArn } ) , } ; } ; const serializeAws_json1_1ListLabelingJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListLineageEntityParameterKey = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ListLineageGroupsRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelBiasJobDefinitionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelExplainabilityJobDefinitionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelMetadataRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SearchExpression !== undefined && input . SearchExpression !== null && { SearchExpression : serializeAws_json1_1ModelMetadataSearchExpression ( input . SearchExpression , context ) , } ) , } ; } ; const serializeAws_json1_1ListModelPackageGroupsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelPackagesInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . ModelApprovalStatus !== undefined && input . ModelApprovalStatus !== null && { ModelApprovalStatus : input . ModelApprovalStatus } ) , ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , ... ( input . ModelPackageType !== undefined && input . ModelPackageType !== null && { ModelPackageType : input . ModelPackageType } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelQualityJobDefinitionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListModelsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListMonitoringExecutionsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . MonitoringJobDefinitionName !== undefined && input . MonitoringJobDefinitionName !== null && { MonitoringJobDefinitionName : input . MonitoringJobDefinitionName } ) , ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , ... ( input . MonitoringTypeEquals !== undefined && input . MonitoringTypeEquals !== null && { MonitoringTypeEquals : input . MonitoringTypeEquals } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . ScheduledTimeAfter !== undefined && input . ScheduledTimeAfter !== null && { ScheduledTimeAfter : Math . round ( input . ScheduledTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . ScheduledTimeBefore !== undefined && input . ScheduledTimeBefore !== null && { ScheduledTimeBefore : Math . round ( input . ScheduledTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListMonitoringSchedulesRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . MonitoringJobDefinitionName !== undefined && input . MonitoringJobDefinitionName !== null && { MonitoringJobDefinitionName : input . MonitoringJobDefinitionName } ) , ... ( input . MonitoringTypeEquals !== undefined && input . MonitoringTypeEquals !== null && { MonitoringTypeEquals : input . MonitoringTypeEquals } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListNotebookInstanceLifecycleConfigsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListNotebookInstancesInput = ( input , context ) : any => { return { ... ( input . AdditionalCodeRepositoryEquals !== undefined && input . AdditionalCodeRepositoryEquals !== null && { AdditionalCodeRepositoryEquals : input . AdditionalCodeRepositoryEquals , } ) , ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . DefaultCodeRepositoryContains !== undefined && input . DefaultCodeRepositoryContains !== null && { DefaultCodeRepositoryContains : input . DefaultCodeRepositoryContains , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . NotebookInstanceLifecycleConfigNameContains !== undefined && input . NotebookInstanceLifecycleConfigNameContains !== null && { NotebookInstanceLifecycleConfigNameContains : input . NotebookInstanceLifecycleConfigNameContains , } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListPipelineExecutionsRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListPipelineExecutionStepsRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListPipelineParametersForExecutionRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , } ; } ; const serializeAws_json1_1ListPipelinesRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . PipelineNamePrefix !== undefined && input . PipelineNamePrefix !== null && { PipelineNamePrefix : input . PipelineNamePrefix } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListProcessingJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListProjectsInput = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListStudioLifecycleConfigsRequest = ( input , context ) : any => { return { ... ( input . AppTypeEquals !== undefined && input . AppTypeEquals !== null && { AppTypeEquals : input . AppTypeEquals } ) , ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . ModifiedTimeAfter !== undefined && input . ModifiedTimeAfter !== null && { ModifiedTimeAfter : Math . round ( input . ModifiedTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . ModifiedTimeBefore !== undefined && input . ModifiedTimeBefore !== null && { ModifiedTimeBefore : Math . round ( input . ModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListSubscribedWorkteamsRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , } ; } ; const serializeAws_json1_1ListTagsInput = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . ResourceArn !== undefined && input . ResourceArn !== null && { ResourceArn : input . ResourceArn } ) , } ; } ; const serializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobRequest = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobName !== undefined && input . HyperParameterTuningJobName !== null && { HyperParameterTuningJobName : input . HyperParameterTuningJobName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListTrainingJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListTransformJobsRequest = ( input , context ) : any => { return { ... ( input . CreationTimeAfter !== undefined && input . CreationTimeAfter !== null && { CreationTimeAfter : Math . round ( input . CreationTimeAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreationTimeBefore !== undefined && input . CreationTimeBefore !== null && { CreationTimeBefore : Math . round ( input . CreationTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeAfter !== undefined && input . LastModifiedTimeAfter !== null && { LastModifiedTimeAfter : Math . round ( input . LastModifiedTimeAfter . getTime ( ) / 1000 ) , } ) , ... ( input . LastModifiedTimeBefore !== undefined && input . LastModifiedTimeBefore !== null && { LastModifiedTimeBefore : Math . round ( input . LastModifiedTimeBefore . getTime ( ) / 1000 ) , } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . StatusEquals !== undefined && input . StatusEquals !== null && { StatusEquals : input . StatusEquals } ) , } ; } ; const serializeAws_json1_1ListTrialComponentKey256 = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ListTrialComponentsRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . SourceArn !== undefined && input . SourceArn !== null && { SourceArn : input . SourceArn } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1ListTrialsRequest = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , } ; } ; const serializeAws_json1_1ListUserProfilesRequest = ( input , context ) : any => { return { ... ( input . DomainIdEquals !== undefined && input . DomainIdEquals !== null && { DomainIdEquals : input . DomainIdEquals } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , ... ( input . UserProfileNameContains !== undefined && input . UserProfileNameContains !== null && { UserProfileNameContains : input . UserProfileNameContains } ) , } ; } ; const serializeAws_json1_1ListWorkforcesRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1ListWorkteamsRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NameContains !== undefined && input . NameContains !== null && { NameContains : input . NameContains } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1MemberDefinition = ( input , context ) : any => { return { ... ( input . CognitoMemberDefinition !== undefined && input . CognitoMemberDefinition !== null && { CognitoMemberDefinition : serializeAws_json1_1CognitoMemberDefinition ( input . CognitoMemberDefinition , context ) , } ) , ... ( input . OidcMemberDefinition !== undefined && input . OidcMemberDefinition !== null && { OidcMemberDefinition : serializeAws_json1_1OidcMemberDefinition ( input . OidcMemberDefinition , context ) , } ) , } ; } ; const serializeAws_json1_1MemberDefinitions = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1MemberDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1MetadataProperties = ( input , context ) : any => { return { ... ( input . CommitId !== undefined && input . CommitId !== null && { CommitId : input . CommitId } ) , ... ( input . GeneratedBy !== undefined && input . GeneratedBy !== null && { GeneratedBy : input . GeneratedBy } ) , ... ( input . ProjectId !== undefined && input . ProjectId !== null && { ProjectId : input . ProjectId } ) , ... ( input . Repository !== undefined && input . Repository !== null && { Repository : input . Repository } ) , } ; } ; const serializeAws_json1_1MetricDefinition = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Regex !== undefined && input . Regex !== null && { Regex : input . Regex } ) , } ; } ; const serializeAws_json1_1MetricDefinitionList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1MetricDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1MetricsSource = ( input , context ) : any => { return { ... ( input . ContentDigest !== undefined && input . ContentDigest !== null && { ContentDigest : input . ContentDigest } ) , ... ( input . ContentType !== undefined && input . ContentType !== null && { ContentType : input . ContentType } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1ModelBiasAppSpecification = ( input , context ) : any => { return { ... ( input . ConfigUri !== undefined && input . ConfigUri !== null && { ConfigUri : input . ConfigUri } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1MonitoringEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , } ; } ; const serializeAws_json1_1ModelBiasBaselineConfig = ( input , context ) : any => { return { ... ( input . BaseliningJobName !== undefined && input . BaseliningJobName !== null && { BaseliningJobName : input . BaseliningJobName } ) , ... ( input . ConstraintsResource !== undefined && input . ConstraintsResource !== null && { ConstraintsResource : serializeAws_json1_1MonitoringConstraintsResource ( input . ConstraintsResource , context ) , } ) , } ; } ; const serializeAws_json1_1ModelBiasJobInput = ( input , context ) : any => { return { ... ( input . EndpointInput !== undefined && input . EndpointInput !== null && { EndpointInput : serializeAws_json1_1EndpointInput ( input . EndpointInput , context ) , } ) , ... ( input . GroundTruthS3Input !== undefined && input . GroundTruthS3Input !== null && { GroundTruthS3Input : serializeAws_json1_1MonitoringGroundTruthS3Input ( input . GroundTruthS3Input , context ) , } ) , } ; } ; const serializeAws_json1_1ModelClientConfig = ( input , context ) : any => { return { ... ( input . InvocationsMaxRetries !== undefined && input . InvocationsMaxRetries !== null && { InvocationsMaxRetries : input . InvocationsMaxRetries } ) , ... ( input . InvocationsTimeoutInSeconds !== undefined && input . InvocationsTimeoutInSeconds !== null && { InvocationsTimeoutInSeconds : input . InvocationsTimeoutInSeconds } ) , } ; } ; const serializeAws_json1_1ModelDataQuality = ( input , context ) : any => { return { ... ( input . Constraints !== undefined && input . Constraints !== null && { Constraints : serializeAws_json1_1MetricsSource ( input . Constraints , context ) } ) , ... ( input . Statistics !== undefined && input . Statistics !== null && { Statistics : serializeAws_json1_1MetricsSource ( input . Statistics , context ) } ) , } ; } ; const serializeAws_json1_1ModelDeployConfig = ( input , context ) : any => { return { ... ( input . AutoGenerateEndpointName !== undefined && input . AutoGenerateEndpointName !== null && { AutoGenerateEndpointName : input . AutoGenerateEndpointName } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , } ; } ; const serializeAws_json1_1ModelExplainabilityAppSpecification = ( input , context ) : any => { return { ... ( input . ConfigUri !== undefined && input . ConfigUri !== null && { ConfigUri : input . ConfigUri } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1MonitoringEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , } ; } ; const serializeAws_json1_1ModelExplainabilityBaselineConfig = ( input , context ) : any => { return { ... ( input . BaseliningJobName !== undefined && input . BaseliningJobName !== null && { BaseliningJobName : input . BaseliningJobName } ) , ... ( input . ConstraintsResource !== undefined && input . ConstraintsResource !== null && { ConstraintsResource : serializeAws_json1_1MonitoringConstraintsResource ( input . ConstraintsResource , context ) , } ) , } ; } ; const serializeAws_json1_1ModelExplainabilityJobInput = ( input , context ) : any => { return { ... ( input . EndpointInput !== undefined && input . EndpointInput !== null && { EndpointInput : serializeAws_json1_1EndpointInput ( input . EndpointInput , context ) , } ) , } ; } ; const serializeAws_json1_1ModelInput = ( input , context ) : any => { return { ... ( input . DataInputConfig !== undefined && input . DataInputConfig !== null && { DataInputConfig : input . DataInputConfig } ) , } ; } ; const serializeAws_json1_1ModelLatencyThreshold = ( input , context ) : any => { return { ... ( input . Percentile !== undefined && input . Percentile !== null && { Percentile : input . Percentile } ) , ... ( input . ValueInMilliseconds !== undefined && input . ValueInMilliseconds !== null && { ValueInMilliseconds : input . ValueInMilliseconds } ) , } ; } ; const serializeAws_json1_1ModelLatencyThresholds = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ModelLatencyThreshold ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ModelMetadataFilter = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1ModelMetadataFilters = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ModelMetadataFilter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ModelMetadataSearchExpression = ( input , context ) : any => { return { ... ( input . Filters !== undefined && input . Filters !== null && { Filters : serializeAws_json1_1ModelMetadataFilters ( input . Filters , context ) } ) , } ; } ; const serializeAws_json1_1ModelMetrics = ( input , context ) : any => { return { ... ( input . Bias !== undefined && input . Bias !== null && { Bias : serializeAws_json1_1Bias ( input . Bias , context ) } ) , ... ( input . Explainability !== undefined && input . Explainability !== null && { Explainability : serializeAws_json1_1Explainability ( input . Explainability , context ) , } ) , ... ( input . ModelDataQuality !== undefined && input . ModelDataQuality !== null && { ModelDataQuality : serializeAws_json1_1ModelDataQuality ( input . ModelDataQuality , context ) , } ) , ... ( input . ModelQuality !== undefined && input . ModelQuality !== null && { ModelQuality : serializeAws_json1_1ModelQuality ( input . ModelQuality , context ) } ) , } ; } ; const serializeAws_json1_1ModelPackageArnList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ModelPackageContainerDefinition = ( input , context ) : any => { return { ... ( input . ContainerHostname !== undefined && input . ContainerHostname !== null && { ContainerHostname : input . ContainerHostname } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1EnvironmentMap ( input . Environment , context ) } ) , ... ( input . Framework !== undefined && input . Framework !== null && { Framework : input . Framework } ) , ... ( input . FrameworkVersion !== undefined && input . FrameworkVersion !== null && { FrameworkVersion : input . FrameworkVersion } ) , ... ( input . Image !== undefined && input . Image !== null && { Image : input . Image } ) , ... ( input . ImageDigest !== undefined && input . ImageDigest !== null && { ImageDigest : input . ImageDigest } ) , ... ( input . ModelDataUrl !== undefined && input . ModelDataUrl !== null && { ModelDataUrl : input . ModelDataUrl } ) , ... ( input . ModelInput !== undefined && input . ModelInput !== null && { ModelInput : serializeAws_json1_1ModelInput ( input . ModelInput , context ) } ) , ... ( input . NearestModelName !== undefined && input . NearestModelName !== null && { NearestModelName : input . NearestModelName } ) , ... ( input . ProductId !== undefined && input . ProductId !== null && { ProductId : input . ProductId } ) , } ; } ; const serializeAws_json1_1ModelPackageContainerDefinitionList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ModelPackageContainerDefinition ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ModelPackageValidationProfile = ( input , context ) : any => { return { ... ( input . ProfileName !== undefined && input . ProfileName !== null && { ProfileName : input . ProfileName } ) , ... ( input . TransformJobDefinition !== undefined && input . TransformJobDefinition !== null && { TransformJobDefinition : serializeAws_json1_1TransformJobDefinition ( input . TransformJobDefinition , context ) , } ) , } ; } ; const serializeAws_json1_1ModelPackageValidationProfiles = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ModelPackageValidationProfile ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ModelPackageValidationSpecification = ( input , context ) : any => { return { ... ( input . ValidationProfiles !== undefined && input . ValidationProfiles !== null && { ValidationProfiles : serializeAws_json1_1ModelPackageValidationProfiles ( input . ValidationProfiles , context ) , } ) , ... ( input . ValidationRole !== undefined && input . ValidationRole !== null && { ValidationRole : input . ValidationRole } ) , } ; } ; const serializeAws_json1_1ModelQuality = ( input , context ) : any => { return { ... ( input . Constraints !== undefined && input . Constraints !== null && { Constraints : serializeAws_json1_1MetricsSource ( input . Constraints , context ) } ) , ... ( input . Statistics !== undefined && input . Statistics !== null && { Statistics : serializeAws_json1_1MetricsSource ( input . Statistics , context ) } ) , } ; } ; const serializeAws_json1_1ModelQualityAppSpecification = ( input , context ) : any => { return { ... ( input . ContainerArguments !== undefined && input . ContainerArguments !== null && { ContainerArguments : serializeAws_json1_1MonitoringContainerArguments ( input . ContainerArguments , context ) , } ) , ... ( input . ContainerEntrypoint !== undefined && input . ContainerEntrypoint !== null && { ContainerEntrypoint : serializeAws_json1_1ContainerEntrypoint ( input . ContainerEntrypoint , context ) , } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1MonitoringEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , ... ( input . PostAnalyticsProcessorSourceUri !== undefined && input . PostAnalyticsProcessorSourceUri !== null && { PostAnalyticsProcessorSourceUri : input . PostAnalyticsProcessorSourceUri , } ) , ... ( input . ProblemType !== undefined && input . ProblemType !== null && { ProblemType : input . ProblemType } ) , ... ( input . RecordPreprocessorSourceUri !== undefined && input . RecordPreprocessorSourceUri !== null && { RecordPreprocessorSourceUri : input . RecordPreprocessorSourceUri } ) , } ; } ; const serializeAws_json1_1ModelQualityBaselineConfig = ( input , context ) : any => { return { ... ( input . BaseliningJobName !== undefined && input . BaseliningJobName !== null && { BaseliningJobName : input . BaseliningJobName } ) , ... ( input . ConstraintsResource !== undefined && input . ConstraintsResource !== null && { ConstraintsResource : serializeAws_json1_1MonitoringConstraintsResource ( input . ConstraintsResource , context ) , } ) , } ; } ; const serializeAws_json1_1ModelQualityJobInput = ( input , context ) : any => { return { ... ( input . EndpointInput !== undefined && input . EndpointInput !== null && { EndpointInput : serializeAws_json1_1EndpointInput ( input . EndpointInput , context ) , } ) , ... ( input . GroundTruthS3Input !== undefined && input . GroundTruthS3Input !== null && { GroundTruthS3Input : serializeAws_json1_1MonitoringGroundTruthS3Input ( input . GroundTruthS3Input , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringAppSpecification = ( input , context ) : any => { return { ... ( input . ContainerArguments !== undefined && input . ContainerArguments !== null && { ContainerArguments : serializeAws_json1_1MonitoringContainerArguments ( input . ContainerArguments , context ) , } ) , ... ( input . ContainerEntrypoint !== undefined && input . ContainerEntrypoint !== null && { ContainerEntrypoint : serializeAws_json1_1ContainerEntrypoint ( input . ContainerEntrypoint , context ) , } ) , ... ( input . ImageUri !== undefined && input . ImageUri !== null && { ImageUri : input . ImageUri } ) , ... ( input . PostAnalyticsProcessorSourceUri !== undefined && input . PostAnalyticsProcessorSourceUri !== null && { PostAnalyticsProcessorSourceUri : input . PostAnalyticsProcessorSourceUri , } ) , ... ( input . RecordPreprocessorSourceUri !== undefined && input . RecordPreprocessorSourceUri !== null && { RecordPreprocessorSourceUri : input . RecordPreprocessorSourceUri } ) , } ; } ; const serializeAws_json1_1MonitoringBaselineConfig = ( input , context ) : any => { return { ... ( input . BaseliningJobName !== undefined && input . BaseliningJobName !== null && { BaseliningJobName : input . BaseliningJobName } ) , ... ( input . ConstraintsResource !== undefined && input . ConstraintsResource !== null && { ConstraintsResource : serializeAws_json1_1MonitoringConstraintsResource ( input . ConstraintsResource , context ) , } ) , ... ( input . StatisticsResource !== undefined && input . StatisticsResource !== null && { StatisticsResource : serializeAws_json1_1MonitoringStatisticsResource ( input . StatisticsResource , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringClusterConfig = ( input , context ) : any => { return { ... ( input . InstanceCount !== undefined && input . InstanceCount !== null && { InstanceCount : input . InstanceCount } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1MonitoringConstraintsResource = ( input , context ) : any => { return { ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1MonitoringContainerArguments = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1MonitoringEnvironmentMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1MonitoringGroundTruthS3Input = ( input , context ) : any => { return { ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1MonitoringInput = ( input , context ) : any => { return { ... ( input . EndpointInput !== undefined && input . EndpointInput !== null && { EndpointInput : serializeAws_json1_1EndpointInput ( input . EndpointInput , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringInputs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1MonitoringInput ( entry , context ) ; } ) ; } ; const serializeAws_json1_1MonitoringJobDefinition = ( input , context ) : any => { return { ... ( input . BaselineConfig !== undefined && input . BaselineConfig !== null && { BaselineConfig : serializeAws_json1_1MonitoringBaselineConfig ( input . BaselineConfig , context ) , } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1MonitoringEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . MonitoringAppSpecification !== undefined && input . MonitoringAppSpecification !== null && { MonitoringAppSpecification : serializeAws_json1_1MonitoringAppSpecification ( input . MonitoringAppSpecification , context ) , } ) , ... ( input . MonitoringInputs !== undefined && input . MonitoringInputs !== null && { MonitoringInputs : serializeAws_json1_1MonitoringInputs ( input . MonitoringInputs , context ) , } ) , ... ( input . MonitoringOutputConfig !== undefined && input . MonitoringOutputConfig !== null && { MonitoringOutputConfig : serializeAws_json1_1MonitoringOutputConfig ( input . MonitoringOutputConfig , context ) , } ) , ... ( input . MonitoringResources !== undefined && input . MonitoringResources !== null && { MonitoringResources : serializeAws_json1_1MonitoringResources ( input . MonitoringResources , context ) , } ) , ... ( input . NetworkConfig !== undefined && input . NetworkConfig !== null && { NetworkConfig : serializeAws_json1_1NetworkConfig ( input . NetworkConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1MonitoringStoppingCondition ( input . StoppingCondition , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringNetworkConfig = ( input , context ) : any => { return { ... ( input . EnableInterContainerTrafficEncryption !== undefined && input . EnableInterContainerTrafficEncryption !== null && { EnableInterContainerTrafficEncryption : input . EnableInterContainerTrafficEncryption , } ) , ... ( input . EnableNetworkIsolation !== undefined && input . EnableNetworkIsolation !== null && { EnableNetworkIsolation : input . EnableNetworkIsolation } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1MonitoringOutput = ( input , context ) : any => { return { ... ( input . S3Output !== undefined && input . S3Output !== null && { S3Output : serializeAws_json1_1MonitoringS3Output ( input . S3Output , context ) } ) , } ; } ; const serializeAws_json1_1MonitoringOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . MonitoringOutputs !== undefined && input . MonitoringOutputs !== null && { MonitoringOutputs : serializeAws_json1_1MonitoringOutputs ( input . MonitoringOutputs , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringOutputs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1MonitoringOutput ( entry , context ) ; } ) ; } ; const serializeAws_json1_1MonitoringResources = ( input , context ) : any => { return { ... ( input . ClusterConfig !== undefined && input . ClusterConfig !== null && { ClusterConfig : serializeAws_json1_1MonitoringClusterConfig ( input . ClusterConfig , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringS3Output = ( input , context ) : any => { return { ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3UploadMode !== undefined && input . S3UploadMode !== null && { S3UploadMode : input . S3UploadMode } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1MonitoringScheduleConfig = ( input , context ) : any => { return { ... ( input . MonitoringJobDefinition !== undefined && input . MonitoringJobDefinition !== null && { MonitoringJobDefinition : serializeAws_json1_1MonitoringJobDefinition ( input . MonitoringJobDefinition , context ) , } ) , ... ( input . MonitoringJobDefinitionName !== undefined && input . MonitoringJobDefinitionName !== null && { MonitoringJobDefinitionName : input . MonitoringJobDefinitionName } ) , ... ( input . MonitoringType !== undefined && input . MonitoringType !== null && { MonitoringType : input . MonitoringType } ) , ... ( input . ScheduleConfig !== undefined && input . ScheduleConfig !== null && { ScheduleConfig : serializeAws_json1_1ScheduleConfig ( input . ScheduleConfig , context ) , } ) , } ; } ; const serializeAws_json1_1MonitoringStatisticsResource = ( input , context ) : any => { return { ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1MonitoringStoppingCondition = ( input , context ) : any => { return { ... ( input . MaxRuntimeInSeconds !== undefined && input . MaxRuntimeInSeconds !== null && { MaxRuntimeInSeconds : input . MaxRuntimeInSeconds } ) , } ; } ; const serializeAws_json1_1MultiModelConfig = ( input , context ) : any => { return { ... ( input . ModelCacheSetting !== undefined && input . ModelCacheSetting !== null && { ModelCacheSetting : input . ModelCacheSetting } ) , } ; } ; const serializeAws_json1_1NeoVpcConfig = ( input , context ) : any => { return { ... ( input . SecurityGroupIds !== undefined && input . SecurityGroupIds !== null && { SecurityGroupIds : serializeAws_json1_1NeoVpcSecurityGroupIds ( input . SecurityGroupIds , context ) , } ) , ... ( input . Subnets !== undefined && input . Subnets !== null && { Subnets : serializeAws_json1_1NeoVpcSubnets ( input . Subnets , context ) } ) , } ; } ; const serializeAws_json1_1NeoVpcSecurityGroupIds = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1NeoVpcSubnets = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1NestedFilters = ( input , context ) : any => { return { ... ( input . Filters !== undefined && input . Filters !== null && { Filters : serializeAws_json1_1FilterList ( input . Filters , context ) } ) , ... ( input . NestedPropertyName !== undefined && input . NestedPropertyName !== null && { NestedPropertyName : input . NestedPropertyName } ) , } ; } ; const serializeAws_json1_1NestedFiltersList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1NestedFilters ( entry , context ) ; } ) ; } ; const serializeAws_json1_1NetworkConfig = ( input , context ) : any => { return { ... ( input . EnableInterContainerTrafficEncryption !== undefined && input . EnableInterContainerTrafficEncryption !== null && { EnableInterContainerTrafficEncryption : input . EnableInterContainerTrafficEncryption , } ) , ... ( input . EnableNetworkIsolation !== undefined && input . EnableNetworkIsolation !== null && { EnableNetworkIsolation : input . EnableNetworkIsolation } ) , ... ( input . VpcConfig !== undefined && input . VpcConfig !== null && { VpcConfig : serializeAws_json1_1VpcConfig ( input . VpcConfig , context ) } ) , } ; } ; const serializeAws_json1_1NotebookInstanceAcceleratorTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1NotebookInstanceLifecycleConfigList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1NotebookInstanceLifecycleHook ( entry , context ) ; } ) ; } ; const serializeAws_json1_1NotebookInstanceLifecycleHook = ( input , context ) : any => { return { ... ( input . Content !== undefined && input . Content !== null && { Content : input . Content } ) , } ; } ; const serializeAws_json1_1NotificationConfiguration = ( input , context ) : any => { return { ... ( input . NotificationTopicArn !== undefined && input . NotificationTopicArn !== null && { NotificationTopicArn : input . NotificationTopicArn } ) , } ; } ; const serializeAws_json1_1OfflineStoreConfig = ( input , context ) : any => { return { ... ( input . DataCatalogConfig !== undefined && input . DataCatalogConfig !== null && { DataCatalogConfig : serializeAws_json1_1DataCatalogConfig ( input . DataCatalogConfig , context ) , } ) , ... ( input . DisableGlueTableCreation !== undefined && input . DisableGlueTableCreation !== null && { DisableGlueTableCreation : input . DisableGlueTableCreation } ) , ... ( input . S3StorageConfig !== undefined && input . S3StorageConfig !== null && { S3StorageConfig : serializeAws_json1_1S3StorageConfig ( input . S3StorageConfig , context ) , } ) , } ; } ; const serializeAws_json1_1OidcConfig = ( input , context ) : any => { return { ... ( input . AuthorizationEndpoint !== undefined && input . AuthorizationEndpoint !== null && { AuthorizationEndpoint : input . AuthorizationEndpoint } ) , ... ( input . ClientId !== undefined && input . ClientId !== null && { ClientId : input . ClientId } ) , ... ( input . ClientSecret !== undefined && input . ClientSecret !== null && { ClientSecret : input . ClientSecret } ) , ... ( input . Issuer !== undefined && input . Issuer !== null && { Issuer : input . Issuer } ) , ... ( input . JwksUri !== undefined && input . JwksUri !== null && { JwksUri : input . JwksUri } ) , ... ( input . LogoutEndpoint !== undefined && input . LogoutEndpoint !== null && { LogoutEndpoint : input . LogoutEndpoint } ) , ... ( input . TokenEndpoint !== undefined && input . TokenEndpoint !== null && { TokenEndpoint : input . TokenEndpoint } ) , ... ( input . UserInfoEndpoint !== undefined && input . UserInfoEndpoint !== null && { UserInfoEndpoint : input . UserInfoEndpoint } ) , } ; } ; const serializeAws_json1_1OidcMemberDefinition = ( input , context ) : any => { return { ... ( input . Groups !== undefined && input . Groups !== null && { Groups : serializeAws_json1_1Groups ( input . Groups , context ) } ) , } ; } ; const serializeAws_json1_1OnlineStoreConfig = ( input , context ) : any => { return { ... ( input . EnableOnlineStore !== undefined && input . EnableOnlineStore !== null && { EnableOnlineStore : input . EnableOnlineStore } ) , ... ( input . SecurityConfig !== undefined && input . SecurityConfig !== null && { SecurityConfig : serializeAws_json1_1OnlineStoreSecurityConfig ( input . SecurityConfig , context ) , } ) , } ; } ; const serializeAws_json1_1OnlineStoreSecurityConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , } ; } ; const serializeAws_json1_1OutputConfig = ( input , context ) : any => { return { ... ( input . CompilerOptions !== undefined && input . CompilerOptions !== null && { CompilerOptions : input . CompilerOptions } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputLocation !== undefined && input . S3OutputLocation !== null && { S3OutputLocation : input . S3OutputLocation } ) , ... ( input . TargetDevice !== undefined && input . TargetDevice !== null && { TargetDevice : input . TargetDevice } ) , ... ( input . TargetPlatform !== undefined && input . TargetPlatform !== null && { TargetPlatform : serializeAws_json1_1TargetPlatform ( input . TargetPlatform , context ) , } ) , } ; } ; const serializeAws_json1_1OutputDataConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1OutputParameter = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1OutputParameterList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1OutputParameter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ParallelismConfiguration = ( input , context ) : any => { return { ... ( input . MaxParallelExecutionSteps !== undefined && input . MaxParallelExecutionSteps !== null && { MaxParallelExecutionSteps : input . MaxParallelExecutionSteps } ) , } ; } ; const serializeAws_json1_1Parameter = ( input , context ) : any => { return { ... ( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1ParameterList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Parameter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ParameterRange = ( input , context ) : any => { return { ... ( input . CategoricalParameterRangeSpecification !== undefined && input . CategoricalParameterRangeSpecification !== null && { CategoricalParameterRangeSpecification : serializeAws_json1_1CategoricalParameterRangeSpecification ( input . CategoricalParameterRangeSpecification , context ) , } ) , ... ( input . ContinuousParameterRangeSpecification !== undefined && input . ContinuousParameterRangeSpecification !== null && { ContinuousParameterRangeSpecification : serializeAws_json1_1ContinuousParameterRangeSpecification ( input . ContinuousParameterRangeSpecification , context ) , } ) , ... ( input . IntegerParameterRangeSpecification !== undefined && input . IntegerParameterRangeSpecification !== null && { IntegerParameterRangeSpecification : serializeAws_json1_1IntegerParameterRangeSpecification ( input . IntegerParameterRangeSpecification , context ) , } ) , } ; } ; const serializeAws_json1_1ParameterRanges = ( input , context ) : any => { return { ... ( input . CategoricalParameterRanges !== undefined && input . CategoricalParameterRanges !== null && { CategoricalParameterRanges : serializeAws_json1_1CategoricalParameterRanges ( input . CategoricalParameterRanges , context ) , } ) , ... ( input . ContinuousParameterRanges !== undefined && input . ContinuousParameterRanges !== null && { ContinuousParameterRanges : serializeAws_json1_1ContinuousParameterRanges ( input . ContinuousParameterRanges , context ) , } ) , ... ( input . IntegerParameterRanges !== undefined && input . IntegerParameterRanges !== null && { IntegerParameterRanges : serializeAws_json1_1IntegerParameterRanges ( input . IntegerParameterRanges , context ) , } ) , } ; } ; const serializeAws_json1_1ParameterValues = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1ParentHyperParameterTuningJob = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobName !== undefined && input . HyperParameterTuningJobName !== null && { HyperParameterTuningJobName : input . HyperParameterTuningJobName } ) , } ; } ; const serializeAws_json1_1ParentHyperParameterTuningJobs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ParentHyperParameterTuningJob ( entry , context ) ; } ) ; } ; const serializeAws_json1_1Phase = ( input , context ) : any => { return { ... ( input . DurationInSeconds !== undefined && input . DurationInSeconds !== null && { DurationInSeconds : input . DurationInSeconds } ) , ... ( input . InitialNumberOfUsers !== undefined && input . InitialNumberOfUsers !== null && { InitialNumberOfUsers : input . InitialNumberOfUsers } ) , ... ( input . SpawnRate !== undefined && input . SpawnRate !== null && { SpawnRate : input . SpawnRate } ) , } ; } ; const serializeAws_json1_1Phases = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Phase ( entry , context ) ; } ) ; } ; const serializeAws_json1_1PipelineDefinitionS3Location = ( input , context ) : any => { return { ... ( input . Bucket !== undefined && input . Bucket !== null && { Bucket : input . Bucket } ) , ... ( input . ObjectKey !== undefined && input . ObjectKey !== null && { ObjectKey : input . ObjectKey } ) , ... ( input . VersionId !== undefined && input . VersionId !== null && { VersionId : input . VersionId } ) , } ; } ; const serializeAws_json1_1ProcessingClusterConfig = ( input , context ) : any => { return { ... ( input . InstanceCount !== undefined && input . InstanceCount !== null && { InstanceCount : input . InstanceCount } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1ProcessingEnvironmentMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1ProcessingFeatureStoreOutput = ( input , context ) : any => { return { ... ( input . FeatureGroupName !== undefined && input . FeatureGroupName !== null && { FeatureGroupName : input . FeatureGroupName } ) , } ; } ; const serializeAws_json1_1ProcessingInput = ( input , context ) : any => { return { ... ( input . AppManaged !== undefined && input . AppManaged !== null && { AppManaged : input . AppManaged } ) , ... ( input . DatasetDefinition !== undefined && input . DatasetDefinition !== null && { DatasetDefinition : serializeAws_json1_1DatasetDefinition ( input . DatasetDefinition , context ) , } ) , ... ( input . InputName !== undefined && input . InputName !== null && { InputName : input . InputName } ) , ... ( input . S3Input !== undefined && input . S3Input !== null && { S3Input : serializeAws_json1_1ProcessingS3Input ( input . S3Input , context ) } ) , } ; } ; const serializeAws_json1_1ProcessingInputs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ProcessingInput ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ProcessingOutput = ( input , context ) : any => { return { ... ( input . AppManaged !== undefined && input . AppManaged !== null && { AppManaged : input . AppManaged } ) , ... ( input . FeatureStoreOutput !== undefined && input . FeatureStoreOutput !== null && { FeatureStoreOutput : serializeAws_json1_1ProcessingFeatureStoreOutput ( input . FeatureStoreOutput , context ) , } ) , ... ( input . OutputName !== undefined && input . OutputName !== null && { OutputName : input . OutputName } ) , ... ( input . S3Output !== undefined && input . S3Output !== null && { S3Output : serializeAws_json1_1ProcessingS3Output ( input . S3Output , context ) } ) , } ; } ; const serializeAws_json1_1ProcessingOutputConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . Outputs !== undefined && input . Outputs !== null && { Outputs : serializeAws_json1_1ProcessingOutputs ( input . Outputs , context ) } ) , } ; } ; const serializeAws_json1_1ProcessingOutputs = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ProcessingOutput ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ProcessingResources = ( input , context ) : any => { return { ... ( input . ClusterConfig !== undefined && input . ClusterConfig !== null && { ClusterConfig : serializeAws_json1_1ProcessingClusterConfig ( input . ClusterConfig , context ) , } ) , } ; } ; const serializeAws_json1_1ProcessingS3Input = ( input , context ) : any => { return { ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3CompressionType !== undefined && input . S3CompressionType !== null && { S3CompressionType : input . S3CompressionType } ) , ... ( input . S3DataDistributionType !== undefined && input . S3DataDistributionType !== null && { S3DataDistributionType : input . S3DataDistributionType } ) , ... ( input . S3DataType !== undefined && input . S3DataType !== null && { S3DataType : input . S3DataType } ) , ... ( input . S3InputMode !== undefined && input . S3InputMode !== null && { S3InputMode : input . S3InputMode } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1ProcessingS3Output = ( input , context ) : any => { return { ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3UploadMode !== undefined && input . S3UploadMode !== null && { S3UploadMode : input . S3UploadMode } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1ProcessingStoppingCondition = ( input , context ) : any => { return { ... ( input . MaxRuntimeInSeconds !== undefined && input . MaxRuntimeInSeconds !== null && { MaxRuntimeInSeconds : input . MaxRuntimeInSeconds } ) , } ; } ; const serializeAws_json1_1ProductionVariant = ( input , context ) : any => { return { ... ( input . AcceleratorType !== undefined && input . AcceleratorType !== null && { AcceleratorType : input . AcceleratorType } ) , ... ( input . CoreDumpConfig !== undefined && input . CoreDumpConfig !== null && { CoreDumpConfig : serializeAws_json1_1ProductionVariantCoreDumpConfig ( input . CoreDumpConfig , context ) , } ) , ... ( input . InitialInstanceCount !== undefined && input . InitialInstanceCount !== null && { InitialInstanceCount : input . InitialInstanceCount } ) , ... ( input . InitialVariantWeight !== undefined && input . InitialVariantWeight !== null && { InitialVariantWeight : __serializeFloat ( input . InitialVariantWeight ) } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . ModelName !== undefined && input . ModelName !== null && { ModelName : input . ModelName } ) , ... ( input . ServerlessConfig !== undefined && input . ServerlessConfig !== null && { ServerlessConfig : serializeAws_json1_1ProductionVariantServerlessConfig ( input . ServerlessConfig , context ) , } ) , ... ( input . VariantName !== undefined && input . VariantName !== null && { VariantName : input . VariantName } ) , } ; } ; const serializeAws_json1_1ProductionVariantCoreDumpConfig = ( input , context ) : any => { return { ... ( input . DestinationS3Uri !== undefined && input . DestinationS3Uri !== null && { DestinationS3Uri : input . DestinationS3Uri } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , } ; } ; const serializeAws_json1_1ProductionVariantList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ProductionVariant ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ProductionVariantServerlessConfig = ( input , context ) : any => { return { ... ( input . MaxConcurrency !== undefined && input . MaxConcurrency !== null && { MaxConcurrency : input . MaxConcurrency } ) , ... ( input . MemorySizeInMB !== undefined && input . MemorySizeInMB !== null && { MemorySizeInMB : input . MemorySizeInMB } ) , } ; } ; const serializeAws_json1_1ProfilerConfig = ( input , context ) : any => { return { ... ( input . ProfilingIntervalInMilliseconds !== undefined && input . ProfilingIntervalInMilliseconds !== null && { ProfilingIntervalInMilliseconds : input . ProfilingIntervalInMilliseconds , } ) , ... ( input . ProfilingParameters !== undefined && input . ProfilingParameters !== null && { ProfilingParameters : serializeAws_json1_1ProfilingParameters ( input . ProfilingParameters , context ) , } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1ProfilerConfigForUpdate = ( input , context ) : any => { return { ... ( input . DisableProfiler !== undefined && input . DisableProfiler !== null && { DisableProfiler : input . DisableProfiler } ) , ... ( input . ProfilingIntervalInMilliseconds !== undefined && input . ProfilingIntervalInMilliseconds !== null && { ProfilingIntervalInMilliseconds : input . ProfilingIntervalInMilliseconds , } ) , ... ( input . ProfilingParameters !== undefined && input . ProfilingParameters !== null && { ProfilingParameters : serializeAws_json1_1ProfilingParameters ( input . ProfilingParameters , context ) , } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1ProfilerRuleConfiguration = ( input , context ) : any => { return { ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . RuleConfigurationName !== undefined && input . RuleConfigurationName !== null && { RuleConfigurationName : input . RuleConfigurationName } ) , ... ( input . RuleEvaluatorImage !== undefined && input . RuleEvaluatorImage !== null && { RuleEvaluatorImage : input . RuleEvaluatorImage } ) , ... ( input . RuleParameters !== undefined && input . RuleParameters !== null && { RuleParameters : serializeAws_json1_1RuleParameters ( input . RuleParameters , context ) , } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1ProfilerRuleConfigurations = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ProfilerRuleConfiguration ( entry , context ) ; } ) ; } ; const serializeAws_json1_1ProfilingParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1PropertyNameQuery = ( input , context ) : any => { return { ... ( input . PropertyNameHint !== undefined && input . PropertyNameHint !== null && { PropertyNameHint : input . PropertyNameHint } ) , } ; } ; const serializeAws_json1_1ProvisioningParameter = ( input , context ) : any => { return { ... ( input . Key !== undefined && input . Key !== null && { Key : input . Key } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1ProvisioningParameters = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1ProvisioningParameter ( entry , context ) ; } ) ; } ; const serializeAws_json1_1PublicWorkforceTaskPrice = ( input , context ) : any => { return { ... ( input . AmountInUsd !== undefined && input . AmountInUsd !== null && { AmountInUsd : serializeAws_json1_1USD ( input . AmountInUsd , context ) } ) , } ; } ; const serializeAws_json1_1PutModelPackageGroupPolicyInput = ( input , context ) : any => { return { ... ( input . ModelPackageGroupName !== undefined && input . ModelPackageGroupName !== null && { ModelPackageGroupName : input . ModelPackageGroupName } ) , ... ( input . ResourcePolicy !== undefined && input . ResourcePolicy !== null && { ResourcePolicy : input . ResourcePolicy } ) , } ; } ; const serializeAws_json1_1QueryFilters = ( input , context ) : any => { return { ... ( input . CreatedAfter !== undefined && input . CreatedAfter !== null && { CreatedAfter : Math . round ( input . CreatedAfter . getTime ( ) / 1000 ) } ) , ... ( input . CreatedBefore !== undefined && input . CreatedBefore !== null && { CreatedBefore : Math . round ( input . CreatedBefore . getTime ( ) / 1000 ) } ) , ... ( input . LineageTypes !== undefined && input . LineageTypes !== null && { LineageTypes : serializeAws_json1_1QueryLineageTypes ( input . LineageTypes , context ) , } ) , ... ( input . ModifiedAfter !== undefined && input . ModifiedAfter !== null && { ModifiedAfter : Math . round ( input . ModifiedAfter . getTime ( ) / 1000 ) } ) , ... ( input . ModifiedBefore !== undefined && input . ModifiedBefore !== null && { ModifiedBefore : Math . round ( input . ModifiedBefore . getTime ( ) / 1000 ) } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1QueryProperties ( input . Properties , context ) } ) , ... ( input . Types !== undefined && input . Types !== null && { Types : serializeAws_json1_1QueryTypes ( input . Types , context ) } ) , } ; } ; const serializeAws_json1_1QueryLineageRequest = ( input , context ) : any => { return { ... ( input . Direction !== undefined && input . Direction !== null && { Direction : input . Direction } ) , ... ( input . Filters !== undefined && input . Filters !== null && { Filters : serializeAws_json1_1QueryFilters ( input . Filters , context ) } ) , ... ( input . IncludeEdges !== undefined && input . IncludeEdges !== null && { IncludeEdges : input . IncludeEdges } ) , ... ( input . MaxDepth !== undefined && input . MaxDepth !== null && { MaxDepth : input . MaxDepth } ) , ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . StartArns !== undefined && input . StartArns !== null && { StartArns : serializeAws_json1_1QueryLineageStartArns ( input . StartArns , context ) } ) , } ; } ; const serializeAws_json1_1QueryLineageStartArns = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1QueryLineageTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1QueryProperties = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1QueryTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1RealtimeInferenceInstanceTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1RecommendationJobInputConfig = ( input , context ) : any => { return { ... ( input . EndpointConfigurations !== undefined && input . EndpointConfigurations !== null && { EndpointConfigurations : serializeAws_json1_1EndpointInputConfigurations ( input . EndpointConfigurations , context ) , } ) , ... ( input . JobDurationInSeconds !== undefined && input . JobDurationInSeconds !== null && { JobDurationInSeconds : input . JobDurationInSeconds } ) , ... ( input . ModelPackageVersionArn !== undefined && input . ModelPackageVersionArn !== null && { ModelPackageVersionArn : input . ModelPackageVersionArn } ) , ... ( input . ResourceLimit !== undefined && input . ResourceLimit !== null && { ResourceLimit : serializeAws_json1_1RecommendationJobResourceLimit ( input . ResourceLimit , context ) , } ) , ... ( input . TrafficPattern !== undefined && input . TrafficPattern !== null && { TrafficPattern : serializeAws_json1_1TrafficPattern ( input . TrafficPattern , context ) , } ) , } ; } ; const serializeAws_json1_1RecommendationJobResourceLimit = ( input , context ) : any => { return { ... ( input . MaxNumberOfTests !== undefined && input . MaxNumberOfTests !== null && { MaxNumberOfTests : input . MaxNumberOfTests } ) , ... ( input . MaxParallelOfTests !== undefined && input . MaxParallelOfTests !== null && { MaxParallelOfTests : input . MaxParallelOfTests } ) , } ; } ; const serializeAws_json1_1RecommendationJobStoppingConditions = ( input , context ) : any => { return { ... ( input . MaxInvocations !== undefined && input . MaxInvocations !== null && { MaxInvocations : input . MaxInvocations } ) , ... ( input . ModelLatencyThresholds !== undefined && input . ModelLatencyThresholds !== null && { ModelLatencyThresholds : serializeAws_json1_1ModelLatencyThresholds ( input . ModelLatencyThresholds , context ) , } ) , } ; } ; const serializeAws_json1_1RedshiftDatasetDefinition = ( input , context ) : any => { return { ... ( input . ClusterId !== undefined && input . ClusterId !== null && { ClusterId : input . ClusterId } ) , ... ( input . ClusterRoleArn !== undefined && input . ClusterRoleArn !== null && { ClusterRoleArn : input . ClusterRoleArn } ) , ... ( input . Database !== undefined && input . Database !== null && { Database : input . Database } ) , ... ( input . DbUser !== undefined && input . DbUser !== null && { DbUser : input . DbUser } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . OutputCompression !== undefined && input . OutputCompression !== null && { OutputCompression : input . OutputCompression } ) , ... ( input . OutputFormat !== undefined && input . OutputFormat !== null && { OutputFormat : input . OutputFormat } ) , ... ( input . OutputS3Uri !== undefined && input . OutputS3Uri !== null && { OutputS3Uri : input . OutputS3Uri } ) , ... ( input . QueryString !== undefined && input . QueryString !== null && { QueryString : input . QueryString } ) , } ; } ; const serializeAws_json1_1RegisterDevicesRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . Devices !== undefined && input . Devices !== null && { Devices : serializeAws_json1_1Devices ( input . Devices , context ) } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1RenderableTask = ( input , context ) : any => { return { ... ( input . Input !== undefined && input . Input !== null && { Input : input . Input } ) , } ; } ; const serializeAws_json1_1RenderUiTemplateRequest = ( input , context ) : any => { return { ... ( input . HumanTaskUiArn !== undefined && input . HumanTaskUiArn !== null && { HumanTaskUiArn : input . HumanTaskUiArn } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . Task !== undefined && input . Task !== null && { Task : serializeAws_json1_1RenderableTask ( input . Task , context ) } ) , ... ( input . UiTemplate !== undefined && input . UiTemplate !== null && { UiTemplate : serializeAws_json1_1UiTemplate ( input . UiTemplate , context ) } ) , } ; } ; const serializeAws_json1_1RepositoryAuthConfig = ( input , context ) : any => { return { ... ( input . RepositoryCredentialsProviderArn !== undefined && input . RepositoryCredentialsProviderArn !== null && { RepositoryCredentialsProviderArn : input . RepositoryCredentialsProviderArn , } ) , } ; } ; const serializeAws_json1_1ResourceConfig = ( input , context ) : any => { return { ... ( input . InstanceCount !== undefined && input . InstanceCount !== null && { InstanceCount : input . InstanceCount } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1ResourceLimits = ( input , context ) : any => { return { ... ( input . MaxNumberOfTrainingJobs !== undefined && input . MaxNumberOfTrainingJobs !== null && { MaxNumberOfTrainingJobs : input . MaxNumberOfTrainingJobs } ) , ... ( input . MaxParallelTrainingJobs !== undefined && input . MaxParallelTrainingJobs !== null && { MaxParallelTrainingJobs : input . MaxParallelTrainingJobs } ) , } ; } ; const serializeAws_json1_1ResourceSpec = ( input , context ) : any => { return { ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . LifecycleConfigArn !== undefined && input . LifecycleConfigArn !== null && { LifecycleConfigArn : input . LifecycleConfigArn } ) , ... ( input . SageMakerImageArn !== undefined && input . SageMakerImageArn !== null && { SageMakerImageArn : input . SageMakerImageArn } ) , ... ( input . SageMakerImageVersionArn !== undefined && input . SageMakerImageVersionArn !== null && { SageMakerImageVersionArn : input . SageMakerImageVersionArn } ) , } ; } ; const serializeAws_json1_1ResponseMIMETypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1RetentionPolicy = ( input , context ) : any => { return { ... ( input . HomeEfsFileSystem !== undefined && input . HomeEfsFileSystem !== null && { HomeEfsFileSystem : input . HomeEfsFileSystem } ) , } ; } ; const serializeAws_json1_1RetryPipelineExecutionRequest = ( input , context ) : any => { return { ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . ParallelismConfiguration !== undefined && input . ParallelismConfiguration !== null && { ParallelismConfiguration : serializeAws_json1_1ParallelismConfiguration ( input . ParallelismConfiguration , context ) , } ) , ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , } ; } ; const serializeAws_json1_1RetryStrategy = ( input , context ) : any => { return { ... ( input . MaximumRetryAttempts !== undefined && input . MaximumRetryAttempts !== null && { MaximumRetryAttempts : input . MaximumRetryAttempts } ) , } ; } ; const serializeAws_json1_1RSessionAppSettings = ( input , context ) : any => { return { } ; } ; const serializeAws_json1_1RStudioServerProAppSettings = ( input , context ) : any => { return { ... ( input . AccessStatus !== undefined && input . AccessStatus !== null && { AccessStatus : input . AccessStatus } ) , ... ( input . UserGroup !== undefined && input . UserGroup !== null && { UserGroup : input . UserGroup } ) , } ; } ; const serializeAws_json1_1RStudioServerProDomainSettings = ( input , context ) : any => { return { ... ( input . DefaultResourceSpec !== undefined && input . DefaultResourceSpec !== null && { DefaultResourceSpec : serializeAws_json1_1ResourceSpec ( input . DefaultResourceSpec , context ) , } ) , ... ( input . DomainExecutionRoleArn !== undefined && input . DomainExecutionRoleArn !== null && { DomainExecutionRoleArn : input . DomainExecutionRoleArn } ) , ... ( input . RStudioConnectUrl !== undefined && input . RStudioConnectUrl !== null && { RStudioConnectUrl : input . RStudioConnectUrl } ) , ... ( input . RStudioPackageManagerUrl !== undefined && input . RStudioPackageManagerUrl !== null && { RStudioPackageManagerUrl : input . RStudioPackageManagerUrl } ) , } ; } ; const serializeAws_json1_1RStudioServerProDomainSettingsForUpdate = ( input , context ) : any => { return { ... ( input . DefaultResourceSpec !== undefined && input . DefaultResourceSpec !== null && { DefaultResourceSpec : serializeAws_json1_1ResourceSpec ( input . DefaultResourceSpec , context ) , } ) , ... ( input . DomainExecutionRoleArn !== undefined && input . DomainExecutionRoleArn !== null && { DomainExecutionRoleArn : input . DomainExecutionRoleArn } ) , } ; } ; const serializeAws_json1_1RuleParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1S3DataSource = ( input , context ) : any => { return { ... ( input . AttributeNames !== undefined && input . AttributeNames !== null && { AttributeNames : serializeAws_json1_1AttributeNames ( input . AttributeNames , context ) , } ) , ... ( input . S3DataDistributionType !== undefined && input . S3DataDistributionType !== null && { S3DataDistributionType : input . S3DataDistributionType } ) , ... ( input . S3DataType !== undefined && input . S3DataType !== null && { S3DataType : input . S3DataType } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1S3StorageConfig = ( input , context ) : any => { return { ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . ResolvedOutputS3Uri !== undefined && input . ResolvedOutputS3Uri !== null && { ResolvedOutputS3Uri : input . ResolvedOutputS3Uri } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1ScheduleConfig = ( input , context ) : any => { return { ... ( input . ScheduleExpression !== undefined && input . ScheduleExpression !== null && { ScheduleExpression : input . ScheduleExpression } ) , } ; } ; const serializeAws_json1_1SearchExpression = ( input , context ) : any => { return { ... ( input . Filters !== undefined && input . Filters !== null && { Filters : serializeAws_json1_1FilterList ( input . Filters , context ) } ) , ... ( input . NestedFilters !== undefined && input . NestedFilters !== null && { NestedFilters : serializeAws_json1_1NestedFiltersList ( input . NestedFilters , context ) , } ) , ... ( input . Operator !== undefined && input . Operator !== null && { Operator : input . Operator } ) , ... ( input . SubExpressions !== undefined && input . SubExpressions !== null && { SubExpressions : serializeAws_json1_1SearchExpressionList ( input . SubExpressions , context ) , } ) , } ; } ; const serializeAws_json1_1SearchExpressionList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1SearchExpression ( entry , context ) ; } ) ; } ; const serializeAws_json1_1SearchRequest = ( input , context ) : any => { return { ... ( input . MaxResults !== undefined && input . MaxResults !== null && { MaxResults : input . MaxResults } ) , ... ( input . NextToken !== undefined && input . NextToken !== null && { NextToken : input . NextToken } ) , ... ( input . Resource !== undefined && input . Resource !== null && { Resource : input . Resource } ) , ... ( input . SearchExpression !== undefined && input . SearchExpression !== null && { SearchExpression : serializeAws_json1_1SearchExpression ( input . SearchExpression , context ) , } ) , ... ( input . SortBy !== undefined && input . SortBy !== null && { SortBy : input . SortBy } ) , ... ( input . SortOrder !== undefined && input . SortOrder !== null && { SortOrder : input . SortOrder } ) , } ; } ; const serializeAws_json1_1SecurityGroupIds = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1SendPipelineExecutionStepFailureRequest = ( input , context ) : any => { return { ... ( input . CallbackToken !== undefined && input . CallbackToken !== null && { CallbackToken : input . CallbackToken } ) , ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . FailureReason !== undefined && input . FailureReason !== null && { FailureReason : input . FailureReason } ) , } ; } ; const serializeAws_json1_1SendPipelineExecutionStepSuccessRequest = ( input , context ) : any => { return { ... ( input . CallbackToken !== undefined && input . CallbackToken !== null && { CallbackToken : input . CallbackToken } ) , ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . OutputParameters !== undefined && input . OutputParameters !== null && { OutputParameters : serializeAws_json1_1OutputParameterList ( input . OutputParameters , context ) , } ) , } ; } ; const serializeAws_json1_1ServiceCatalogProvisioningDetails = ( input , context ) : any => { return { ... ( input . PathId !== undefined && input . PathId !== null && { PathId : input . PathId } ) , ... ( input . ProductId !== undefined && input . ProductId !== null && { ProductId : input . ProductId } ) , ... ( input . ProvisioningArtifactId !== undefined && input . ProvisioningArtifactId !== null && { ProvisioningArtifactId : input . ProvisioningArtifactId } ) , ... ( input . ProvisioningParameters !== undefined && input . ProvisioningParameters !== null && { ProvisioningParameters : serializeAws_json1_1ProvisioningParameters ( input . ProvisioningParameters , context ) , } ) , } ; } ; const serializeAws_json1_1ServiceCatalogProvisioningUpdateDetails = ( input , context ) : any => { return { ... ( input . ProvisioningArtifactId !== undefined && input . ProvisioningArtifactId !== null && { ProvisioningArtifactId : input . ProvisioningArtifactId } ) , ... ( input . ProvisioningParameters !== undefined && input . ProvisioningParameters !== null && { ProvisioningParameters : serializeAws_json1_1ProvisioningParameters ( input . ProvisioningParameters , context ) , } ) , } ; } ; const serializeAws_json1_1SharingSettings = ( input , context ) : any => { return { ... ( input . NotebookOutputOption !== undefined && input . NotebookOutputOption !== null && { NotebookOutputOption : input . NotebookOutputOption } ) , ... ( input . S3KmsKeyId !== undefined && input . S3KmsKeyId !== null && { S3KmsKeyId : input . S3KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1ShuffleConfig = ( input , context ) : any => { return { ... ( input . Seed !== undefined && input . Seed !== null && { Seed : input . Seed } ) , } ; } ; const serializeAws_json1_1SourceAlgorithm = ( input , context ) : any => { return { ... ( input . AlgorithmName !== undefined && input . AlgorithmName !== null && { AlgorithmName : input . AlgorithmName } ) , ... ( input . ModelDataUrl !== undefined && input . ModelDataUrl !== null && { ModelDataUrl : input . ModelDataUrl } ) , } ; } ; const serializeAws_json1_1SourceAlgorithmList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1SourceAlgorithm ( entry , context ) ; } ) ; } ; const serializeAws_json1_1SourceAlgorithmSpecification = ( input , context ) : any => { return { ... ( input . SourceAlgorithms !== undefined && input . SourceAlgorithms !== null && { SourceAlgorithms : serializeAws_json1_1SourceAlgorithmList ( input . SourceAlgorithms , context ) , } ) , } ; } ; const serializeAws_json1_1SourceIpConfig = ( input , context ) : any => { return { ... ( input . Cidrs !== undefined && input . Cidrs !== null && { Cidrs : serializeAws_json1_1Cidrs ( input . Cidrs , context ) } ) , } ; } ; const serializeAws_json1_1StartMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , } ; } ; const serializeAws_json1_1StartNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , } ; } ; const serializeAws_json1_1StartPipelineExecutionRequest = ( input , context ) : any => { return { ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . ParallelismConfiguration !== undefined && input . ParallelismConfiguration !== null && { ParallelismConfiguration : serializeAws_json1_1ParallelismConfiguration ( input . ParallelismConfiguration , context ) , } ) , ... ( input . PipelineExecutionDescription !== undefined && input . PipelineExecutionDescription !== null && { PipelineExecutionDescription : input . PipelineExecutionDescription , } ) , ... ( input . PipelineExecutionDisplayName !== undefined && input . PipelineExecutionDisplayName !== null && { PipelineExecutionDisplayName : input . PipelineExecutionDisplayName , } ) , ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , ... ( input . PipelineParameters !== undefined && input . PipelineParameters !== null && { PipelineParameters : serializeAws_json1_1ParameterList ( input . PipelineParameters , context ) , } ) , } ; } ; const serializeAws_json1_1StopAutoMLJobRequest = ( input , context ) : any => { return { ... ( input . AutoMLJobName !== undefined && input . AutoMLJobName !== null && { AutoMLJobName : input . AutoMLJobName } ) , } ; } ; const serializeAws_json1_1StopCompilationJobRequest = ( input , context ) : any => { return { ... ( input . CompilationJobName !== undefined && input . CompilationJobName !== null && { CompilationJobName : input . CompilationJobName } ) , } ; } ; const serializeAws_json1_1StopEdgePackagingJobRequest = ( input , context ) : any => { return { ... ( input . EdgePackagingJobName !== undefined && input . EdgePackagingJobName !== null && { EdgePackagingJobName : input . EdgePackagingJobName } ) , } ; } ; const serializeAws_json1_1StopHyperParameterTuningJobRequest = ( input , context ) : any => { return { ... ( input . HyperParameterTuningJobName !== undefined && input . HyperParameterTuningJobName !== null && { HyperParameterTuningJobName : input . HyperParameterTuningJobName } ) , } ; } ; const serializeAws_json1_1StopInferenceRecommendationsJobRequest = ( input , context ) : any => { return { ... ( input . JobName !== undefined && input . JobName !== null && { JobName : input . JobName } ) , } ; } ; const serializeAws_json1_1StopLabelingJobRequest = ( input , context ) : any => { return { ... ( input . LabelingJobName !== undefined && input . LabelingJobName !== null && { LabelingJobName : input . LabelingJobName } ) , } ; } ; const serializeAws_json1_1StopMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , } ; } ; const serializeAws_json1_1StopNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , } ; } ; const serializeAws_json1_1StoppingCondition = ( input , context ) : any => { return { ... ( input . MaxRuntimeInSeconds !== undefined && input . MaxRuntimeInSeconds !== null && { MaxRuntimeInSeconds : input . MaxRuntimeInSeconds } ) , ... ( input . MaxWaitTimeInSeconds !== undefined && input . MaxWaitTimeInSeconds !== null && { MaxWaitTimeInSeconds : input . MaxWaitTimeInSeconds } ) , } ; } ; const serializeAws_json1_1StopPipelineExecutionRequest = ( input , context ) : any => { return { ClientRequestToken : input . ClientRequestToken ?? generateIdempotencyToken ( ) , ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , } ; } ; const serializeAws_json1_1StopProcessingJobRequest = ( input , context ) : any => { return { ... ( input . ProcessingJobName !== undefined && input . ProcessingJobName !== null && { ProcessingJobName : input . ProcessingJobName } ) , } ; } ; const serializeAws_json1_1StopTrainingJobRequest = ( input , context ) : any => { return { ... ( input . TrainingJobName !== undefined && input . TrainingJobName !== null && { TrainingJobName : input . TrainingJobName } ) , } ; } ; const serializeAws_json1_1StopTransformJobRequest = ( input , context ) : any => { return { ... ( input . TransformJobName !== undefined && input . TransformJobName !== null && { TransformJobName : input . TransformJobName } ) , } ; } ; const serializeAws_json1_1Subnets = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1SuggestionQuery = ( input , context ) : any => { return { ... ( input . PropertyNameQuery !== undefined && input . PropertyNameQuery !== null && { PropertyNameQuery : serializeAws_json1_1PropertyNameQuery ( input . PropertyNameQuery , context ) , } ) , } ; } ; const serializeAws_json1_1Tag = ( input , context ) : any => { return { ... ( input . Key !== undefined && input . Key !== null && { Key : input . Key } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1TagKeyList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1TagList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1Tag ( entry , context ) ; } ) ; } ; const serializeAws_json1_1TargetPlatform = ( input , context ) : any => { return { ... ( input . Accelerator !== undefined && input . Accelerator !== null && { Accelerator : input . Accelerator } ) , ... ( input . Arch !== undefined && input . Arch !== null && { Arch : input . Arch } ) , ... ( input . Os !== undefined && input . Os !== null && { Os : input . Os } ) , } ; } ; const serializeAws_json1_1TaskKeywords = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1TensorBoardAppSettings = ( input , context ) : any => { return { ... ( input . DefaultResourceSpec !== undefined && input . DefaultResourceSpec !== null && { DefaultResourceSpec : serializeAws_json1_1ResourceSpec ( input . DefaultResourceSpec , context ) , } ) , } ; } ; const serializeAws_json1_1TensorBoardOutputConfig = ( input , context ) : any => { return { ... ( input . LocalPath !== undefined && input . LocalPath !== null && { LocalPath : input . LocalPath } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1TrafficPattern = ( input , context ) : any => { return { ... ( input . Phases !== undefined && input . Phases !== null && { Phases : serializeAws_json1_1Phases ( input . Phases , context ) } ) , ... ( input . TrafficType !== undefined && input . TrafficType !== null && { TrafficType : input . TrafficType } ) , } ; } ; const serializeAws_json1_1TrafficRoutingConfig = ( input , context ) : any => { return { ... ( input . CanarySize !== undefined && input . CanarySize !== null && { CanarySize : serializeAws_json1_1CapacitySize ( input . CanarySize , context ) } ) , ... ( input . LinearStepSize !== undefined && input . LinearStepSize !== null && { LinearStepSize : serializeAws_json1_1CapacitySize ( input . LinearStepSize , context ) , } ) , ... ( input . Type !== undefined && input . Type !== null && { Type : input . Type } ) , ... ( input . WaitIntervalInSeconds !== undefined && input . WaitIntervalInSeconds !== null && { WaitIntervalInSeconds : input . WaitIntervalInSeconds } ) , } ; } ; const serializeAws_json1_1TrainingEnvironmentMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1TrainingInstanceTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1TrainingJobDefinition = ( input , context ) : any => { return { ... ( input . HyperParameters !== undefined && input . HyperParameters !== null && { HyperParameters : serializeAws_json1_1HyperParameters ( input . HyperParameters , context ) , } ) , ... ( input . InputDataConfig !== undefined && input . InputDataConfig !== null && { InputDataConfig : serializeAws_json1_1InputDataConfig ( input . InputDataConfig , context ) , } ) , ... ( input . OutputDataConfig !== undefined && input . OutputDataConfig !== null && { OutputDataConfig : serializeAws_json1_1OutputDataConfig ( input . OutputDataConfig , context ) , } ) , ... ( input . ResourceConfig !== undefined && input . ResourceConfig !== null && { ResourceConfig : serializeAws_json1_1ResourceConfig ( input . ResourceConfig , context ) , } ) , ... ( input . StoppingCondition !== undefined && input . StoppingCondition !== null && { StoppingCondition : serializeAws_json1_1StoppingCondition ( input . StoppingCondition , context ) , } ) , ... ( input . TrainingInputMode !== undefined && input . TrainingInputMode !== null && { TrainingInputMode : input . TrainingInputMode } ) , } ; } ; const serializeAws_json1_1TrainingSpecification = ( input , context ) : any => { return { ... ( input . MetricDefinitions !== undefined && input . MetricDefinitions !== null && { MetricDefinitions : serializeAws_json1_1MetricDefinitionList ( input . MetricDefinitions , context ) , } ) , ... ( input . SupportedHyperParameters !== undefined && input . SupportedHyperParameters !== null && { SupportedHyperParameters : serializeAws_json1_1HyperParameterSpecifications ( input . SupportedHyperParameters , context ) , } ) , ... ( input . SupportedTrainingInstanceTypes !== undefined && input . SupportedTrainingInstanceTypes !== null && { SupportedTrainingInstanceTypes : serializeAws_json1_1TrainingInstanceTypes ( input . SupportedTrainingInstanceTypes , context ) , } ) , ... ( input . SupportedTuningJobObjectiveMetrics !== undefined && input . SupportedTuningJobObjectiveMetrics !== null && { SupportedTuningJobObjectiveMetrics : serializeAws_json1_1HyperParameterTuningJobObjectives ( input . SupportedTuningJobObjectiveMetrics , context ) , } ) , ... ( input . SupportsDistributedTraining !== undefined && input . SupportsDistributedTraining !== null && { SupportsDistributedTraining : input . SupportsDistributedTraining } ) , ... ( input . TrainingChannels !== undefined && input . TrainingChannels !== null && { TrainingChannels : serializeAws_json1_1ChannelSpecifications ( input . TrainingChannels , context ) , } ) , ... ( input . TrainingImage !== undefined && input . TrainingImage !== null && { TrainingImage : input . TrainingImage } ) , ... ( input . TrainingImageDigest !== undefined && input . TrainingImageDigest !== null && { TrainingImageDigest : input . TrainingImageDigest } ) , } ; } ; const serializeAws_json1_1TransformDataSource = ( input , context ) : any => { return { ... ( input . S3DataSource !== undefined && input . S3DataSource !== null && { S3DataSource : serializeAws_json1_1TransformS3DataSource ( input . S3DataSource , context ) , } ) , } ; } ; const serializeAws_json1_1TransformEnvironmentMap = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : value , } ; } , { } ) ; } ; const serializeAws_json1_1TransformInput = ( input , context ) : any => { return { ... ( input . CompressionType !== undefined && input . CompressionType !== null && { CompressionType : input . CompressionType } ) , ... ( input . ContentType !== undefined && input . ContentType !== null && { ContentType : input . ContentType } ) , ... ( input . DataSource !== undefined && input . DataSource !== null && { DataSource : serializeAws_json1_1TransformDataSource ( input . DataSource , context ) } ) , ... ( input . SplitType !== undefined && input . SplitType !== null && { SplitType : input . SplitType } ) , } ; } ; const serializeAws_json1_1TransformInstanceTypes = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const serializeAws_json1_1TransformJobDefinition = ( input , context ) : any => { return { ... ( input . BatchStrategy !== undefined && input . BatchStrategy !== null && { BatchStrategy : input . BatchStrategy } ) , ... ( input . Environment !== undefined && input . Environment !== null && { Environment : serializeAws_json1_1TransformEnvironmentMap ( input . Environment , context ) , } ) , ... ( input . MaxConcurrentTransforms !== undefined && input . MaxConcurrentTransforms !== null && { MaxConcurrentTransforms : input . MaxConcurrentTransforms } ) , ... ( input . MaxPayloadInMB !== undefined && input . MaxPayloadInMB !== null && { MaxPayloadInMB : input . MaxPayloadInMB } ) , ... ( input . TransformInput !== undefined && input . TransformInput !== null && { TransformInput : serializeAws_json1_1TransformInput ( input . TransformInput , context ) , } ) , ... ( input . TransformOutput !== undefined && input . TransformOutput !== null && { TransformOutput : serializeAws_json1_1TransformOutput ( input . TransformOutput , context ) , } ) , ... ( input . TransformResources !== undefined && input . TransformResources !== null && { TransformResources : serializeAws_json1_1TransformResources ( input . TransformResources , context ) , } ) , } ; } ; const serializeAws_json1_1TransformOutput = ( input , context ) : any => { return { ... ( input . Accept !== undefined && input . Accept !== null && { Accept : input . Accept } ) , ... ( input . AssembleWith !== undefined && input . AssembleWith !== null && { AssembleWith : input . AssembleWith } ) , ... ( input . KmsKeyId !== undefined && input . KmsKeyId !== null && { KmsKeyId : input . KmsKeyId } ) , ... ( input . S3OutputPath !== undefined && input . S3OutputPath !== null && { S3OutputPath : input . S3OutputPath } ) , } ; } ; const serializeAws_json1_1TransformResources = ( input , context ) : any => { return { ... ( input . InstanceCount !== undefined && input . InstanceCount !== null && { InstanceCount : input . InstanceCount } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . VolumeKmsKeyId !== undefined && input . VolumeKmsKeyId !== null && { VolumeKmsKeyId : input . VolumeKmsKeyId } ) , } ; } ; const serializeAws_json1_1TransformS3DataSource = ( input , context ) : any => { return { ... ( input . S3DataType !== undefined && input . S3DataType !== null && { S3DataType : input . S3DataType } ) , ... ( input . S3Uri !== undefined && input . S3Uri !== null && { S3Uri : input . S3Uri } ) , } ; } ; const serializeAws_json1_1TrialComponentArtifact = ( input , context ) : any => { return { ... ( input . MediaType !== undefined && input . MediaType !== null && { MediaType : input . MediaType } ) , ... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) , } ; } ; const serializeAws_json1_1TrialComponentArtifacts = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : serializeAws_json1_1TrialComponentArtifact ( value , context ) , } ; } , { } ) ; } ; const serializeAws_json1_1TrialComponentParameters = ( input , context ) : any => { return Object . entries ( input ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : serializeAws_json1_1TrialComponentParameterValue ( value , context ) , } ; } , { } ) ; } ; const serializeAws_json1_1TrialComponentParameterValue = ( input , context ) : any => { return TrialComponentParameterValue . visit ( input , { NumberValue : ( value ) => ( { NumberValue : __serializeFloat ( value ) } ) , StringValue : ( value ) => ( { StringValue : value } ) , _ : ( name , value ) => ( { name : value } as any ) , } ) ; } ; const serializeAws_json1_1TrialComponentStatus = ( input , context ) : any => { return { ... ( input . Message !== undefined && input . Message !== null && { Message : input . Message } ) , ... ( input . PrimaryStatus !== undefined && input . PrimaryStatus !== null && { PrimaryStatus : input . PrimaryStatus } ) , } ; } ; const serializeAws_json1_1TuningJobCompletionCriteria = ( input , context ) : any => { return { ... ( input . TargetObjectiveMetricValue !== undefined && input . TargetObjectiveMetricValue !== null && { TargetObjectiveMetricValue : __serializeFloat ( input . TargetObjectiveMetricValue ) , } ) , } ; } ; const serializeAws_json1_1UiConfig = ( input , context ) : any => { return { ... ( input . HumanTaskUiArn !== undefined && input . HumanTaskUiArn !== null && { HumanTaskUiArn : input . HumanTaskUiArn } ) , ... ( input . UiTemplateS3Uri !== undefined && input . UiTemplateS3Uri !== null && { UiTemplateS3Uri : input . UiTemplateS3Uri } ) , } ; } ; const serializeAws_json1_1UiTemplate = ( input , context ) : any => { return { ... ( input . Content !== undefined && input . Content !== null && { Content : input . Content } ) , } ; } ; const serializeAws_json1_1UpdateActionRequest = ( input , context ) : any => { return { ... ( input . ActionName !== undefined && input . ActionName !== null && { ActionName : input . ActionName } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . PropertiesToRemove !== undefined && input . PropertiesToRemove !== null && { PropertiesToRemove : serializeAws_json1_1ListLineageEntityParameterKey ( input . PropertiesToRemove , context ) , } ) , ... ( input . Status !== undefined && input . Status !== null && { Status : input . Status } ) , } ; } ; const serializeAws_json1_1UpdateAppImageConfigRequest = ( input , context ) : any => { return { ... ( input . AppImageConfigName !== undefined && input . AppImageConfigName !== null && { AppImageConfigName : input . AppImageConfigName } ) , ... ( input . KernelGatewayImageConfig !== undefined && input . KernelGatewayImageConfig !== null && { KernelGatewayImageConfig : serializeAws_json1_1KernelGatewayImageConfig ( input . KernelGatewayImageConfig , context ) , } ) , } ; } ; const serializeAws_json1_1UpdateArtifactRequest = ( input , context ) : any => { return { ... ( input . ArtifactArn !== undefined && input . ArtifactArn !== null && { ArtifactArn : input . ArtifactArn } ) , ... ( input . ArtifactName !== undefined && input . ArtifactName !== null && { ArtifactName : input . ArtifactName } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . PropertiesToRemove !== undefined && input . PropertiesToRemove !== null && { PropertiesToRemove : serializeAws_json1_1ListLineageEntityParameterKey ( input . PropertiesToRemove , context ) , } ) , } ; } ; const serializeAws_json1_1UpdateCodeRepositoryInput = ( input , context ) : any => { return { ... ( input . CodeRepositoryName !== undefined && input . CodeRepositoryName !== null && { CodeRepositoryName : input . CodeRepositoryName } ) , ... ( input . GitConfig !== undefined && input . GitConfig !== null && { GitConfig : serializeAws_json1_1GitConfigForUpdate ( input . GitConfig , context ) } ) , } ; } ; const serializeAws_json1_1UpdateContextRequest = ( input , context ) : any => { return { ... ( input . ContextName !== undefined && input . ContextName !== null && { ContextName : input . ContextName } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . Properties !== undefined && input . Properties !== null && { Properties : serializeAws_json1_1LineageEntityParameters ( input . Properties , context ) , } ) , ... ( input . PropertiesToRemove !== undefined && input . PropertiesToRemove !== null && { PropertiesToRemove : serializeAws_json1_1ListLineageEntityParameterKey ( input . PropertiesToRemove , context ) , } ) , } ; } ; const serializeAws_json1_1UpdateDeviceFleetRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . EnableIotRoleAlias !== undefined && input . EnableIotRoleAlias !== null && { EnableIotRoleAlias : input . EnableIotRoleAlias } ) , ... ( input . OutputConfig !== undefined && input . OutputConfig !== null && { OutputConfig : serializeAws_json1_1EdgeOutputConfig ( input . OutputConfig , context ) , } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , } ; } ; const serializeAws_json1_1UpdateDevicesRequest = ( input , context ) : any => { return { ... ( input . DeviceFleetName !== undefined && input . DeviceFleetName !== null && { DeviceFleetName : input . DeviceFleetName } ) , ... ( input . Devices !== undefined && input . Devices !== null && { Devices : serializeAws_json1_1Devices ( input . Devices , context ) } ) , } ; } ; const serializeAws_json1_1UpdateDomainRequest = ( input , context ) : any => { return { ... ( input . DefaultUserSettings !== undefined && input . DefaultUserSettings !== null && { DefaultUserSettings : serializeAws_json1_1UserSettings ( input . DefaultUserSettings , context ) , } ) , ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . DomainSettingsForUpdate !== undefined && input . DomainSettingsForUpdate !== null && { DomainSettingsForUpdate : serializeAws_json1_1DomainSettingsForUpdate ( input . DomainSettingsForUpdate , context ) , } ) , } ; } ; const serializeAws_json1_1UpdateEndpointInput = ( input , context ) : any => { return { ... ( input . DeploymentConfig !== undefined && input . DeploymentConfig !== null && { DeploymentConfig : serializeAws_json1_1DeploymentConfig ( input . DeploymentConfig , context ) , } ) , ... ( input . EndpointConfigName !== undefined && input . EndpointConfigName !== null && { EndpointConfigName : input . EndpointConfigName } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , ... ( input . ExcludeRetainedVariantProperties !== undefined && input . ExcludeRetainedVariantProperties !== null && { ExcludeRetainedVariantProperties : serializeAws_json1_1VariantPropertyList ( input . ExcludeRetainedVariantProperties , context ) , } ) , ... ( input . RetainAllVariantProperties !== undefined && input . RetainAllVariantProperties !== null && { RetainAllVariantProperties : input . RetainAllVariantProperties } ) , ... ( input . RetainDeploymentConfig !== undefined && input . RetainDeploymentConfig !== null && { RetainDeploymentConfig : input . RetainDeploymentConfig } ) , } ; } ; const serializeAws_json1_1UpdateEndpointWeightsAndCapacitiesInput = ( input , context ) : any => { return { ... ( input . DesiredWeightsAndCapacities !== undefined && input . DesiredWeightsAndCapacities !== null && { DesiredWeightsAndCapacities : serializeAws_json1_1DesiredWeightAndCapacityList ( input . DesiredWeightsAndCapacities , context ) , } ) , ... ( input . EndpointName !== undefined && input . EndpointName !== null && { EndpointName : input . EndpointName } ) , } ; } ; const serializeAws_json1_1UpdateExperimentRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . ExperimentName !== undefined && input . ExperimentName !== null && { ExperimentName : input . ExperimentName } ) , } ; } ; const serializeAws_json1_1UpdateImageRequest = ( input , context ) : any => { return { ... ( input . DeleteProperties !== undefined && input . DeleteProperties !== null && { DeleteProperties : serializeAws_json1_1ImageDeletePropertyList ( input . DeleteProperties , context ) , } ) , ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . ImageName !== undefined && input . ImageName !== null && { ImageName : input . ImageName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , } ; } ; const serializeAws_json1_1UpdateModelPackageInput = ( input , context ) : any => { return { ... ( input . AdditionalInferenceSpecificationsToAdd !== undefined && input . AdditionalInferenceSpecificationsToAdd !== null && { AdditionalInferenceSpecificationsToAdd : serializeAws_json1_1AdditionalInferenceSpecifications ( input . AdditionalInferenceSpecificationsToAdd , context ) , } ) , ... ( input . ApprovalDescription !== undefined && input . ApprovalDescription !== null && { ApprovalDescription : input . ApprovalDescription } ) , ... ( input . CustomerMetadataProperties !== undefined && input . CustomerMetadataProperties !== null && { CustomerMetadataProperties : serializeAws_json1_1CustomerMetadataMap ( input . CustomerMetadataProperties , context ) , } ) , ... ( input . CustomerMetadataPropertiesToRemove !== undefined && input . CustomerMetadataPropertiesToRemove !== null && { CustomerMetadataPropertiesToRemove : serializeAws_json1_1CustomerMetadataKeyList ( input . CustomerMetadataPropertiesToRemove , context ) , } ) , ... ( input . ModelApprovalStatus !== undefined && input . ModelApprovalStatus !== null && { ModelApprovalStatus : input . ModelApprovalStatus } ) , ... ( input . ModelPackageArn !== undefined && input . ModelPackageArn !== null && { ModelPackageArn : input . ModelPackageArn } ) , } ; } ; const serializeAws_json1_1UpdateMonitoringScheduleRequest = ( input , context ) : any => { return { ... ( input . MonitoringScheduleConfig !== undefined && input . MonitoringScheduleConfig !== null && { MonitoringScheduleConfig : serializeAws_json1_1MonitoringScheduleConfig ( input . MonitoringScheduleConfig , context ) , } ) , ... ( input . MonitoringScheduleName !== undefined && input . MonitoringScheduleName !== null && { MonitoringScheduleName : input . MonitoringScheduleName } ) , } ; } ; const serializeAws_json1_1UpdateNotebookInstanceInput = ( input , context ) : any => { return { ... ( input . AcceleratorTypes !== undefined && input . AcceleratorTypes !== null && { AcceleratorTypes : serializeAws_json1_1NotebookInstanceAcceleratorTypes ( input . AcceleratorTypes , context ) , } ) , ... ( input . AdditionalCodeRepositories !== undefined && input . AdditionalCodeRepositories !== null && { AdditionalCodeRepositories : serializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls ( input . AdditionalCodeRepositories , context ) , } ) , ... ( input . DefaultCodeRepository !== undefined && input . DefaultCodeRepository !== null && { DefaultCodeRepository : input . DefaultCodeRepository } ) , ... ( input . DisassociateAcceleratorTypes !== undefined && input . DisassociateAcceleratorTypes !== null && { DisassociateAcceleratorTypes : input . DisassociateAcceleratorTypes , } ) , ... ( input . DisassociateAdditionalCodeRepositories !== undefined && input . DisassociateAdditionalCodeRepositories !== null && { DisassociateAdditionalCodeRepositories : input . DisassociateAdditionalCodeRepositories , } ) , ... ( input . DisassociateDefaultCodeRepository !== undefined && input . DisassociateDefaultCodeRepository !== null && { DisassociateDefaultCodeRepository : input . DisassociateDefaultCodeRepository , } ) , ... ( input . DisassociateLifecycleConfig !== undefined && input . DisassociateLifecycleConfig !== null && { DisassociateLifecycleConfig : input . DisassociateLifecycleConfig } ) , ... ( input . InstanceType !== undefined && input . InstanceType !== null && { InstanceType : input . InstanceType } ) , ... ( input . LifecycleConfigName !== undefined && input . LifecycleConfigName !== null && { LifecycleConfigName : input . LifecycleConfigName } ) , ... ( input . NotebookInstanceName !== undefined && input . NotebookInstanceName !== null && { NotebookInstanceName : input . NotebookInstanceName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , ... ( input . RootAccess !== undefined && input . RootAccess !== null && { RootAccess : input . RootAccess } ) , ... ( input . VolumeSizeInGB !== undefined && input . VolumeSizeInGB !== null && { VolumeSizeInGB : input . VolumeSizeInGB } ) , } ; } ; const serializeAws_json1_1UpdateNotebookInstanceLifecycleConfigInput = ( input , context ) : any => { return { ... ( input . NotebookInstanceLifecycleConfigName !== undefined && input . NotebookInstanceLifecycleConfigName !== null && { NotebookInstanceLifecycleConfigName : input . NotebookInstanceLifecycleConfigName , } ) , ... ( input . OnCreate !== undefined && input . OnCreate !== null && { OnCreate : serializeAws_json1_1NotebookInstanceLifecycleConfigList ( input . OnCreate , context ) , } ) , ... ( input . OnStart !== undefined && input . OnStart !== null && { OnStart : serializeAws_json1_1NotebookInstanceLifecycleConfigList ( input . OnStart , context ) , } ) , } ; } ; const serializeAws_json1_1UpdatePipelineExecutionRequest = ( input , context ) : any => { return { ... ( input . ParallelismConfiguration !== undefined && input . ParallelismConfiguration !== null && { ParallelismConfiguration : serializeAws_json1_1ParallelismConfiguration ( input . ParallelismConfiguration , context ) , } ) , ... ( input . PipelineExecutionArn !== undefined && input . PipelineExecutionArn !== null && { PipelineExecutionArn : input . PipelineExecutionArn } ) , ... ( input . PipelineExecutionDescription !== undefined && input . PipelineExecutionDescription !== null && { PipelineExecutionDescription : input . PipelineExecutionDescription , } ) , ... ( input . PipelineExecutionDisplayName !== undefined && input . PipelineExecutionDisplayName !== null && { PipelineExecutionDisplayName : input . PipelineExecutionDisplayName , } ) , } ; } ; const serializeAws_json1_1UpdatePipelineRequest = ( input , context ) : any => { return { ... ( input . ParallelismConfiguration !== undefined && input . ParallelismConfiguration !== null && { ParallelismConfiguration : serializeAws_json1_1ParallelismConfiguration ( input . ParallelismConfiguration , context ) , } ) , ... ( input . PipelineDefinition !== undefined && input . PipelineDefinition !== null && { PipelineDefinition : input . PipelineDefinition } ) , ... ( input . PipelineDefinitionS3Location !== undefined && input . PipelineDefinitionS3Location !== null && { PipelineDefinitionS3Location : serializeAws_json1_1PipelineDefinitionS3Location ( input . PipelineDefinitionS3Location , context ) , } ) , ... ( input . PipelineDescription !== undefined && input . PipelineDescription !== null && { PipelineDescription : input . PipelineDescription } ) , ... ( input . PipelineDisplayName !== undefined && input . PipelineDisplayName !== null && { PipelineDisplayName : input . PipelineDisplayName } ) , ... ( input . PipelineName !== undefined && input . PipelineName !== null && { PipelineName : input . PipelineName } ) , ... ( input . RoleArn !== undefined && input . RoleArn !== null && { RoleArn : input . RoleArn } ) , } ; } ; const serializeAws_json1_1UpdateProjectInput = ( input , context ) : any => { return { ... ( input . ProjectDescription !== undefined && input . ProjectDescription !== null && { ProjectDescription : input . ProjectDescription } ) , ... ( input . ProjectName !== undefined && input . ProjectName !== null && { ProjectName : input . ProjectName } ) , ... ( input . ServiceCatalogProvisioningUpdateDetails !== undefined && input . ServiceCatalogProvisioningUpdateDetails !== null && { ServiceCatalogProvisioningUpdateDetails : serializeAws_json1_1ServiceCatalogProvisioningUpdateDetails ( input . ServiceCatalogProvisioningUpdateDetails , context ) , } ) , ... ( input . Tags !== undefined && input . Tags !== null && { Tags : serializeAws_json1_1TagList ( input . Tags , context ) } ) , } ; } ; const serializeAws_json1_1UpdateTrainingJobRequest = ( input , context ) : any => { return { ... ( input . ProfilerConfig !== undefined && input . ProfilerConfig !== null && { ProfilerConfig : serializeAws_json1_1ProfilerConfigForUpdate ( input . ProfilerConfig , context ) , } ) , ... ( input . ProfilerRuleConfigurations !== undefined && input . ProfilerRuleConfigurations !== null && { ProfilerRuleConfigurations : serializeAws_json1_1ProfilerRuleConfigurations ( input . ProfilerRuleConfigurations , context ) , } ) , ... ( input . TrainingJobName !== undefined && input . TrainingJobName !== null && { TrainingJobName : input . TrainingJobName } ) , } ; } ; const serializeAws_json1_1UpdateTrialComponentRequest = ( input , context ) : any => { return { ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . EndTime !== undefined && input . EndTime !== null && { EndTime : Math . round ( input . EndTime . getTime ( ) / 1000 ) } ) , ... ( input . InputArtifacts !== undefined && input . InputArtifacts !== null && { InputArtifacts : serializeAws_json1_1TrialComponentArtifacts ( input . InputArtifacts , context ) , } ) , ... ( input . InputArtifactsToRemove !== undefined && input . InputArtifactsToRemove !== null && { InputArtifactsToRemove : serializeAws_json1_1ListTrialComponentKey256 ( input . InputArtifactsToRemove , context ) , } ) , ... ( input . OutputArtifacts !== undefined && input . OutputArtifacts !== null && { OutputArtifacts : serializeAws_json1_1TrialComponentArtifacts ( input . OutputArtifacts , context ) , } ) , ... ( input . OutputArtifactsToRemove !== undefined && input . OutputArtifactsToRemove !== null && { OutputArtifactsToRemove : serializeAws_json1_1ListTrialComponentKey256 ( input . OutputArtifactsToRemove , context ) , } ) , ... ( input . Parameters !== undefined && input . Parameters !== null && { Parameters : serializeAws_json1_1TrialComponentParameters ( input . Parameters , context ) , } ) , ... ( input . ParametersToRemove !== undefined && input . ParametersToRemove !== null && { ParametersToRemove : serializeAws_json1_1ListTrialComponentKey256 ( input . ParametersToRemove , context ) , } ) , ... ( input . StartTime !== undefined && input . StartTime !== null && { StartTime : Math . round ( input . StartTime . getTime ( ) / 1000 ) } ) , ... ( input . Status !== undefined && input . Status !== null && { Status : serializeAws_json1_1TrialComponentStatus ( input . Status , context ) } ) , ... ( input . TrialComponentName !== undefined && input . TrialComponentName !== null && { TrialComponentName : input . TrialComponentName } ) , } ; } ; const serializeAws_json1_1UpdateTrialRequest = ( input , context ) : any => { return { ... ( input . DisplayName !== undefined && input . DisplayName !== null && { DisplayName : input . DisplayName } ) , ... ( input . TrialName !== undefined && input . TrialName !== null && { TrialName : input . TrialName } ) , } ; } ; const serializeAws_json1_1UpdateUserProfileRequest = ( input , context ) : any => { return { ... ( input . DomainId !== undefined && input . DomainId !== null && { DomainId : input . DomainId } ) , ... ( input . UserProfileName !== undefined && input . UserProfileName !== null && { UserProfileName : input . UserProfileName } ) , ... ( input . UserSettings !== undefined && input . UserSettings !== null && { UserSettings : serializeAws_json1_1UserSettings ( input . UserSettings , context ) } ) , } ; } ; const serializeAws_json1_1UpdateWorkforceRequest = ( input , context ) : any => { return { ... ( input . OidcConfig !== undefined && input . OidcConfig !== null && { OidcConfig : serializeAws_json1_1OidcConfig ( input . OidcConfig , context ) } ) , ... ( input . SourceIpConfig !== undefined && input . SourceIpConfig !== null && { SourceIpConfig : serializeAws_json1_1SourceIpConfig ( input . SourceIpConfig , context ) , } ) , ... ( input . WorkforceName !== undefined && input . WorkforceName !== null && { WorkforceName : input . WorkforceName } ) , } ; } ; const serializeAws_json1_1UpdateWorkteamRequest = ( input , context ) : any => { return { ... ( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) , ... ( input . MemberDefinitions !== undefined && input . MemberDefinitions !== null && { MemberDefinitions : serializeAws_json1_1MemberDefinitions ( input . MemberDefinitions , context ) , } ) , ... ( input . NotificationConfiguration !== undefined && input . NotificationConfiguration !== null && { NotificationConfiguration : serializeAws_json1_1NotificationConfiguration ( input . NotificationConfiguration , context ) , } ) , ... ( input . WorkteamName !== undefined && input . WorkteamName !== null && { WorkteamName : input . WorkteamName } ) , } ; } ; const serializeAws_json1_1USD = ( input , context ) : any => { return { ... ( input . Cents !== undefined && input . Cents !== null && { Cents : input . Cents } ) , ... ( input . Dollars !== undefined && input . Dollars !== null && { Dollars : input . Dollars } ) , ... ( input . TenthFractionsOfACent !== undefined && input . TenthFractionsOfACent !== null && { TenthFractionsOfACent : input . TenthFractionsOfACent } ) , } ; } ; const serializeAws_json1_1UserSettings = ( input , context ) : any => { return { ... ( input . ExecutionRole !== undefined && input . ExecutionRole !== null && { ExecutionRole : input . ExecutionRole } ) , ... ( input . JupyterServerAppSettings !== undefined && input . JupyterServerAppSettings !== null && { JupyterServerAppSettings : serializeAws_json1_1JupyterServerAppSettings ( input . JupyterServerAppSettings , context ) , } ) , ... ( input . KernelGatewayAppSettings !== undefined && input . KernelGatewayAppSettings !== null && { KernelGatewayAppSettings : serializeAws_json1_1KernelGatewayAppSettings ( input . KernelGatewayAppSettings , context ) , } ) , ... ( input . RSessionAppSettings !== undefined && input . RSessionAppSettings !== null && { RSessionAppSettings : serializeAws_json1_1RSessionAppSettings ( input . RSessionAppSettings , context ) , } ) , ... ( input . RStudioServerProAppSettings !== undefined && input . RStudioServerProAppSettings !== null && { RStudioServerProAppSettings : serializeAws_json1_1RStudioServerProAppSettings ( input . RStudioServerProAppSettings , context ) , } ) , ... ( input . SecurityGroups !== undefined && input . SecurityGroups !== null && { SecurityGroups : serializeAws_json1_1SecurityGroupIds ( input . SecurityGroups , context ) , } ) , ... ( input . SharingSettings !== undefined && input . SharingSettings !== null && { SharingSettings : serializeAws_json1_1SharingSettings ( input . SharingSettings , context ) , } ) , ... ( input . TensorBoardAppSettings !== undefined && input . TensorBoardAppSettings !== null && { TensorBoardAppSettings : serializeAws_json1_1TensorBoardAppSettings ( input . TensorBoardAppSettings , context ) , } ) , } ; } ; const serializeAws_json1_1VariantProperty = ( input , context ) : any => { return { ... ( input . VariantPropertyType !== undefined && input . VariantPropertyType !== null && { VariantPropertyType : input . VariantPropertyType } ) , } ; } ; const serializeAws_json1_1VariantPropertyList = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return serializeAws_json1_1VariantProperty ( entry , context ) ; } ) ; } ; const serializeAws_json1_1VpcConfig = ( input , context ) : any => { return { ... ( input . SecurityGroupIds !== undefined && input . SecurityGroupIds !== null && { SecurityGroupIds : serializeAws_json1_1VpcSecurityGroupIds ( input . SecurityGroupIds , context ) , } ) , ... ( input . Subnets !== undefined && input . Subnets !== null && { Subnets : serializeAws_json1_1Subnets ( input . Subnets , context ) } ) , } ; } ; const serializeAws_json1_1VpcSecurityGroupIds = ( input , context ) : any => { return input . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return entry ; } ) ; } ; const deserializeAws_json1_1ActionSource = ( output , context ) : ActionSource => { return { SourceId : __expectString ( output . SourceId ) , SourceType : __expectString ( output . SourceType ) , SourceUri : __expectString ( output . SourceUri ) , } as any ; } ; const deserializeAws_json1_1ActionSummaries = ( output , context ) : ActionSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ActionSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ActionSummary = ( output , context ) : ActionSummary => { return { ActionArn : __expectString ( output . ActionArn ) , ActionName : __expectString ( output . ActionName ) , ActionType : __expectString ( output . ActionType ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ActionSource ( output . Source , context ) : undefined , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1AddAssociationResponse = ( output , context ) : AddAssociationResponse => { return { DestinationArn : __expectString ( output . DestinationArn ) , SourceArn : __expectString ( output . SourceArn ) , } as any ; } ; const deserializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1AdditionalInferenceSpecificationDefinition = ( output , context ) : AdditionalInferenceSpecificationDefinition => { return { Containers : output . Containers !== undefined && output . Containers !== null ? deserializeAws_json1_1ModelPackageContainerDefinitionList ( output . Containers , context ) : undefined , Description : __expectString ( output . Description ) , Name : __expectString ( output . Name ) , SupportedContentTypes : output . SupportedContentTypes !== undefined && output . SupportedContentTypes !== null ? deserializeAws_json1_1ContentTypes ( output . SupportedContentTypes , context ) : undefined , SupportedRealtimeInferenceInstanceTypes : output . SupportedRealtimeInferenceInstanceTypes !== undefined && output . SupportedRealtimeInferenceInstanceTypes !== null ? deserializeAws_json1_1RealtimeInferenceInstanceTypes ( output . SupportedRealtimeInferenceInstanceTypes , context ) : undefined , SupportedResponseMIMETypes : output . SupportedResponseMIMETypes !== undefined && output . SupportedResponseMIMETypes !== null ? deserializeAws_json1_1ResponseMIMETypes ( output . SupportedResponseMIMETypes , context ) : undefined , SupportedTransformInstanceTypes : output . SupportedTransformInstanceTypes !== undefined && output . SupportedTransformInstanceTypes !== null ? deserializeAws_json1_1TransformInstanceTypes ( output . SupportedTransformInstanceTypes , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AdditionalInferenceSpecifications = ( output , context ) : AdditionalInferenceSpecificationDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AdditionalInferenceSpecificationDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AddTagsOutput = ( output , context ) : AddTagsOutput => { return { Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AgentVersion = ( output , context ) : AgentVersion => { return { AgentCount : __expectLong ( output . AgentCount ) , Version : __expectString ( output . Version ) , } as any ; } ; const deserializeAws_json1_1AgentVersions = ( output , context ) : AgentVersion [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AgentVersion ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Alarm = ( output , context ) : Alarm => { return { AlarmName : __expectString ( output . AlarmName ) , } as any ; } ; const deserializeAws_json1_1AlarmList = ( output , context ) : Alarm [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Alarm ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AlgorithmSpecification = ( output , context ) : AlgorithmSpecification => { return { AlgorithmName : __expectString ( output . AlgorithmName ) , EnableSageMakerMetricsTimeSeries : __expectBoolean ( output . EnableSageMakerMetricsTimeSeries ) , MetricDefinitions : output . MetricDefinitions !== undefined && output . MetricDefinitions !== null ? deserializeAws_json1_1MetricDefinitionList ( output . MetricDefinitions , context ) : undefined , TrainingImage : __expectString ( output . TrainingImage ) , TrainingInputMode : __expectString ( output . TrainingInputMode ) , } as any ; } ; const deserializeAws_json1_1AlgorithmStatusDetails = ( output , context ) : AlgorithmStatusDetails => { return { ImageScanStatuses : output . ImageScanStatuses !== undefined && output . ImageScanStatuses !== null ? deserializeAws_json1_1AlgorithmStatusItemList ( output . ImageScanStatuses , context ) : undefined , ValidationStatuses : output . ValidationStatuses !== undefined && output . ValidationStatuses !== null ? deserializeAws_json1_1AlgorithmStatusItemList ( output . ValidationStatuses , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AlgorithmStatusItem = ( output , context ) : AlgorithmStatusItem => { return { FailureReason : __expectString ( output . FailureReason ) , Name : __expectString ( output . Name ) , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1AlgorithmStatusItemList = ( output , context ) : AlgorithmStatusItem [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AlgorithmStatusItem ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AlgorithmSummary = ( output , context ) : AlgorithmSummary => { return { AlgorithmArn : __expectString ( output . AlgorithmArn ) , AlgorithmDescription : __expectString ( output . AlgorithmDescription ) , AlgorithmName : __expectString ( output . AlgorithmName ) , AlgorithmStatus : __expectString ( output . AlgorithmStatus ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1AlgorithmSummaryList = ( output , context ) : AlgorithmSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AlgorithmSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AlgorithmValidationProfile = ( output , context ) : AlgorithmValidationProfile => { return { ProfileName : __expectString ( output . ProfileName ) , TrainingJobDefinition : output . TrainingJobDefinition !== undefined && output . TrainingJobDefinition !== null ? deserializeAws_json1_1TrainingJobDefinition ( output . TrainingJobDefinition , context ) : undefined , TransformJobDefinition : output . TransformJobDefinition !== undefined && output . TransformJobDefinition !== null ? deserializeAws_json1_1TransformJobDefinition ( output . TransformJobDefinition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AlgorithmValidationProfiles = ( output , context ) : AlgorithmValidationProfile [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AlgorithmValidationProfile ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AlgorithmValidationSpecification = ( output , context ) : AlgorithmValidationSpecification => { return { ValidationProfiles : output . ValidationProfiles !== undefined && output . ValidationProfiles !== null ? deserializeAws_json1_1AlgorithmValidationProfiles ( output . ValidationProfiles , context ) : undefined , ValidationRole : __expectString ( output . ValidationRole ) , } as any ; } ; const deserializeAws_json1_1AnnotationConsolidationConfig = ( output , context ) : AnnotationConsolidationConfig => { return { AnnotationConsolidationLambdaArn : __expectString ( output . AnnotationConsolidationLambdaArn ) , } as any ; } ; const deserializeAws_json1_1AppDetails = ( output , context ) : AppDetails => { return { AppName : __expectString ( output . AppName ) , AppType : __expectString ( output . AppType ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DomainId : __expectString ( output . DomainId ) , Status : __expectString ( output . Status ) , UserProfileName : __expectString ( output . UserProfileName ) , } as any ; } ; const deserializeAws_json1_1AppImageConfigDetails = ( output , context ) : AppImageConfigDetails => { return { AppImageConfigArn : __expectString ( output . AppImageConfigArn ) , AppImageConfigName : __expectString ( output . AppImageConfigName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , KernelGatewayImageConfig : output . KernelGatewayImageConfig !== undefined && output . KernelGatewayImageConfig !== null ? deserializeAws_json1_1KernelGatewayImageConfig ( output . KernelGatewayImageConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1AppImageConfigList = ( output , context ) : AppImageConfigDetails [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AppImageConfigDetails ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AppList = ( output , context ) : AppDetails [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AppDetails ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AppSpecification = ( output , context ) : AppSpecification => { return { ContainerArguments : output . ContainerArguments !== undefined && output . ContainerArguments !== null ? deserializeAws_json1_1ContainerArguments ( output . ContainerArguments , context ) : undefined , ContainerEntrypoint : output . ContainerEntrypoint !== undefined && output . ContainerEntrypoint !== null ? deserializeAws_json1_1ContainerEntrypoint ( output . ContainerEntrypoint , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , } as any ; } ; const deserializeAws_json1_1ArtifactSource = ( output , context ) : ArtifactSource => { return { SourceTypes : output . SourceTypes !== undefined && output . SourceTypes !== null ? deserializeAws_json1_1ArtifactSourceTypes ( output . SourceTypes , context ) : undefined , SourceUri : __expectString ( output . SourceUri ) , } as any ; } ; const deserializeAws_json1_1ArtifactSourceType = ( output , context ) : ArtifactSourceType => { return { SourceIdType : __expectString ( output . SourceIdType ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1ArtifactSourceTypes = ( output , context ) : ArtifactSourceType [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ArtifactSourceType ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ArtifactSummaries = ( output , context ) : ArtifactSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ArtifactSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ArtifactSummary = ( output , context ) : ArtifactSummary => { return { ArtifactArn : __expectString ( output . ArtifactArn ) , ArtifactName : __expectString ( output . ArtifactName ) , ArtifactType : __expectString ( output . ArtifactType ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ArtifactSource ( output . Source , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AssociateTrialComponentResponse = ( output , context ) : AssociateTrialComponentResponse => { return { TrialArn : __expectString ( output . TrialArn ) , TrialComponentArn : __expectString ( output . TrialComponentArn ) , } as any ; } ; const deserializeAws_json1_1AssociationSummaries = ( output , context ) : AssociationSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AssociationSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AssociationSummary = ( output , context ) : AssociationSummary => { return { AssociationType : __expectString ( output . AssociationType ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DestinationArn : __expectString ( output . DestinationArn ) , DestinationName : __expectString ( output . DestinationName ) , DestinationType : __expectString ( output . DestinationType ) , SourceArn : __expectString ( output . SourceArn ) , SourceName : __expectString ( output . SourceName ) , SourceType : __expectString ( output . SourceType ) , } as any ; } ; const deserializeAws_json1_1AsyncInferenceClientConfig = ( output , context ) : AsyncInferenceClientConfig => { return { MaxConcurrentInvocationsPerInstance : __expectInt32 ( output . MaxConcurrentInvocationsPerInstance ) , } as any ; } ; const deserializeAws_json1_1AsyncInferenceConfig = ( output , context ) : AsyncInferenceConfig => { return { ClientConfig : output . ClientConfig !== undefined && output . ClientConfig !== null ? deserializeAws_json1_1AsyncInferenceClientConfig ( output . ClientConfig , context ) : undefined , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1AsyncInferenceOutputConfig ( output . OutputConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AsyncInferenceNotificationConfig = ( output , context ) : AsyncInferenceNotificationConfig => { return { ErrorTopic : __expectString ( output . ErrorTopic ) , SuccessTopic : __expectString ( output . SuccessTopic ) , } as any ; } ; const deserializeAws_json1_1AsyncInferenceOutputConfig = ( output , context ) : AsyncInferenceOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , NotificationConfig : output . NotificationConfig !== undefined && output . NotificationConfig !== null ? deserializeAws_json1_1AsyncInferenceNotificationConfig ( output . NotificationConfig , context ) : undefined , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1AthenaDatasetDefinition = ( output , context ) : AthenaDatasetDefinition => { return { Catalog : __expectString ( output . Catalog ) , Database : __expectString ( output . Database ) , KmsKeyId : __expectString ( output . KmsKeyId ) , OutputCompression : __expectString ( output . OutputCompression ) , OutputFormat : __expectString ( output . OutputFormat ) , OutputS3Uri : __expectString ( output . OutputS3Uri ) , QueryString : __expectString ( output . QueryString ) , WorkGroup : __expectString ( output . WorkGroup ) , } as any ; } ; const deserializeAws_json1_1AttributeNames = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1AutoMLCandidate = ( output , context ) : AutoMLCandidate => { return { CandidateName : __expectString ( output . CandidateName ) , CandidateProperties : output . CandidateProperties !== undefined && output . CandidateProperties !== null ? deserializeAws_json1_1CandidateProperties ( output . CandidateProperties , context ) : undefined , CandidateStatus : __expectString ( output . CandidateStatus ) , CandidateSteps : output . CandidateSteps !== undefined && output . CandidateSteps !== null ? deserializeAws_json1_1CandidateSteps ( output . CandidateSteps , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FinalAutoMLJobObjectiveMetric : output . FinalAutoMLJobObjectiveMetric !== undefined && output . FinalAutoMLJobObjectiveMetric !== null ? deserializeAws_json1_1FinalAutoMLJobObjectiveMetric ( output . FinalAutoMLJobObjectiveMetric , context ) : undefined , InferenceContainers : output . InferenceContainers !== undefined && output . InferenceContainers !== null ? deserializeAws_json1_1AutoMLContainerDefinitions ( output . InferenceContainers , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ObjectiveStatus : __expectString ( output . ObjectiveStatus ) , } as any ; } ; const deserializeAws_json1_1AutoMLCandidates = ( output , context ) : AutoMLCandidate [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLCandidate ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AutoMLCandidateStep = ( output , context ) : AutoMLCandidateStep => { return { CandidateStepArn : __expectString ( output . CandidateStepArn ) , CandidateStepName : __expectString ( output . CandidateStepName ) , CandidateStepType : __expectString ( output . CandidateStepType ) , } as any ; } ; const deserializeAws_json1_1AutoMLChannel = ( output , context ) : AutoMLChannel => { return { CompressionType : __expectString ( output . CompressionType ) , ContentType : __expectString ( output . ContentType ) , DataSource : output . DataSource !== undefined && output . DataSource !== null ? deserializeAws_json1_1AutoMLDataSource ( output . DataSource , context ) : undefined , TargetAttributeName : __expectString ( output . TargetAttributeName ) , } as any ; } ; const deserializeAws_json1_1AutoMLContainerDefinition = ( output , context ) : AutoMLContainerDefinition => { return { Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1EnvironmentMap ( output . Environment , context ) : undefined , Image : __expectString ( output . Image ) , ModelDataUrl : __expectString ( output . ModelDataUrl ) , } as any ; } ; const deserializeAws_json1_1AutoMLContainerDefinitions = ( output , context ) : AutoMLContainerDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLContainerDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AutoMLDataSource = ( output , context ) : AutoMLDataSource => { return { S3DataSource : output . S3DataSource !== undefined && output . S3DataSource !== null ? deserializeAws_json1_1AutoMLS3DataSource ( output . S3DataSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AutoMLInputDataConfig = ( output , context ) : AutoMLChannel [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLChannel ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AutoMLJobArtifacts = ( output , context ) : AutoMLJobArtifacts => { return { CandidateDefinitionNotebookLocation : __expectString ( output . CandidateDefinitionNotebookLocation ) , DataExplorationNotebookLocation : __expectString ( output . DataExplorationNotebookLocation ) , } as any ; } ; const deserializeAws_json1_1AutoMLJobCompletionCriteria = ( output , context ) : AutoMLJobCompletionCriteria => { return { MaxAutoMLJobRuntimeInSeconds : __expectInt32 ( output . MaxAutoMLJobRuntimeInSeconds ) , MaxCandidates : __expectInt32 ( output . MaxCandidates ) , MaxRuntimePerTrainingJobInSeconds : __expectInt32 ( output . MaxRuntimePerTrainingJobInSeconds ) , } as any ; } ; const deserializeAws_json1_1AutoMLJobConfig = ( output , context ) : AutoMLJobConfig => { return { CompletionCriteria : output . CompletionCriteria !== undefined && output . CompletionCriteria !== null ? deserializeAws_json1_1AutoMLJobCompletionCriteria ( output . CompletionCriteria , context ) : undefined , SecurityConfig : output . SecurityConfig !== undefined && output . SecurityConfig !== null ? deserializeAws_json1_1AutoMLSecurityConfig ( output . SecurityConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AutoMLJobObjective = ( output , context ) : AutoMLJobObjective => { return { MetricName : __expectString ( output . MetricName ) , } as any ; } ; const deserializeAws_json1_1AutoMLJobSummaries = ( output , context ) : AutoMLJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AutoMLJobSummary = ( output , context ) : AutoMLJobSummary => { return { AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , AutoMLJobName : __expectString ( output . AutoMLJobName ) , AutoMLJobSecondaryStatus : __expectString ( output . AutoMLJobSecondaryStatus ) , AutoMLJobStatus : __expectString ( output . AutoMLJobStatus ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , PartialFailureReasons : output . PartialFailureReasons !== undefined && output . PartialFailureReasons !== null ? deserializeAws_json1_1AutoMLPartialFailureReasons ( output . PartialFailureReasons , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AutoMLOutputDataConfig = ( output , context ) : AutoMLOutputDataConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1AutoMLPartialFailureReason = ( output , context ) : AutoMLPartialFailureReason => { return { PartialFailureMessage : __expectString ( output . PartialFailureMessage ) , } as any ; } ; const deserializeAws_json1_1AutoMLPartialFailureReasons = ( output , context ) : AutoMLPartialFailureReason [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLPartialFailureReason ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1AutoMLS3DataSource = ( output , context ) : AutoMLS3DataSource => { return { S3DataType : __expectString ( output . S3DataType ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1AutoMLSecurityConfig = ( output , context ) : AutoMLSecurityConfig => { return { EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1AutoRollbackConfig = ( output , context ) : AutoRollbackConfig => { return { Alarms : output . Alarms !== undefined && output . Alarms !== null ? deserializeAws_json1_1AlarmList ( output . Alarms , context ) : undefined , } as any ; } ; const deserializeAws_json1_1BatchDescribeModelPackageError = ( output , context ) : BatchDescribeModelPackageError => { return { ErrorCode : __expectString ( output . ErrorCode ) , ErrorResponse : __expectString ( output . ErrorResponse ) , } as any ; } ; const deserializeAws_json1_1BatchDescribeModelPackageErrorMap = ( output , context ) : { [ key ] : BatchDescribeModelPackageError ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : deserializeAws_json1_1BatchDescribeModelPackageError ( value , context ) , } ; } , { } ) ; } ; const deserializeAws_json1_1BatchDescribeModelPackageOutput = ( output , context ) : BatchDescribeModelPackageOutput => { return { BatchDescribeModelPackageErrorMap : output . BatchDescribeModelPackageErrorMap !== undefined && output . BatchDescribeModelPackageErrorMap !== null ? deserializeAws_json1_1BatchDescribeModelPackageErrorMap ( output . BatchDescribeModelPackageErrorMap , context ) : undefined , ModelPackageSummaries : output . ModelPackageSummaries !== undefined && output . ModelPackageSummaries !== null ? deserializeAws_json1_1ModelPackageSummaries ( output . ModelPackageSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1BatchDescribeModelPackageSummary = ( output , context ) : BatchDescribeModelPackageSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , InferenceSpecification : output . InferenceSpecification !== undefined && output . InferenceSpecification !== null ? deserializeAws_json1_1InferenceSpecification ( output . InferenceSpecification , context ) : undefined , ModelApprovalStatus : __expectString ( output . ModelApprovalStatus ) , ModelPackageArn : __expectString ( output . ModelPackageArn ) , ModelPackageDescription : __expectString ( output . ModelPackageDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageStatus : __expectString ( output . ModelPackageStatus ) , ModelPackageVersion : __expectInt32 ( output . ModelPackageVersion ) , } as any ; } ; const deserializeAws_json1_1Bias = ( output , context ) : Bias => { return { PostTrainingReport : output . PostTrainingReport !== undefined && output . PostTrainingReport !== null ? deserializeAws_json1_1MetricsSource ( output . PostTrainingReport , context ) : undefined , PreTrainingReport : output . PreTrainingReport !== undefined && output . PreTrainingReport !== null ? deserializeAws_json1_1MetricsSource ( output . PreTrainingReport , context ) : undefined , Report : output . Report !== undefined && output . Report !== null ? deserializeAws_json1_1MetricsSource ( output . Report , context ) : undefined , } as any ; } ; const deserializeAws_json1_1BlueGreenUpdatePolicy = ( output , context ) : BlueGreenUpdatePolicy => { return { MaximumExecutionTimeoutInSeconds : __expectInt32 ( output . MaximumExecutionTimeoutInSeconds ) , TerminationWaitInSeconds : __expectInt32 ( output . TerminationWaitInSeconds ) , TrafficRoutingConfiguration : output . TrafficRoutingConfiguration !== undefined && output . TrafficRoutingConfiguration !== null ? deserializeAws_json1_1TrafficRoutingConfig ( output . TrafficRoutingConfiguration , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CacheHitResult = ( output , context ) : CacheHitResult => { return { SourcePipelineExecutionArn : __expectString ( output . SourcePipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1CallbackStepMetadata = ( output , context ) : CallbackStepMetadata => { return { CallbackToken : __expectString ( output . CallbackToken ) , OutputParameters : output . OutputParameters !== undefined && output . OutputParameters !== null ? deserializeAws_json1_1OutputParameterList ( output . OutputParameters , context ) : undefined , SqsQueueUrl : __expectString ( output . SqsQueueUrl ) , } as any ; } ; const deserializeAws_json1_1CandidateArtifactLocations = ( output , context ) : CandidateArtifactLocations => { return { Explainability : __expectString ( output . Explainability ) , } as any ; } ; const deserializeAws_json1_1CandidateProperties = ( output , context ) : CandidateProperties => { return { CandidateArtifactLocations : output . CandidateArtifactLocations !== undefined && output . CandidateArtifactLocations !== null ? deserializeAws_json1_1CandidateArtifactLocations ( output . CandidateArtifactLocations , context ) : undefined , CandidateMetrics : output . CandidateMetrics !== undefined && output . CandidateMetrics !== null ? deserializeAws_json1_1MetricDataList ( output . CandidateMetrics , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CandidateSteps = ( output , context ) : AutoMLCandidateStep [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1AutoMLCandidateStep ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CapacitySize = ( output , context ) : CapacitySize => { return { Type : __expectString ( output . Type ) , Value : __expectInt32 ( output . Value ) , } as any ; } ; const deserializeAws_json1_1CaptureContentTypeHeader = ( output , context ) : CaptureContentTypeHeader => { return { CsvContentTypes : output . CsvContentTypes !== undefined && output . CsvContentTypes !== null ? deserializeAws_json1_1CsvContentTypes ( output . CsvContentTypes , context ) : undefined , JsonContentTypes : output . JsonContentTypes !== undefined && output . JsonContentTypes !== null ? deserializeAws_json1_1JsonContentTypes ( output . JsonContentTypes , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CaptureOption = ( output , context ) : CaptureOption => { return { CaptureMode : __expectString ( output . CaptureMode ) , } as any ; } ; const deserializeAws_json1_1CaptureOptionList = ( output , context ) : CaptureOption [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CaptureOption ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CategoricalParameter = ( output , context ) : CategoricalParameter => { return { Name : __expectString ( output . Name ) , Value : output . Value !== undefined && output . Value !== null ? deserializeAws_json1_1CategoricalParameterRangeValues ( output . Value , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CategoricalParameterRange = ( output , context ) : CategoricalParameterRange => { return { Name : __expectString ( output . Name ) , Values : output . Values !== undefined && output . Values !== null ? deserializeAws_json1_1ParameterValues ( output . Values , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CategoricalParameterRanges = ( output , context ) : CategoricalParameterRange [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CategoricalParameterRange ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CategoricalParameterRangeSpecification = ( output , context ) : CategoricalParameterRangeSpecification => { return { Values : output . Values !== undefined && output . Values !== null ? deserializeAws_json1_1ParameterValues ( output . Values , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CategoricalParameterRangeValues = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1CategoricalParameters = ( output , context ) : CategoricalParameter [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CategoricalParameter ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Channel = ( output , context ) : Channel => { return { ChannelName : __expectString ( output . ChannelName ) , CompressionType : __expectString ( output . CompressionType ) , ContentType : __expectString ( output . ContentType ) , DataSource : output . DataSource !== undefined && output . DataSource !== null ? deserializeAws_json1_1DataSource ( output . DataSource , context ) : undefined , InputMode : __expectString ( output . InputMode ) , RecordWrapperType : __expectString ( output . RecordWrapperType ) , ShuffleConfig : output . ShuffleConfig !== undefined && output . ShuffleConfig !== null ? deserializeAws_json1_1ShuffleConfig ( output . ShuffleConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ChannelSpecification = ( output , context ) : ChannelSpecification => { return { Description : __expectString ( output . Description ) , IsRequired : __expectBoolean ( output . IsRequired ) , Name : __expectString ( output . Name ) , SupportedCompressionTypes : output . SupportedCompressionTypes !== undefined && output . SupportedCompressionTypes !== null ? deserializeAws_json1_1CompressionTypes ( output . SupportedCompressionTypes , context ) : undefined , SupportedContentTypes : output . SupportedContentTypes !== undefined && output . SupportedContentTypes !== null ? deserializeAws_json1_1ContentTypes ( output . SupportedContentTypes , context ) : undefined , SupportedInputModes : output . SupportedInputModes !== undefined && output . SupportedInputModes !== null ? deserializeAws_json1_1InputModes ( output . SupportedInputModes , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ChannelSpecifications = ( output , context ) : ChannelSpecification [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ChannelSpecification ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CheckpointConfig = ( output , context ) : CheckpointConfig => { return { LocalPath : __expectString ( output . LocalPath ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1Cidrs = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ClarifyCheckStepMetadata = ( output , context ) : ClarifyCheckStepMetadata => { return { BaselineUsedForDriftCheckConstraints : __expectString ( output . BaselineUsedForDriftCheckConstraints ) , CalculatedBaselineConstraints : __expectString ( output . CalculatedBaselineConstraints ) , CheckJobArn : __expectString ( output . CheckJobArn ) , CheckType : __expectString ( output . CheckType ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , RegisterNewBaseline : __expectBoolean ( output . RegisterNewBaseline ) , SkipCheck : __expectBoolean ( output . SkipCheck ) , ViolationReport : __expectString ( output . ViolationReport ) , } as any ; } ; const deserializeAws_json1_1CodeRepositorySummary = ( output , context ) : CodeRepositorySummary => { return { CodeRepositoryArn : __expectString ( output . CodeRepositoryArn ) , CodeRepositoryName : __expectString ( output . CodeRepositoryName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , GitConfig : output . GitConfig !== undefined && output . GitConfig !== null ? deserializeAws_json1_1GitConfig ( output . GitConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1CodeRepositorySummaryList = ( output , context ) : CodeRepositorySummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CodeRepositorySummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CognitoConfig = ( output , context ) : CognitoConfig => { return { ClientId : __expectString ( output . ClientId ) , UserPool : __expectString ( output . UserPool ) , } as any ; } ; const deserializeAws_json1_1CognitoMemberDefinition = ( output , context ) : CognitoMemberDefinition => { return { ClientId : __expectString ( output . ClientId ) , UserGroup : __expectString ( output . UserGroup ) , UserPool : __expectString ( output . UserPool ) , } as any ; } ; const deserializeAws_json1_1CollectionConfiguration = ( output , context ) : CollectionConfiguration => { return { CollectionName : __expectString ( output . CollectionName ) , CollectionParameters : output . CollectionParameters !== undefined && output . CollectionParameters !== null ? deserializeAws_json1_1CollectionParameters ( output . CollectionParameters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1CollectionConfigurations = ( output , context ) : CollectionConfiguration [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CollectionConfiguration ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CollectionParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1CompilationJobSummaries = ( output , context ) : CompilationJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CompilationJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1CompilationJobSummary = ( output , context ) : CompilationJobSummary => { return { CompilationEndTime : output . CompilationEndTime !== undefined && output . CompilationEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompilationEndTime ) ) ) : undefined , CompilationJobArn : __expectString ( output . CompilationJobArn ) , CompilationJobName : __expectString ( output . CompilationJobName ) , CompilationJobStatus : __expectString ( output . CompilationJobStatus ) , CompilationStartTime : output . CompilationStartTime !== undefined && output . CompilationStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompilationStartTime ) ) ) : undefined , CompilationTargetDevice : __expectString ( output . CompilationTargetDevice ) , CompilationTargetPlatformAccelerator : __expectString ( output . CompilationTargetPlatformAccelerator ) , CompilationTargetPlatformArch : __expectString ( output . CompilationTargetPlatformArch ) , CompilationTargetPlatformOs : __expectString ( output . CompilationTargetPlatformOs ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1CompressionTypes = ( output , context ) : ( CompressionType | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ConditionStepMetadata = ( output , context ) : ConditionStepMetadata => { return { Outcome : __expectString ( output . Outcome ) , } as any ; } ; const deserializeAws_json1_1ConflictException = ( output , context ) : ConflictException => { return { Message : __expectString ( output . Message ) , } as any ; } ; const deserializeAws_json1_1ContainerArguments = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ContainerDefinition = ( output , context ) : ContainerDefinition => { return { ContainerHostname : __expectString ( output . ContainerHostname ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1EnvironmentMap ( output . Environment , context ) : undefined , Image : __expectString ( output . Image ) , ImageConfig : output . ImageConfig !== undefined && output . ImageConfig !== null ? deserializeAws_json1_1ImageConfig ( output . ImageConfig , context ) : undefined , InferenceSpecificationName : __expectString ( output . InferenceSpecificationName ) , Mode : __expectString ( output . Mode ) , ModelDataUrl : __expectString ( output . ModelDataUrl ) , ModelPackageName : __expectString ( output . ModelPackageName ) , MultiModelConfig : output . MultiModelConfig !== undefined && output . MultiModelConfig !== null ? deserializeAws_json1_1MultiModelConfig ( output . MultiModelConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ContainerDefinitionList = ( output , context ) : ContainerDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ContainerDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ContainerEntrypoint = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ContentClassifiers = ( output , context ) : ( ContentClassifier | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ContentTypes = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ContextSource = ( output , context ) : ContextSource => { return { SourceId : __expectString ( output . SourceId ) , SourceType : __expectString ( output . SourceType ) , SourceUri : __expectString ( output . SourceUri ) , } as any ; } ; const deserializeAws_json1_1ContextSummaries = ( output , context ) : ContextSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ContextSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ContextSummary = ( output , context ) : ContextSummary => { return { ContextArn : __expectString ( output . ContextArn ) , ContextName : __expectString ( output . ContextName ) , ContextType : __expectString ( output . ContextType ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ContextSource ( output . Source , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ContinuousParameterRange = ( output , context ) : ContinuousParameterRange => { return { MaxValue : __expectString ( output . MaxValue ) , MinValue : __expectString ( output . MinValue ) , Name : __expectString ( output . Name ) , ScalingType : __expectString ( output . ScalingType ) , } as any ; } ; const deserializeAws_json1_1ContinuousParameterRanges = ( output , context ) : ContinuousParameterRange [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ContinuousParameterRange ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ContinuousParameterRangeSpecification = ( output , context ) : ContinuousParameterRangeSpecification => { return { MaxValue : __expectString ( output . MaxValue ) , MinValue : __expectString ( output . MinValue ) , } as any ; } ; const deserializeAws_json1_1CreateActionResponse = ( output , context ) : CreateActionResponse => { return { ActionArn : __expectString ( output . ActionArn ) , } as any ; } ; const deserializeAws_json1_1CreateAlgorithmOutput = ( output , context ) : CreateAlgorithmOutput => { return { AlgorithmArn : __expectString ( output . AlgorithmArn ) , } as any ; } ; const deserializeAws_json1_1CreateAppImageConfigResponse = ( output , context ) : CreateAppImageConfigResponse => { return { AppImageConfigArn : __expectString ( output . AppImageConfigArn ) , } as any ; } ; const deserializeAws_json1_1CreateAppResponse = ( output , context ) : CreateAppResponse => { return { AppArn : __expectString ( output . AppArn ) , } as any ; } ; const deserializeAws_json1_1CreateArtifactResponse = ( output , context ) : CreateArtifactResponse => { return { ArtifactArn : __expectString ( output . ArtifactArn ) , } as any ; } ; const deserializeAws_json1_1CreateAutoMLJobResponse = ( output , context ) : CreateAutoMLJobResponse => { return { AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateCodeRepositoryOutput = ( output , context ) : CreateCodeRepositoryOutput => { return { CodeRepositoryArn : __expectString ( output . CodeRepositoryArn ) , } as any ; } ; const deserializeAws_json1_1CreateCompilationJobResponse = ( output , context ) : CreateCompilationJobResponse => { return { CompilationJobArn : __expectString ( output . CompilationJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateContextResponse = ( output , context ) : CreateContextResponse => { return { ContextArn : __expectString ( output . ContextArn ) , } as any ; } ; const deserializeAws_json1_1CreateDataQualityJobDefinitionResponse = ( output , context ) : CreateDataQualityJobDefinitionResponse => { return { JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , } as any ; } ; const deserializeAws_json1_1CreateDomainResponse = ( output , context ) : CreateDomainResponse => { return { DomainArn : __expectString ( output . DomainArn ) , Url : __expectString ( output . Url ) , } as any ; } ; const deserializeAws_json1_1CreateEndpointConfigOutput = ( output , context ) : CreateEndpointConfigOutput => { return { EndpointConfigArn : __expectString ( output . EndpointConfigArn ) , } as any ; } ; const deserializeAws_json1_1CreateEndpointOutput = ( output , context ) : CreateEndpointOutput => { return { EndpointArn : __expectString ( output . EndpointArn ) , } as any ; } ; const deserializeAws_json1_1CreateExperimentResponse = ( output , context ) : CreateExperimentResponse => { return { ExperimentArn : __expectString ( output . ExperimentArn ) , } as any ; } ; const deserializeAws_json1_1CreateFeatureGroupResponse = ( output , context ) : CreateFeatureGroupResponse => { return { FeatureGroupArn : __expectString ( output . FeatureGroupArn ) , } as any ; } ; const deserializeAws_json1_1CreateFlowDefinitionResponse = ( output , context ) : CreateFlowDefinitionResponse => { return { FlowDefinitionArn : __expectString ( output . FlowDefinitionArn ) , } as any ; } ; const deserializeAws_json1_1CreateHumanTaskUiResponse = ( output , context ) : CreateHumanTaskUiResponse => { return { HumanTaskUiArn : __expectString ( output . HumanTaskUiArn ) , } as any ; } ; const deserializeAws_json1_1CreateHyperParameterTuningJobResponse = ( output , context ) : CreateHyperParameterTuningJobResponse => { return { HyperParameterTuningJobArn : __expectString ( output . HyperParameterTuningJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateImageResponse = ( output , context ) : CreateImageResponse => { return { ImageArn : __expectString ( output . ImageArn ) , } as any ; } ; const deserializeAws_json1_1CreateImageVersionResponse = ( output , context ) : CreateImageVersionResponse => { return { ImageVersionArn : __expectString ( output . ImageVersionArn ) , } as any ; } ; const deserializeAws_json1_1CreateInferenceRecommendationsJobResponse = ( output , context ) : CreateInferenceRecommendationsJobResponse => { return { JobArn : __expectString ( output . JobArn ) , } as any ; } ; const deserializeAws_json1_1CreateLabelingJobResponse = ( output , context ) : CreateLabelingJobResponse => { return { LabelingJobArn : __expectString ( output . LabelingJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelBiasJobDefinitionResponse = ( output , context ) : CreateModelBiasJobDefinitionResponse => { return { JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelExplainabilityJobDefinitionResponse = ( output , context ) : CreateModelExplainabilityJobDefinitionResponse => { return { JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelOutput = ( output , context ) : CreateModelOutput => { return { ModelArn : __expectString ( output . ModelArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelPackageGroupOutput = ( output , context ) : CreateModelPackageGroupOutput => { return { ModelPackageGroupArn : __expectString ( output . ModelPackageGroupArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelPackageOutput = ( output , context ) : CreateModelPackageOutput => { return { ModelPackageArn : __expectString ( output . ModelPackageArn ) , } as any ; } ; const deserializeAws_json1_1CreateModelQualityJobDefinitionResponse = ( output , context ) : CreateModelQualityJobDefinitionResponse => { return { JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , } as any ; } ; const deserializeAws_json1_1CreateMonitoringScheduleResponse = ( output , context ) : CreateMonitoringScheduleResponse => { return { MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , } as any ; } ; const deserializeAws_json1_1CreateNotebookInstanceLifecycleConfigOutput = ( output , context ) : CreateNotebookInstanceLifecycleConfigOutput => { return { NotebookInstanceLifecycleConfigArn : __expectString ( output . NotebookInstanceLifecycleConfigArn ) , } as any ; } ; const deserializeAws_json1_1CreateNotebookInstanceOutput = ( output , context ) : CreateNotebookInstanceOutput => { return { NotebookInstanceArn : __expectString ( output . NotebookInstanceArn ) , } as any ; } ; const deserializeAws_json1_1CreatePipelineResponse = ( output , context ) : CreatePipelineResponse => { return { PipelineArn : __expectString ( output . PipelineArn ) , } as any ; } ; const deserializeAws_json1_1CreatePresignedDomainUrlResponse = ( output , context ) : CreatePresignedDomainUrlResponse => { return { AuthorizedUrl : __expectString ( output . AuthorizedUrl ) , } as any ; } ; const deserializeAws_json1_1CreatePresignedNotebookInstanceUrlOutput = ( output , context ) : CreatePresignedNotebookInstanceUrlOutput => { return { AuthorizedUrl : __expectString ( output . AuthorizedUrl ) , } as any ; } ; const deserializeAws_json1_1CreateProcessingJobResponse = ( output , context ) : CreateProcessingJobResponse => { return { ProcessingJobArn : __expectString ( output . ProcessingJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateProjectOutput = ( output , context ) : CreateProjectOutput => { return { ProjectArn : __expectString ( output . ProjectArn ) , ProjectId : __expectString ( output . ProjectId ) , } as any ; } ; const deserializeAws_json1_1CreateStudioLifecycleConfigResponse = ( output , context ) : CreateStudioLifecycleConfigResponse => { return { StudioLifecycleConfigArn : __expectString ( output . StudioLifecycleConfigArn ) , } as any ; } ; const deserializeAws_json1_1CreateTrainingJobResponse = ( output , context ) : CreateTrainingJobResponse => { return { TrainingJobArn : __expectString ( output . TrainingJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateTransformJobResponse = ( output , context ) : CreateTransformJobResponse => { return { TransformJobArn : __expectString ( output . TransformJobArn ) , } as any ; } ; const deserializeAws_json1_1CreateTrialComponentResponse = ( output , context ) : CreateTrialComponentResponse => { return { TrialComponentArn : __expectString ( output . TrialComponentArn ) , } as any ; } ; const deserializeAws_json1_1CreateTrialResponse = ( output , context ) : CreateTrialResponse => { return { TrialArn : __expectString ( output . TrialArn ) , } as any ; } ; const deserializeAws_json1_1CreateUserProfileResponse = ( output , context ) : CreateUserProfileResponse => { return { UserProfileArn : __expectString ( output . UserProfileArn ) , } as any ; } ; const deserializeAws_json1_1CreateWorkforceResponse = ( output , context ) : CreateWorkforceResponse => { return { WorkforceArn : __expectString ( output . WorkforceArn ) , } as any ; } ; const deserializeAws_json1_1CreateWorkteamResponse = ( output , context ) : CreateWorkteamResponse => { return { WorkteamArn : __expectString ( output . WorkteamArn ) , } as any ; } ; const deserializeAws_json1_1CsvContentTypes = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1CustomerMetadataMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1CustomImage = ( output , context ) : CustomImage => { return { AppImageConfigName : __expectString ( output . AppImageConfigName ) , ImageName : __expectString ( output . ImageName ) , ImageVersionNumber : __expectInt32 ( output . ImageVersionNumber ) , } as any ; } ; const deserializeAws_json1_1CustomImages = ( output , context ) : CustomImage [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1CustomImage ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DataCaptureConfig = ( output , context ) : DataCaptureConfig => { return { CaptureContentTypeHeader : output . CaptureContentTypeHeader !== undefined && output . CaptureContentTypeHeader !== null ? deserializeAws_json1_1CaptureContentTypeHeader ( output . CaptureContentTypeHeader , context ) : undefined , CaptureOptions : output . CaptureOptions !== undefined && output . CaptureOptions !== null ? deserializeAws_json1_1CaptureOptionList ( output . CaptureOptions , context ) : undefined , DestinationS3Uri : __expectString ( output . DestinationS3Uri ) , EnableCapture : __expectBoolean ( output . EnableCapture ) , InitialSamplingPercentage : __expectInt32 ( output . InitialSamplingPercentage ) , KmsKeyId : __expectString ( output . KmsKeyId ) , } as any ; } ; const deserializeAws_json1_1DataCaptureConfigSummary = ( output , context ) : DataCaptureConfigSummary => { return { CaptureStatus : __expectString ( output . CaptureStatus ) , CurrentSamplingPercentage : __expectInt32 ( output . CurrentSamplingPercentage ) , DestinationS3Uri : __expectString ( output . DestinationS3Uri ) , EnableCapture : __expectBoolean ( output . EnableCapture ) , KmsKeyId : __expectString ( output . KmsKeyId ) , } as any ; } ; const deserializeAws_json1_1DataCatalogConfig = ( output , context ) : DataCatalogConfig => { return { Catalog : __expectString ( output . Catalog ) , Database : __expectString ( output . Database ) , TableName : __expectString ( output . TableName ) , } as any ; } ; const deserializeAws_json1_1DataProcessing = ( output , context ) : DataProcessing => { return { InputFilter : __expectString ( output . InputFilter ) , JoinSource : __expectString ( output . JoinSource ) , OutputFilter : __expectString ( output . OutputFilter ) , } as any ; } ; const deserializeAws_json1_1DataQualityAppSpecification = ( output , context ) : DataQualityAppSpecification => { return { ContainerArguments : output . ContainerArguments !== undefined && output . ContainerArguments !== null ? deserializeAws_json1_1MonitoringContainerArguments ( output . ContainerArguments , context ) : undefined , ContainerEntrypoint : output . ContainerEntrypoint !== undefined && output . ContainerEntrypoint !== null ? deserializeAws_json1_1ContainerEntrypoint ( output . ContainerEntrypoint , context ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1MonitoringEnvironmentMap ( output . Environment , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , PostAnalyticsProcessorSourceUri : __expectString ( output . PostAnalyticsProcessorSourceUri ) , RecordPreprocessorSourceUri : __expectString ( output . RecordPreprocessorSourceUri ) , } as any ; } ; const deserializeAws_json1_1DataQualityBaselineConfig = ( output , context ) : DataQualityBaselineConfig => { return { BaseliningJobName : __expectString ( output . BaseliningJobName ) , ConstraintsResource : output . ConstraintsResource !== undefined && output . ConstraintsResource !== null ? deserializeAws_json1_1MonitoringConstraintsResource ( output . ConstraintsResource , context ) : undefined , StatisticsResource : output . StatisticsResource !== undefined && output . StatisticsResource !== null ? deserializeAws_json1_1MonitoringStatisticsResource ( output . StatisticsResource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DataQualityJobInput = ( output , context ) : DataQualityJobInput => { return { EndpointInput : output . EndpointInput !== undefined && output . EndpointInput !== null ? deserializeAws_json1_1EndpointInput ( output . EndpointInput , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DatasetDefinition = ( output , context ) : DatasetDefinition => { return { AthenaDatasetDefinition : output . AthenaDatasetDefinition !== undefined && output . AthenaDatasetDefinition !== null ? deserializeAws_json1_1AthenaDatasetDefinition ( output . AthenaDatasetDefinition , context ) : undefined , DataDistributionType : __expectString ( output . DataDistributionType ) , InputMode : __expectString ( output . InputMode ) , LocalPath : __expectString ( output . LocalPath ) , RedshiftDatasetDefinition : output . RedshiftDatasetDefinition !== undefined && output . RedshiftDatasetDefinition !== null ? deserializeAws_json1_1RedshiftDatasetDefinition ( output . RedshiftDatasetDefinition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DataSource = ( output , context ) : DataSource => { return { FileSystemDataSource : output . FileSystemDataSource !== undefined && output . FileSystemDataSource !== null ? deserializeAws_json1_1FileSystemDataSource ( output . FileSystemDataSource , context ) : undefined , S3DataSource : output . S3DataSource !== undefined && output . S3DataSource !== null ? deserializeAws_json1_1S3DataSource ( output . S3DataSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DebugHookConfig = ( output , context ) : DebugHookConfig => { return { CollectionConfigurations : output . CollectionConfigurations !== undefined && output . CollectionConfigurations !== null ? deserializeAws_json1_1CollectionConfigurations ( output . CollectionConfigurations , context ) : undefined , HookParameters : output . HookParameters !== undefined && output . HookParameters !== null ? deserializeAws_json1_1HookParameters ( output . HookParameters , context ) : undefined , LocalPath : __expectString ( output . LocalPath ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1DebugRuleConfiguration = ( output , context ) : DebugRuleConfiguration => { return { InstanceType : __expectString ( output . InstanceType ) , LocalPath : __expectString ( output . LocalPath ) , RuleConfigurationName : __expectString ( output . RuleConfigurationName ) , RuleEvaluatorImage : __expectString ( output . RuleEvaluatorImage ) , RuleParameters : output . RuleParameters !== undefined && output . RuleParameters !== null ? deserializeAws_json1_1RuleParameters ( output . RuleParameters , context ) : undefined , S3OutputPath : __expectString ( output . S3OutputPath ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1DebugRuleConfigurations = ( output , context ) : DebugRuleConfiguration [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DebugRuleConfiguration ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DebugRuleEvaluationStatus = ( output , context ) : DebugRuleEvaluationStatus => { return { LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , RuleConfigurationName : __expectString ( output . RuleConfigurationName ) , RuleEvaluationJobArn : __expectString ( output . RuleEvaluationJobArn ) , RuleEvaluationStatus : __expectString ( output . RuleEvaluationStatus ) , StatusDetails : __expectString ( output . StatusDetails ) , } as any ; } ; const deserializeAws_json1_1DebugRuleEvaluationStatuses = ( output , context ) : DebugRuleEvaluationStatus [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DebugRuleEvaluationStatus ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DeleteActionResponse = ( output , context ) : DeleteActionResponse => { return { ActionArn : __expectString ( output . ActionArn ) , } as any ; } ; const deserializeAws_json1_1DeleteArtifactResponse = ( output , context ) : DeleteArtifactResponse => { return { ArtifactArn : __expectString ( output . ArtifactArn ) , } as any ; } ; const deserializeAws_json1_1DeleteAssociationResponse = ( output , context ) : DeleteAssociationResponse => { return { DestinationArn : __expectString ( output . DestinationArn ) , SourceArn : __expectString ( output . SourceArn ) , } as any ; } ; const deserializeAws_json1_1DeleteContextResponse = ( output , context ) : DeleteContextResponse => { return { ContextArn : __expectString ( output . ContextArn ) , } as any ; } ; const deserializeAws_json1_1DeleteExperimentResponse = ( output , context ) : DeleteExperimentResponse => { return { ExperimentArn : __expectString ( output . ExperimentArn ) , } as any ; } ; const deserializeAws_json1_1DeleteFlowDefinitionResponse = ( output , context ) : DeleteFlowDefinitionResponse => { return { } as any ; } ; const deserializeAws_json1_1DeleteHumanTaskUiResponse = ( output , context ) : DeleteHumanTaskUiResponse => { return { } as any ; } ; const deserializeAws_json1_1DeleteImageResponse = ( output , context ) : DeleteImageResponse => { return { } as any ; } ; const deserializeAws_json1_1DeleteImageVersionResponse = ( output , context ) : DeleteImageVersionResponse => { return { } as any ; } ; const deserializeAws_json1_1DeletePipelineResponse = ( output , context ) : DeletePipelineResponse => { return { PipelineArn : __expectString ( output . PipelineArn ) , } as any ; } ; const deserializeAws_json1_1DeleteTagsOutput = ( output , context ) : DeleteTagsOutput => { return { } as any ; } ; const deserializeAws_json1_1DeleteTrialComponentResponse = ( output , context ) : DeleteTrialComponentResponse => { return { TrialComponentArn : __expectString ( output . TrialComponentArn ) , } as any ; } ; const deserializeAws_json1_1DeleteTrialResponse = ( output , context ) : DeleteTrialResponse => { return { TrialArn : __expectString ( output . TrialArn ) , } as any ; } ; const deserializeAws_json1_1DeleteWorkforceResponse = ( output , context ) : DeleteWorkforceResponse => { return { } as any ; } ; const deserializeAws_json1_1DeleteWorkteamResponse = ( output , context ) : DeleteWorkteamResponse => { return { Success : __expectBoolean ( output . Success ) , } as any ; } ; const deserializeAws_json1_1DeployedImage = ( output , context ) : DeployedImage => { return { ResolutionTime : output . ResolutionTime !== undefined && output . ResolutionTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ResolutionTime ) ) ) : undefined , ResolvedImage : __expectString ( output . ResolvedImage ) , SpecifiedImage : __expectString ( output . SpecifiedImage ) , } as any ; } ; const deserializeAws_json1_1DeployedImages = ( output , context ) : DeployedImage [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DeployedImage ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DeploymentConfig = ( output , context ) : DeploymentConfig => { return { AutoRollbackConfiguration : output . AutoRollbackConfiguration !== undefined && output . AutoRollbackConfiguration !== null ? deserializeAws_json1_1AutoRollbackConfig ( output . AutoRollbackConfiguration , context ) : undefined , BlueGreenUpdatePolicy : output . BlueGreenUpdatePolicy !== undefined && output . BlueGreenUpdatePolicy !== null ? deserializeAws_json1_1BlueGreenUpdatePolicy ( output . BlueGreenUpdatePolicy , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeActionResponse = ( output , context ) : DescribeActionResponse => { return { ActionArn : __expectString ( output . ActionArn ) , ActionName : __expectString ( output . ActionName ) , ActionType : __expectString ( output . ActionType ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Properties : output . Properties !== undefined && output . Properties !== null ? deserializeAws_json1_1LineageEntityParameters ( output . Properties , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ActionSource ( output . Source , context ) : undefined , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1DescribeAlgorithmOutput = ( output , context ) : DescribeAlgorithmOutput => { return { AlgorithmArn : __expectString ( output . AlgorithmArn ) , AlgorithmDescription : __expectString ( output . AlgorithmDescription ) , AlgorithmName : __expectString ( output . AlgorithmName ) , AlgorithmStatus : __expectString ( output . AlgorithmStatus ) , AlgorithmStatusDetails : output . AlgorithmStatusDetails !== undefined && output . AlgorithmStatusDetails !== null ? deserializeAws_json1_1AlgorithmStatusDetails ( output . AlgorithmStatusDetails , context ) : undefined , CertifyForMarketplace : __expectBoolean ( output . CertifyForMarketplace ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , InferenceSpecification : output . InferenceSpecification !== undefined && output . InferenceSpecification !== null ? deserializeAws_json1_1InferenceSpecification ( output . InferenceSpecification , context ) : undefined , ProductId : __expectString ( output . ProductId ) , TrainingSpecification : output . TrainingSpecification !== undefined && output . TrainingSpecification !== null ? deserializeAws_json1_1TrainingSpecification ( output . TrainingSpecification , context ) : undefined , ValidationSpecification : output . ValidationSpecification !== undefined && output . ValidationSpecification !== null ? deserializeAws_json1_1AlgorithmValidationSpecification ( output . ValidationSpecification , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeAppImageConfigResponse = ( output , context ) : DescribeAppImageConfigResponse => { return { AppImageConfigArn : __expectString ( output . AppImageConfigArn ) , AppImageConfigName : __expectString ( output . AppImageConfigName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , KernelGatewayImageConfig : output . KernelGatewayImageConfig !== undefined && output . KernelGatewayImageConfig !== null ? deserializeAws_json1_1KernelGatewayImageConfig ( output . KernelGatewayImageConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeAppResponse = ( output , context ) : DescribeAppResponse => { return { AppArn : __expectString ( output . AppArn ) , AppName : __expectString ( output . AppName ) , AppType : __expectString ( output . AppType ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DomainId : __expectString ( output . DomainId ) , FailureReason : __expectString ( output . FailureReason ) , LastHealthCheckTimestamp : output . LastHealthCheckTimestamp !== undefined && output . LastHealthCheckTimestamp !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastHealthCheckTimestamp ) ) ) : undefined , LastUserActivityTimestamp : output . LastUserActivityTimestamp !== undefined && output . LastUserActivityTimestamp !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastUserActivityTimestamp ) ) ) : undefined , ResourceSpec : output . ResourceSpec !== undefined && output . ResourceSpec !== null ? deserializeAws_json1_1ResourceSpec ( output . ResourceSpec , context ) : undefined , Status : __expectString ( output . Status ) , UserProfileName : __expectString ( output . UserProfileName ) , } as any ; } ; const deserializeAws_json1_1DescribeArtifactResponse = ( output , context ) : DescribeArtifactResponse => { return { ArtifactArn : __expectString ( output . ArtifactArn ) , ArtifactName : __expectString ( output . ArtifactName ) , ArtifactType : __expectString ( output . ArtifactType ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Properties : output . Properties !== undefined && output . Properties !== null ? deserializeAws_json1_1LineageEntityParameters ( output . Properties , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ArtifactSource ( output . Source , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeAutoMLJobResponse = ( output , context ) : DescribeAutoMLJobResponse => { return { AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , AutoMLJobArtifacts : output . AutoMLJobArtifacts !== undefined && output . AutoMLJobArtifacts !== null ? deserializeAws_json1_1AutoMLJobArtifacts ( output . AutoMLJobArtifacts , context ) : undefined , AutoMLJobConfig : output . AutoMLJobConfig !== undefined && output . AutoMLJobConfig !== null ? deserializeAws_json1_1AutoMLJobConfig ( output . AutoMLJobConfig , context ) : undefined , AutoMLJobName : __expectString ( output . AutoMLJobName ) , AutoMLJobObjective : output . AutoMLJobObjective !== undefined && output . AutoMLJobObjective !== null ? deserializeAws_json1_1AutoMLJobObjective ( output . AutoMLJobObjective , context ) : undefined , AutoMLJobSecondaryStatus : __expectString ( output . AutoMLJobSecondaryStatus ) , AutoMLJobStatus : __expectString ( output . AutoMLJobStatus ) , BestCandidate : output . BestCandidate !== undefined && output . BestCandidate !== null ? deserializeAws_json1_1AutoMLCandidate ( output . BestCandidate , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , GenerateCandidateDefinitionsOnly : __expectBoolean ( output . GenerateCandidateDefinitionsOnly ) , InputDataConfig : output . InputDataConfig !== undefined && output . InputDataConfig !== null ? deserializeAws_json1_1AutoMLInputDataConfig ( output . InputDataConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelDeployConfig : output . ModelDeployConfig !== undefined && output . ModelDeployConfig !== null ? deserializeAws_json1_1ModelDeployConfig ( output . ModelDeployConfig , context ) : undefined , ModelDeployResult : output . ModelDeployResult !== undefined && output . ModelDeployResult !== null ? deserializeAws_json1_1ModelDeployResult ( output . ModelDeployResult , context ) : undefined , OutputDataConfig : output . OutputDataConfig !== undefined && output . OutputDataConfig !== null ? deserializeAws_json1_1AutoMLOutputDataConfig ( output . OutputDataConfig , context ) : undefined , PartialFailureReasons : output . PartialFailureReasons !== undefined && output . PartialFailureReasons !== null ? deserializeAws_json1_1AutoMLPartialFailureReasons ( output . PartialFailureReasons , context ) : undefined , ProblemType : __expectString ( output . ProblemType ) , ResolvedAttributes : output . ResolvedAttributes !== undefined && output . ResolvedAttributes !== null ? deserializeAws_json1_1ResolvedAttributes ( output . ResolvedAttributes , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeCodeRepositoryOutput = ( output , context ) : DescribeCodeRepositoryOutput => { return { CodeRepositoryArn : __expectString ( output . CodeRepositoryArn ) , CodeRepositoryName : __expectString ( output . CodeRepositoryName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , GitConfig : output . GitConfig !== undefined && output . GitConfig !== null ? deserializeAws_json1_1GitConfig ( output . GitConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeCompilationJobResponse = ( output , context ) : DescribeCompilationJobResponse => { return { CompilationEndTime : output . CompilationEndTime !== undefined && output . CompilationEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompilationEndTime ) ) ) : undefined , CompilationJobArn : __expectString ( output . CompilationJobArn ) , CompilationJobName : __expectString ( output . CompilationJobName ) , CompilationJobStatus : __expectString ( output . CompilationJobStatus ) , CompilationStartTime : output . CompilationStartTime !== undefined && output . CompilationStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompilationStartTime ) ) ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , InferenceImage : __expectString ( output . InferenceImage ) , InputConfig : output . InputConfig !== undefined && output . InputConfig !== null ? deserializeAws_json1_1InputConfig ( output . InputConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelArtifacts : output . ModelArtifacts !== undefined && output . ModelArtifacts !== null ? deserializeAws_json1_1ModelArtifacts ( output . ModelArtifacts , context ) : undefined , ModelDigests : output . ModelDigests !== undefined && output . ModelDigests !== null ? deserializeAws_json1_1ModelDigests ( output . ModelDigests , context ) : undefined , ModelPackageVersionArn : __expectString ( output . ModelPackageVersionArn ) , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1OutputConfig ( output . OutputConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1StoppingCondition ( output . StoppingCondition , context ) : undefined , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1NeoVpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeContextResponse = ( output , context ) : DescribeContextResponse => { return { ContextArn : __expectString ( output . ContextArn ) , ContextName : __expectString ( output . ContextName ) , ContextType : __expectString ( output . ContextType ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , Properties : output . Properties !== undefined && output . Properties !== null ? deserializeAws_json1_1LineageEntityParameters ( output . Properties , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ContextSource ( output . Source , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeDataQualityJobDefinitionResponse = ( output , context ) : DescribeDataQualityJobDefinitionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataQualityAppSpecification : output . DataQualityAppSpecification !== undefined && output . DataQualityAppSpecification !== null ? deserializeAws_json1_1DataQualityAppSpecification ( output . DataQualityAppSpecification , context ) : undefined , DataQualityBaselineConfig : output . DataQualityBaselineConfig !== undefined && output . DataQualityBaselineConfig !== null ? deserializeAws_json1_1DataQualityBaselineConfig ( output . DataQualityBaselineConfig , context ) : undefined , DataQualityJobInput : output . DataQualityJobInput !== undefined && output . DataQualityJobInput !== null ? deserializeAws_json1_1DataQualityJobInput ( output . DataQualityJobInput , context ) : undefined , DataQualityJobOutputConfig : output . DataQualityJobOutputConfig !== undefined && output . DataQualityJobOutputConfig !== null ? deserializeAws_json1_1MonitoringOutputConfig ( output . DataQualityJobOutputConfig , context ) : undefined , JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , JobDefinitionName : __expectString ( output . JobDefinitionName ) , JobResources : output . JobResources !== undefined && output . JobResources !== null ? deserializeAws_json1_1MonitoringResources ( output . JobResources , context ) : undefined , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1MonitoringNetworkConfig ( output . NetworkConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1MonitoringStoppingCondition ( output . StoppingCondition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeDeviceFleetResponse = ( output , context ) : DescribeDeviceFleetResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DeviceFleetArn : __expectString ( output . DeviceFleetArn ) , DeviceFleetName : __expectString ( output . DeviceFleetName ) , IotRoleAlias : __expectString ( output . IotRoleAlias ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1EdgeOutputConfig ( output . OutputConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeDeviceResponse = ( output , context ) : DescribeDeviceResponse => { return { AgentVersion : __expectString ( output . AgentVersion ) , Description : __expectString ( output . Description ) , DeviceArn : __expectString ( output . DeviceArn ) , DeviceFleetName : __expectString ( output . DeviceFleetName ) , DeviceName : __expectString ( output . DeviceName ) , IotThingName : __expectString ( output . IotThingName ) , LatestHeartbeat : output . LatestHeartbeat !== undefined && output . LatestHeartbeat !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LatestHeartbeat ) ) ) : undefined , MaxModels : __expectInt32 ( output . MaxModels ) , Models : output . Models !== undefined && output . Models !== null ? deserializeAws_json1_1EdgeModels ( output . Models , context ) : undefined , NextToken : __expectString ( output . NextToken ) , RegistrationTime : output . RegistrationTime !== undefined && output . RegistrationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . RegistrationTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeDomainResponse = ( output , context ) : DescribeDomainResponse => { return { AppNetworkAccessType : __expectString ( output . AppNetworkAccessType ) , AppSecurityGroupManagement : __expectString ( output . AppSecurityGroupManagement ) , AuthMode : __expectString ( output . AuthMode ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DefaultUserSettings : output . DefaultUserSettings !== undefined && output . DefaultUserSettings !== null ? deserializeAws_json1_1UserSettings ( output . DefaultUserSettings , context ) : undefined , DomainArn : __expectString ( output . DomainArn ) , DomainId : __expectString ( output . DomainId ) , DomainName : __expectString ( output . DomainName ) , DomainSettings : output . DomainSettings !== undefined && output . DomainSettings !== null ? deserializeAws_json1_1DomainSettings ( output . DomainSettings , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , HomeEfsFileSystemId : __expectString ( output . HomeEfsFileSystemId ) , HomeEfsFileSystemKmsKeyId : __expectString ( output . HomeEfsFileSystemKmsKeyId ) , KmsKeyId : __expectString ( output . KmsKeyId ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , SecurityGroupIdForDomainBoundary : __expectString ( output . SecurityGroupIdForDomainBoundary ) , SingleSignOnManagedApplicationInstanceId : __expectString ( output . SingleSignOnManagedApplicationInstanceId ) , Status : __expectString ( output . Status ) , SubnetIds : output . SubnetIds !== undefined && output . SubnetIds !== null ? deserializeAws_json1_1Subnets ( output . SubnetIds , context ) : undefined , Url : __expectString ( output . Url ) , VpcId : __expectString ( output . VpcId ) , } as any ; } ; const deserializeAws_json1_1DescribeEdgePackagingJobResponse = ( output , context ) : DescribeEdgePackagingJobResponse => { return { CompilationJobName : __expectString ( output . CompilationJobName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EdgePackagingJobArn : __expectString ( output . EdgePackagingJobArn ) , EdgePackagingJobName : __expectString ( output . EdgePackagingJobName ) , EdgePackagingJobStatus : __expectString ( output . EdgePackagingJobStatus ) , EdgePackagingJobStatusMessage : __expectString ( output . EdgePackagingJobStatusMessage ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelArtifact : __expectString ( output . ModelArtifact ) , ModelName : __expectString ( output . ModelName ) , ModelSignature : __expectString ( output . ModelSignature ) , ModelVersion : __expectString ( output . ModelVersion ) , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1EdgeOutputConfig ( output . OutputConfig , context ) : undefined , PresetDeploymentOutput : output . PresetDeploymentOutput !== undefined && output . PresetDeploymentOutput !== null ? deserializeAws_json1_1EdgePresetDeploymentOutput ( output . PresetDeploymentOutput , context ) : undefined , ResourceKey : __expectString ( output . ResourceKey ) , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeEndpointConfigOutput = ( output , context ) : DescribeEndpointConfigOutput => { return { AsyncInferenceConfig : output . AsyncInferenceConfig !== undefined && output . AsyncInferenceConfig !== null ? deserializeAws_json1_1AsyncInferenceConfig ( output . AsyncInferenceConfig , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataCaptureConfig : output . DataCaptureConfig !== undefined && output . DataCaptureConfig !== null ? deserializeAws_json1_1DataCaptureConfig ( output . DataCaptureConfig , context ) : undefined , EndpointConfigArn : __expectString ( output . EndpointConfigArn ) , EndpointConfigName : __expectString ( output . EndpointConfigName ) , KmsKeyId : __expectString ( output . KmsKeyId ) , ProductionVariants : output . ProductionVariants !== undefined && output . ProductionVariants !== null ? deserializeAws_json1_1ProductionVariantList ( output . ProductionVariants , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeEndpointOutput = ( output , context ) : DescribeEndpointOutput => { return { AsyncInferenceConfig : output . AsyncInferenceConfig !== undefined && output . AsyncInferenceConfig !== null ? deserializeAws_json1_1AsyncInferenceConfig ( output . AsyncInferenceConfig , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataCaptureConfig : output . DataCaptureConfig !== undefined && output . DataCaptureConfig !== null ? deserializeAws_json1_1DataCaptureConfigSummary ( output . DataCaptureConfig , context ) : undefined , EndpointArn : __expectString ( output . EndpointArn ) , EndpointConfigName : __expectString ( output . EndpointConfigName ) , EndpointName : __expectString ( output . EndpointName ) , EndpointStatus : __expectString ( output . EndpointStatus ) , FailureReason : __expectString ( output . FailureReason ) , LastDeploymentConfig : output . LastDeploymentConfig !== undefined && output . LastDeploymentConfig !== null ? deserializeAws_json1_1DeploymentConfig ( output . LastDeploymentConfig , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , PendingDeploymentSummary : output . PendingDeploymentSummary !== undefined && output . PendingDeploymentSummary !== null ? deserializeAws_json1_1PendingDeploymentSummary ( output . PendingDeploymentSummary , context ) : undefined , ProductionVariants : output . ProductionVariants !== undefined && output . ProductionVariants !== null ? deserializeAws_json1_1ProductionVariantSummaryList ( output . ProductionVariants , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeExperimentResponse = ( output , context ) : DescribeExperimentResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DisplayName : __expectString ( output . DisplayName ) , ExperimentArn : __expectString ( output . ExperimentArn ) , ExperimentName : __expectString ( output . ExperimentName ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ExperimentSource ( output . Source , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeFeatureGroupResponse = ( output , context ) : DescribeFeatureGroupResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , EventTimeFeatureName : __expectString ( output . EventTimeFeatureName ) , FailureReason : __expectString ( output . FailureReason ) , FeatureDefinitions : output . FeatureDefinitions !== undefined && output . FeatureDefinitions !== null ? deserializeAws_json1_1FeatureDefinitions ( output . FeatureDefinitions , context ) : undefined , FeatureGroupArn : __expectString ( output . FeatureGroupArn ) , FeatureGroupName : __expectString ( output . FeatureGroupName ) , FeatureGroupStatus : __expectString ( output . FeatureGroupStatus ) , NextToken : __expectString ( output . NextToken ) , OfflineStoreConfig : output . OfflineStoreConfig !== undefined && output . OfflineStoreConfig !== null ? deserializeAws_json1_1OfflineStoreConfig ( output . OfflineStoreConfig , context ) : undefined , OfflineStoreStatus : output . OfflineStoreStatus !== undefined && output . OfflineStoreStatus !== null ? deserializeAws_json1_1OfflineStoreStatus ( output . OfflineStoreStatus , context ) : undefined , OnlineStoreConfig : output . OnlineStoreConfig !== undefined && output . OnlineStoreConfig !== null ? deserializeAws_json1_1OnlineStoreConfig ( output . OnlineStoreConfig , context ) : undefined , RecordIdentifierFeatureName : __expectString ( output . RecordIdentifierFeatureName ) , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeFlowDefinitionResponse = ( output , context ) : DescribeFlowDefinitionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FlowDefinitionArn : __expectString ( output . FlowDefinitionArn ) , FlowDefinitionName : __expectString ( output . FlowDefinitionName ) , FlowDefinitionStatus : __expectString ( output . FlowDefinitionStatus ) , HumanLoopActivationConfig : output . HumanLoopActivationConfig !== undefined && output . HumanLoopActivationConfig !== null ? deserializeAws_json1_1HumanLoopActivationConfig ( output . HumanLoopActivationConfig , context ) : undefined , HumanLoopConfig : output . HumanLoopConfig !== undefined && output . HumanLoopConfig !== null ? deserializeAws_json1_1HumanLoopConfig ( output . HumanLoopConfig , context ) : undefined , HumanLoopRequestSource : output . HumanLoopRequestSource !== undefined && output . HumanLoopRequestSource !== null ? deserializeAws_json1_1HumanLoopRequestSource ( output . HumanLoopRequestSource , context ) : undefined , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1FlowDefinitionOutputConfig ( output . OutputConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeHumanTaskUiResponse = ( output , context ) : DescribeHumanTaskUiResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , HumanTaskUiArn : __expectString ( output . HumanTaskUiArn ) , HumanTaskUiName : __expectString ( output . HumanTaskUiName ) , HumanTaskUiStatus : __expectString ( output . HumanTaskUiStatus ) , UiTemplate : output . UiTemplate !== undefined && output . UiTemplate !== null ? deserializeAws_json1_1UiTemplateInfo ( output . UiTemplate , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeHyperParameterTuningJobResponse = ( output , context ) : DescribeHyperParameterTuningJobResponse => { return { BestTrainingJob : output . BestTrainingJob !== undefined && output . BestTrainingJob !== null ? deserializeAws_json1_1HyperParameterTrainingJobSummary ( output . BestTrainingJob , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , HyperParameterTuningEndTime : output . HyperParameterTuningEndTime !== undefined && output . HyperParameterTuningEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . HyperParameterTuningEndTime ) ) ) : undefined , HyperParameterTuningJobArn : __expectString ( output . HyperParameterTuningJobArn ) , HyperParameterTuningJobConfig : output . HyperParameterTuningJobConfig !== undefined && output . HyperParameterTuningJobConfig !== null ? deserializeAws_json1_1HyperParameterTuningJobConfig ( output . HyperParameterTuningJobConfig , context ) : undefined , HyperParameterTuningJobName : __expectString ( output . HyperParameterTuningJobName ) , HyperParameterTuningJobStatus : __expectString ( output . HyperParameterTuningJobStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ObjectiveStatusCounters : output . ObjectiveStatusCounters !== undefined && output . ObjectiveStatusCounters !== null ? deserializeAws_json1_1ObjectiveStatusCounters ( output . ObjectiveStatusCounters , context ) : undefined , OverallBestTrainingJob : output . OverallBestTrainingJob !== undefined && output . OverallBestTrainingJob !== null ? deserializeAws_json1_1HyperParameterTrainingJobSummary ( output . OverallBestTrainingJob , context ) : undefined , TrainingJobDefinition : output . TrainingJobDefinition !== undefined && output . TrainingJobDefinition !== null ? deserializeAws_json1_1HyperParameterTrainingJobDefinition ( output . TrainingJobDefinition , context ) : undefined , TrainingJobDefinitions : output . TrainingJobDefinitions !== undefined && output . TrainingJobDefinitions !== null ? deserializeAws_json1_1HyperParameterTrainingJobDefinitions ( output . TrainingJobDefinitions , context ) : undefined , TrainingJobStatusCounters : output . TrainingJobStatusCounters !== undefined && output . TrainingJobStatusCounters !== null ? deserializeAws_json1_1TrainingJobStatusCounters ( output . TrainingJobStatusCounters , context ) : undefined , WarmStartConfig : output . WarmStartConfig !== undefined && output . WarmStartConfig !== null ? deserializeAws_json1_1HyperParameterTuningJobWarmStartConfig ( output . WarmStartConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeImageResponse = ( output , context ) : DescribeImageResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DisplayName : __expectString ( output . DisplayName ) , FailureReason : __expectString ( output . FailureReason ) , ImageArn : __expectString ( output . ImageArn ) , ImageName : __expectString ( output . ImageName ) , ImageStatus : __expectString ( output . ImageStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeImageVersionResponse = ( output , context ) : DescribeImageVersionResponse => { return { BaseImage : __expectString ( output . BaseImage ) , ContainerImage : __expectString ( output . ContainerImage ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , ImageArn : __expectString ( output . ImageArn ) , ImageVersionArn : __expectString ( output . ImageVersionArn ) , ImageVersionStatus : __expectString ( output . ImageVersionStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Version : __expectInt32 ( output . Version ) , } as any ; } ; const deserializeAws_json1_1DescribeInferenceRecommendationsJobResponse = ( output , context ) : DescribeInferenceRecommendationsJobResponse => { return { CompletionTime : output . CompletionTime !== undefined && output . CompletionTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompletionTime ) ) ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , InferenceRecommendations : output . InferenceRecommendations !== undefined && output . InferenceRecommendations !== null ? deserializeAws_json1_1InferenceRecommendations ( output . InferenceRecommendations , context ) : undefined , InputConfig : output . InputConfig !== undefined && output . InputConfig !== null ? deserializeAws_json1_1RecommendationJobInputConfig ( output . InputConfig , context ) : undefined , JobArn : __expectString ( output . JobArn ) , JobDescription : __expectString ( output . JobDescription ) , JobName : __expectString ( output . JobName ) , JobType : __expectString ( output . JobType ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , RoleArn : __expectString ( output . RoleArn ) , Status : __expectString ( output . Status ) , StoppingConditions : output . StoppingConditions !== undefined && output . StoppingConditions !== null ? deserializeAws_json1_1RecommendationJobStoppingConditions ( output . StoppingConditions , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeLabelingJobResponse = ( output , context ) : DescribeLabelingJobResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , HumanTaskConfig : output . HumanTaskConfig !== undefined && output . HumanTaskConfig !== null ? deserializeAws_json1_1HumanTaskConfig ( output . HumanTaskConfig , context ) : undefined , InputConfig : output . InputConfig !== undefined && output . InputConfig !== null ? deserializeAws_json1_1LabelingJobInputConfig ( output . InputConfig , context ) : undefined , JobReferenceCode : __expectString ( output . JobReferenceCode ) , LabelAttributeName : __expectString ( output . LabelAttributeName ) , LabelCategoryConfigS3Uri : __expectString ( output . LabelCategoryConfigS3Uri ) , LabelCounters : output . LabelCounters !== undefined && output . LabelCounters !== null ? deserializeAws_json1_1LabelCounters ( output . LabelCounters , context ) : undefined , LabelingJobAlgorithmsConfig : output . LabelingJobAlgorithmsConfig !== undefined && output . LabelingJobAlgorithmsConfig !== null ? deserializeAws_json1_1LabelingJobAlgorithmsConfig ( output . LabelingJobAlgorithmsConfig , context ) : undefined , LabelingJobArn : __expectString ( output . LabelingJobArn ) , LabelingJobName : __expectString ( output . LabelingJobName ) , LabelingJobOutput : output . LabelingJobOutput !== undefined && output . LabelingJobOutput !== null ? deserializeAws_json1_1LabelingJobOutput ( output . LabelingJobOutput , context ) : undefined , LabelingJobStatus : __expectString ( output . LabelingJobStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1LabelingJobOutputConfig ( output . OutputConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingConditions : output . StoppingConditions !== undefined && output . StoppingConditions !== null ? deserializeAws_json1_1LabelingJobStoppingConditions ( output . StoppingConditions , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeLineageGroupResponse = ( output , context ) : DescribeLineageGroupResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DisplayName : __expectString ( output . DisplayName ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , LineageGroupName : __expectString ( output . LineageGroupName ) , } as any ; } ; const deserializeAws_json1_1DescribeModelBiasJobDefinitionResponse = ( output , context ) : DescribeModelBiasJobDefinitionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , JobDefinitionName : __expectString ( output . JobDefinitionName ) , JobResources : output . JobResources !== undefined && output . JobResources !== null ? deserializeAws_json1_1MonitoringResources ( output . JobResources , context ) : undefined , ModelBiasAppSpecification : output . ModelBiasAppSpecification !== undefined && output . ModelBiasAppSpecification !== null ? deserializeAws_json1_1ModelBiasAppSpecification ( output . ModelBiasAppSpecification , context ) : undefined , ModelBiasBaselineConfig : output . ModelBiasBaselineConfig !== undefined && output . ModelBiasBaselineConfig !== null ? deserializeAws_json1_1ModelBiasBaselineConfig ( output . ModelBiasBaselineConfig , context ) : undefined , ModelBiasJobInput : output . ModelBiasJobInput !== undefined && output . ModelBiasJobInput !== null ? deserializeAws_json1_1ModelBiasJobInput ( output . ModelBiasJobInput , context ) : undefined , ModelBiasJobOutputConfig : output . ModelBiasJobOutputConfig !== undefined && output . ModelBiasJobOutputConfig !== null ? deserializeAws_json1_1MonitoringOutputConfig ( output . ModelBiasJobOutputConfig , context ) : undefined , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1MonitoringNetworkConfig ( output . NetworkConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1MonitoringStoppingCondition ( output . StoppingCondition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeModelExplainabilityJobDefinitionResponse = ( output , context ) : DescribeModelExplainabilityJobDefinitionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , JobDefinitionName : __expectString ( output . JobDefinitionName ) , JobResources : output . JobResources !== undefined && output . JobResources !== null ? deserializeAws_json1_1MonitoringResources ( output . JobResources , context ) : undefined , ModelExplainabilityAppSpecification : output . ModelExplainabilityAppSpecification !== undefined && output . ModelExplainabilityAppSpecification !== null ? deserializeAws_json1_1ModelExplainabilityAppSpecification ( output . ModelExplainabilityAppSpecification , context ) : undefined , ModelExplainabilityBaselineConfig : output . ModelExplainabilityBaselineConfig !== undefined && output . ModelExplainabilityBaselineConfig !== null ? deserializeAws_json1_1ModelExplainabilityBaselineConfig ( output . ModelExplainabilityBaselineConfig , context ) : undefined , ModelExplainabilityJobInput : output . ModelExplainabilityJobInput !== undefined && output . ModelExplainabilityJobInput !== null ? deserializeAws_json1_1ModelExplainabilityJobInput ( output . ModelExplainabilityJobInput , context ) : undefined , ModelExplainabilityJobOutputConfig : output . ModelExplainabilityJobOutputConfig !== undefined && output . ModelExplainabilityJobOutputConfig !== null ? deserializeAws_json1_1MonitoringOutputConfig ( output . ModelExplainabilityJobOutputConfig , context ) : undefined , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1MonitoringNetworkConfig ( output . NetworkConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1MonitoringStoppingCondition ( output . StoppingCondition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeModelOutput = ( output , context ) : DescribeModelOutput => { return { Containers : output . Containers !== undefined && output . Containers !== null ? deserializeAws_json1_1ContainerDefinitionList ( output . Containers , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , ExecutionRoleArn : __expectString ( output . ExecutionRoleArn ) , InferenceExecutionConfig : output . InferenceExecutionConfig !== undefined && output . InferenceExecutionConfig !== null ? deserializeAws_json1_1InferenceExecutionConfig ( output . InferenceExecutionConfig , context ) : undefined , ModelArn : __expectString ( output . ModelArn ) , ModelName : __expectString ( output . ModelName ) , PrimaryContainer : output . PrimaryContainer !== undefined && output . PrimaryContainer !== null ? deserializeAws_json1_1ContainerDefinition ( output . PrimaryContainer , context ) : undefined , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeModelPackageGroupOutput = ( output , context ) : DescribeModelPackageGroupOutput => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ModelPackageGroupArn : __expectString ( output . ModelPackageGroupArn ) , ModelPackageGroupDescription : __expectString ( output . ModelPackageGroupDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageGroupStatus : __expectString ( output . ModelPackageGroupStatus ) , } as any ; } ; const deserializeAws_json1_1DescribeModelPackageOutput = ( output , context ) : DescribeModelPackageOutput => { return { AdditionalInferenceSpecifications : output . AdditionalInferenceSpecifications !== undefined && output . AdditionalInferenceSpecifications !== null ? deserializeAws_json1_1AdditionalInferenceSpecifications ( output . AdditionalInferenceSpecifications , context ) : undefined , ApprovalDescription : __expectString ( output . ApprovalDescription ) , CertifyForMarketplace : __expectBoolean ( output . CertifyForMarketplace ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , CustomerMetadataProperties : output . CustomerMetadataProperties !== undefined && output . CustomerMetadataProperties !== null ? deserializeAws_json1_1CustomerMetadataMap ( output . CustomerMetadataProperties , context ) : undefined , Domain : __expectString ( output . Domain ) , DriftCheckBaselines : output . DriftCheckBaselines !== undefined && output . DriftCheckBaselines !== null ? deserializeAws_json1_1DriftCheckBaselines ( output . DriftCheckBaselines , context ) : undefined , InferenceSpecification : output . InferenceSpecification !== undefined && output . InferenceSpecification !== null ? deserializeAws_json1_1InferenceSpecification ( output . InferenceSpecification , context ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , ModelApprovalStatus : __expectString ( output . ModelApprovalStatus ) , ModelMetrics : output . ModelMetrics !== undefined && output . ModelMetrics !== null ? deserializeAws_json1_1ModelMetrics ( output . ModelMetrics , context ) : undefined , ModelPackageArn : __expectString ( output . ModelPackageArn ) , ModelPackageDescription : __expectString ( output . ModelPackageDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageName : __expectString ( output . ModelPackageName ) , ModelPackageStatus : __expectString ( output . ModelPackageStatus ) , ModelPackageStatusDetails : output . ModelPackageStatusDetails !== undefined && output . ModelPackageStatusDetails !== null ? deserializeAws_json1_1ModelPackageStatusDetails ( output . ModelPackageStatusDetails , context ) : undefined , ModelPackageVersion : __expectInt32 ( output . ModelPackageVersion ) , SamplePayloadUrl : __expectString ( output . SamplePayloadUrl ) , SourceAlgorithmSpecification : output . SourceAlgorithmSpecification !== undefined && output . SourceAlgorithmSpecification !== null ? deserializeAws_json1_1SourceAlgorithmSpecification ( output . SourceAlgorithmSpecification , context ) : undefined , Task : __expectString ( output . Task ) , ValidationSpecification : output . ValidationSpecification !== undefined && output . ValidationSpecification !== null ? deserializeAws_json1_1ModelPackageValidationSpecification ( output . ValidationSpecification , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeModelQualityJobDefinitionResponse = ( output , context ) : DescribeModelQualityJobDefinitionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , JobDefinitionArn : __expectString ( output . JobDefinitionArn ) , JobDefinitionName : __expectString ( output . JobDefinitionName ) , JobResources : output . JobResources !== undefined && output . JobResources !== null ? deserializeAws_json1_1MonitoringResources ( output . JobResources , context ) : undefined , ModelQualityAppSpecification : output . ModelQualityAppSpecification !== undefined && output . ModelQualityAppSpecification !== null ? deserializeAws_json1_1ModelQualityAppSpecification ( output . ModelQualityAppSpecification , context ) : undefined , ModelQualityBaselineConfig : output . ModelQualityBaselineConfig !== undefined && output . ModelQualityBaselineConfig !== null ? deserializeAws_json1_1ModelQualityBaselineConfig ( output . ModelQualityBaselineConfig , context ) : undefined , ModelQualityJobInput : output . ModelQualityJobInput !== undefined && output . ModelQualityJobInput !== null ? deserializeAws_json1_1ModelQualityJobInput ( output . ModelQualityJobInput , context ) : undefined , ModelQualityJobOutputConfig : output . ModelQualityJobOutputConfig !== undefined && output . ModelQualityJobOutputConfig !== null ? deserializeAws_json1_1MonitoringOutputConfig ( output . ModelQualityJobOutputConfig , context ) : undefined , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1MonitoringNetworkConfig ( output . NetworkConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1MonitoringStoppingCondition ( output . StoppingCondition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeMonitoringScheduleResponse = ( output , context ) : DescribeMonitoringScheduleResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointName : __expectString ( output . EndpointName ) , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LastMonitoringExecutionSummary : output . LastMonitoringExecutionSummary !== undefined && output . LastMonitoringExecutionSummary !== null ? deserializeAws_json1_1MonitoringExecutionSummary ( output . LastMonitoringExecutionSummary , context ) : undefined , MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , MonitoringScheduleConfig : output . MonitoringScheduleConfig !== undefined && output . MonitoringScheduleConfig !== null ? deserializeAws_json1_1MonitoringScheduleConfig ( output . MonitoringScheduleConfig , context ) : undefined , MonitoringScheduleName : __expectString ( output . MonitoringScheduleName ) , MonitoringScheduleStatus : __expectString ( output . MonitoringScheduleStatus ) , MonitoringType : __expectString ( output . MonitoringType ) , } as any ; } ; const deserializeAws_json1_1DescribeNotebookInstanceLifecycleConfigOutput = ( output , context ) : DescribeNotebookInstanceLifecycleConfigOutput => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , NotebookInstanceLifecycleConfigArn : __expectString ( output . NotebookInstanceLifecycleConfigArn ) , NotebookInstanceLifecycleConfigName : __expectString ( output . NotebookInstanceLifecycleConfigName ) , OnCreate : output . OnCreate !== undefined && output . OnCreate !== null ? deserializeAws_json1_1NotebookInstanceLifecycleConfigList ( output . OnCreate , context ) : undefined , OnStart : output . OnStart !== undefined && output . OnStart !== null ? deserializeAws_json1_1NotebookInstanceLifecycleConfigList ( output . OnStart , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeNotebookInstanceOutput = ( output , context ) : DescribeNotebookInstanceOutput => { return { AcceleratorTypes : output . AcceleratorTypes !== undefined && output . AcceleratorTypes !== null ? deserializeAws_json1_1NotebookInstanceAcceleratorTypes ( output . AcceleratorTypes , context ) : undefined , AdditionalCodeRepositories : output . AdditionalCodeRepositories !== undefined && output . AdditionalCodeRepositories !== null ? deserializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls ( output . AdditionalCodeRepositories , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DefaultCodeRepository : __expectString ( output . DefaultCodeRepository ) , DirectInternetAccess : __expectString ( output . DirectInternetAccess ) , FailureReason : __expectString ( output . FailureReason ) , InstanceType : __expectString ( output . InstanceType ) , KmsKeyId : __expectString ( output . KmsKeyId ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , NetworkInterfaceId : __expectString ( output . NetworkInterfaceId ) , NotebookInstanceArn : __expectString ( output . NotebookInstanceArn ) , NotebookInstanceLifecycleConfigName : __expectString ( output . NotebookInstanceLifecycleConfigName ) , NotebookInstanceName : __expectString ( output . NotebookInstanceName ) , NotebookInstanceStatus : __expectString ( output . NotebookInstanceStatus ) , PlatformIdentifier : __expectString ( output . PlatformIdentifier ) , RoleArn : __expectString ( output . RoleArn ) , RootAccess : __expectString ( output . RootAccess ) , SecurityGroups : output . SecurityGroups !== undefined && output . SecurityGroups !== null ? deserializeAws_json1_1SecurityGroupIds ( output . SecurityGroups , context ) : undefined , SubnetId : __expectString ( output . SubnetId ) , Url : __expectString ( output . Url ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1DescribePipelineDefinitionForExecutionResponse = ( output , context ) : DescribePipelineDefinitionForExecutionResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , PipelineDefinition : __expectString ( output . PipelineDefinition ) , } as any ; } ; const deserializeAws_json1_1DescribePipelineExecutionResponse = ( output , context ) : DescribePipelineExecutionResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ParallelismConfiguration : output . ParallelismConfiguration !== undefined && output . ParallelismConfiguration !== null ? deserializeAws_json1_1ParallelismConfiguration ( output . ParallelismConfiguration , context ) : undefined , PipelineArn : __expectString ( output . PipelineArn ) , PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , PipelineExecutionDescription : __expectString ( output . PipelineExecutionDescription ) , PipelineExecutionDisplayName : __expectString ( output . PipelineExecutionDisplayName ) , PipelineExecutionStatus : __expectString ( output . PipelineExecutionStatus ) , PipelineExperimentConfig : output . PipelineExperimentConfig !== undefined && output . PipelineExperimentConfig !== null ? deserializeAws_json1_1PipelineExperimentConfig ( output . PipelineExperimentConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribePipelineResponse = ( output , context ) : DescribePipelineResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LastRunTime : output . LastRunTime !== undefined && output . LastRunTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastRunTime ) ) ) : undefined , ParallelismConfiguration : output . ParallelismConfiguration !== undefined && output . ParallelismConfiguration !== null ? deserializeAws_json1_1ParallelismConfiguration ( output . ParallelismConfiguration , context ) : undefined , PipelineArn : __expectString ( output . PipelineArn ) , PipelineDefinition : __expectString ( output . PipelineDefinition ) , PipelineDescription : __expectString ( output . PipelineDescription ) , PipelineDisplayName : __expectString ( output . PipelineDisplayName ) , PipelineName : __expectString ( output . PipelineName ) , PipelineStatus : __expectString ( output . PipelineStatus ) , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1DescribeProcessingJobResponse = ( output , context ) : DescribeProcessingJobResponse => { return { AppSpecification : output . AppSpecification !== undefined && output . AppSpecification !== null ? deserializeAws_json1_1AppSpecification ( output . AppSpecification , context ) : undefined , AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1ProcessingEnvironmentMap ( output . Environment , context ) : undefined , ExitMessage : __expectString ( output . ExitMessage ) , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1NetworkConfig ( output . NetworkConfig , context ) : undefined , ProcessingEndTime : output . ProcessingEndTime !== undefined && output . ProcessingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ProcessingEndTime ) ) ) : undefined , ProcessingInputs : output . ProcessingInputs !== undefined && output . ProcessingInputs !== null ? deserializeAws_json1_1ProcessingInputs ( output . ProcessingInputs , context ) : undefined , ProcessingJobArn : __expectString ( output . ProcessingJobArn ) , ProcessingJobName : __expectString ( output . ProcessingJobName ) , ProcessingJobStatus : __expectString ( output . ProcessingJobStatus ) , ProcessingOutputConfig : output . ProcessingOutputConfig !== undefined && output . ProcessingOutputConfig !== null ? deserializeAws_json1_1ProcessingOutputConfig ( output . ProcessingOutputConfig , context ) : undefined , ProcessingResources : output . ProcessingResources !== undefined && output . ProcessingResources !== null ? deserializeAws_json1_1ProcessingResources ( output . ProcessingResources , context ) : undefined , ProcessingStartTime : output . ProcessingStartTime !== undefined && output . ProcessingStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ProcessingStartTime ) ) ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1ProcessingStoppingCondition ( output . StoppingCondition , context ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , } as any ; } ; const deserializeAws_json1_1DescribeProjectOutput = ( output , context ) : DescribeProjectOutput => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ProjectArn : __expectString ( output . ProjectArn ) , ProjectDescription : __expectString ( output . ProjectDescription ) , ProjectId : __expectString ( output . ProjectId ) , ProjectName : __expectString ( output . ProjectName ) , ProjectStatus : __expectString ( output . ProjectStatus ) , ServiceCatalogProvisionedProductDetails : output . ServiceCatalogProvisionedProductDetails !== undefined && output . ServiceCatalogProvisionedProductDetails !== null ? deserializeAws_json1_1ServiceCatalogProvisionedProductDetails ( output . ServiceCatalogProvisionedProductDetails , context ) : undefined , ServiceCatalogProvisioningDetails : output . ServiceCatalogProvisioningDetails !== undefined && output . ServiceCatalogProvisioningDetails !== null ? deserializeAws_json1_1ServiceCatalogProvisioningDetails ( output . ServiceCatalogProvisioningDetails , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeStudioLifecycleConfigResponse = ( output , context ) : DescribeStudioLifecycleConfigResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , StudioLifecycleConfigAppType : __expectString ( output . StudioLifecycleConfigAppType ) , StudioLifecycleConfigArn : __expectString ( output . StudioLifecycleConfigArn ) , StudioLifecycleConfigContent : __expectString ( output . StudioLifecycleConfigContent ) , StudioLifecycleConfigName : __expectString ( output . StudioLifecycleConfigName ) , } as any ; } ; const deserializeAws_json1_1DescribeSubscribedWorkteamResponse = ( output , context ) : DescribeSubscribedWorkteamResponse => { return { SubscribedWorkteam : output . SubscribedWorkteam !== undefined && output . SubscribedWorkteam !== null ? deserializeAws_json1_1SubscribedWorkteam ( output . SubscribedWorkteam , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeTrainingJobResponse = ( output , context ) : DescribeTrainingJobResponse => { return { AlgorithmSpecification : output . AlgorithmSpecification !== undefined && output . AlgorithmSpecification !== null ? deserializeAws_json1_1AlgorithmSpecification ( output . AlgorithmSpecification , context ) : undefined , AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , BillableTimeInSeconds : __expectInt32 ( output . BillableTimeInSeconds ) , CheckpointConfig : output . CheckpointConfig !== undefined && output . CheckpointConfig !== null ? deserializeAws_json1_1CheckpointConfig ( output . CheckpointConfig , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DebugHookConfig : output . DebugHookConfig !== undefined && output . DebugHookConfig !== null ? deserializeAws_json1_1DebugHookConfig ( output . DebugHookConfig , context ) : undefined , DebugRuleConfigurations : output . DebugRuleConfigurations !== undefined && output . DebugRuleConfigurations !== null ? deserializeAws_json1_1DebugRuleConfigurations ( output . DebugRuleConfigurations , context ) : undefined , DebugRuleEvaluationStatuses : output . DebugRuleEvaluationStatuses !== undefined && output . DebugRuleEvaluationStatuses !== null ? deserializeAws_json1_1DebugRuleEvaluationStatuses ( output . DebugRuleEvaluationStatuses , context ) : undefined , EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , EnableManagedSpotTraining : __expectBoolean ( output . EnableManagedSpotTraining ) , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1TrainingEnvironmentMap ( output . Environment , context ) : undefined , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FinalMetricDataList : output . FinalMetricDataList !== undefined && output . FinalMetricDataList !== null ? deserializeAws_json1_1FinalMetricDataList ( output . FinalMetricDataList , context ) : undefined , HyperParameters : output . HyperParameters !== undefined && output . HyperParameters !== null ? deserializeAws_json1_1HyperParameters ( output . HyperParameters , context ) : undefined , InputDataConfig : output . InputDataConfig !== undefined && output . InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig ( output . InputDataConfig , context ) : undefined , LabelingJobArn : __expectString ( output . LabelingJobArn ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelArtifacts : output . ModelArtifacts !== undefined && output . ModelArtifacts !== null ? deserializeAws_json1_1ModelArtifacts ( output . ModelArtifacts , context ) : undefined , OutputDataConfig : output . OutputDataConfig !== undefined && output . OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig ( output . OutputDataConfig , context ) : undefined , ProfilerConfig : output . ProfilerConfig !== undefined && output . ProfilerConfig !== null ? deserializeAws_json1_1ProfilerConfig ( output . ProfilerConfig , context ) : undefined , ProfilerRuleConfigurations : output . ProfilerRuleConfigurations !== undefined && output . ProfilerRuleConfigurations !== null ? deserializeAws_json1_1ProfilerRuleConfigurations ( output . ProfilerRuleConfigurations , context ) : undefined , ProfilerRuleEvaluationStatuses : output . ProfilerRuleEvaluationStatuses !== undefined && output . ProfilerRuleEvaluationStatuses !== null ? deserializeAws_json1_1ProfilerRuleEvaluationStatuses ( output . ProfilerRuleEvaluationStatuses , context ) : undefined , ProfilingStatus : __expectString ( output . ProfilingStatus ) , ResourceConfig : output . ResourceConfig !== undefined && output . ResourceConfig !== null ? deserializeAws_json1_1ResourceConfig ( output . ResourceConfig , context ) : undefined , RetryStrategy : output . RetryStrategy !== undefined && output . RetryStrategy !== null ? deserializeAws_json1_1RetryStrategy ( output . RetryStrategy , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , SecondaryStatus : __expectString ( output . SecondaryStatus ) , SecondaryStatusTransitions : output . SecondaryStatusTransitions !== undefined && output . SecondaryStatusTransitions !== null ? deserializeAws_json1_1SecondaryStatusTransitions ( output . SecondaryStatusTransitions , context ) : undefined , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1StoppingCondition ( output . StoppingCondition , context ) : undefined , TensorBoardOutputConfig : output . TensorBoardOutputConfig !== undefined && output . TensorBoardOutputConfig !== null ? deserializeAws_json1_1TensorBoardOutputConfig ( output . TensorBoardOutputConfig , context ) : undefined , TrainingEndTime : output . TrainingEndTime !== undefined && output . TrainingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingEndTime ) ) ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , TrainingJobName : __expectString ( output . TrainingJobName ) , TrainingJobStatus : __expectString ( output . TrainingJobStatus ) , TrainingStartTime : output . TrainingStartTime !== undefined && output . TrainingStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingStartTime ) ) ) : undefined , TrainingTimeInSeconds : __expectInt32 ( output . TrainingTimeInSeconds ) , TuningJobArn : __expectString ( output . TuningJobArn ) , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeTransformJobResponse = ( output , context ) : DescribeTransformJobResponse => { return { AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , BatchStrategy : __expectString ( output . BatchStrategy ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataProcessing : output . DataProcessing !== undefined && output . DataProcessing !== null ? deserializeAws_json1_1DataProcessing ( output . DataProcessing , context ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1TransformEnvironmentMap ( output . Environment , context ) : undefined , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LabelingJobArn : __expectString ( output . LabelingJobArn ) , MaxConcurrentTransforms : __expectInt32 ( output . MaxConcurrentTransforms ) , MaxPayloadInMB : __expectInt32 ( output . MaxPayloadInMB ) , ModelClientConfig : output . ModelClientConfig !== undefined && output . ModelClientConfig !== null ? deserializeAws_json1_1ModelClientConfig ( output . ModelClientConfig , context ) : undefined , ModelName : __expectString ( output . ModelName ) , TransformEndTime : output . TransformEndTime !== undefined && output . TransformEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TransformEndTime ) ) ) : undefined , TransformInput : output . TransformInput !== undefined && output . TransformInput !== null ? deserializeAws_json1_1TransformInput ( output . TransformInput , context ) : undefined , TransformJobArn : __expectString ( output . TransformJobArn ) , TransformJobName : __expectString ( output . TransformJobName ) , TransformJobStatus : __expectString ( output . TransformJobStatus ) , TransformOutput : output . TransformOutput !== undefined && output . TransformOutput !== null ? deserializeAws_json1_1TransformOutput ( output . TransformOutput , context ) : undefined , TransformResources : output . TransformResources !== undefined && output . TransformResources !== null ? deserializeAws_json1_1TransformResources ( output . TransformResources , context ) : undefined , TransformStartTime : output . TransformStartTime !== undefined && output . TransformStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TransformStartTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeTrialComponentResponse = ( output , context ) : DescribeTrialComponentResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , InputArtifacts : output . InputArtifacts !== undefined && output . InputArtifacts !== null ? deserializeAws_json1_1TrialComponentArtifacts ( output . InputArtifacts , context ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Metrics : output . Metrics !== undefined && output . Metrics !== null ? deserializeAws_json1_1TrialComponentMetricSummaries ( output . Metrics , context ) : undefined , OutputArtifacts : output . OutputArtifacts !== undefined && output . OutputArtifacts !== null ? deserializeAws_json1_1TrialComponentArtifacts ( output . OutputArtifacts , context ) : undefined , Parameters : output . Parameters !== undefined && output . Parameters !== null ? deserializeAws_json1_1TrialComponentParameters ( output . Parameters , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1TrialComponentSource ( output . Source , context ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , Status : output . Status !== undefined && output . Status !== null ? deserializeAws_json1_1TrialComponentStatus ( output . Status , context ) : undefined , TrialComponentArn : __expectString ( output . TrialComponentArn ) , TrialComponentName : __expectString ( output . TrialComponentName ) , } as any ; } ; const deserializeAws_json1_1DescribeTrialResponse = ( output , context ) : DescribeTrialResponse => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , ExperimentName : __expectString ( output . ExperimentName ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1TrialSource ( output . Source , context ) : undefined , TrialArn : __expectString ( output . TrialArn ) , TrialName : __expectString ( output . TrialName ) , } as any ; } ; const deserializeAws_json1_1DescribeUserProfileResponse = ( output , context ) : DescribeUserProfileResponse => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DomainId : __expectString ( output . DomainId ) , FailureReason : __expectString ( output . FailureReason ) , HomeEfsFileSystemUid : __expectString ( output . HomeEfsFileSystemUid ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , SingleSignOnUserIdentifier : __expectString ( output . SingleSignOnUserIdentifier ) , SingleSignOnUserValue : __expectString ( output . SingleSignOnUserValue ) , Status : __expectString ( output . Status ) , UserProfileArn : __expectString ( output . UserProfileArn ) , UserProfileName : __expectString ( output . UserProfileName ) , UserSettings : output . UserSettings !== undefined && output . UserSettings !== null ? deserializeAws_json1_1UserSettings ( output . UserSettings , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeWorkforceResponse = ( output , context ) : DescribeWorkforceResponse => { return { Workforce : output . Workforce !== undefined && output . Workforce !== null ? deserializeAws_json1_1Workforce ( output . Workforce , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DescribeWorkteamResponse = ( output , context ) : DescribeWorkteamResponse => { return { Workteam : output . Workteam !== undefined && output . Workteam !== null ? deserializeAws_json1_1Workteam ( output . Workteam , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DeviceFleetSummaries = ( output , context ) : DeviceFleetSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DeviceFleetSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DeviceFleetSummary = ( output , context ) : DeviceFleetSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DeviceFleetArn : __expectString ( output . DeviceFleetArn ) , DeviceFleetName : __expectString ( output . DeviceFleetName ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DeviceStats = ( output , context ) : DeviceStats => { return { ConnectedDeviceCount : __expectLong ( output . ConnectedDeviceCount ) , RegisteredDeviceCount : __expectLong ( output . RegisteredDeviceCount ) , } as any ; } ; const deserializeAws_json1_1DeviceSummaries = ( output , context ) : DeviceSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DeviceSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DeviceSummary = ( output , context ) : DeviceSummary => { return { AgentVersion : __expectString ( output . AgentVersion ) , Description : __expectString ( output . Description ) , DeviceArn : __expectString ( output . DeviceArn ) , DeviceFleetName : __expectString ( output . DeviceFleetName ) , DeviceName : __expectString ( output . DeviceName ) , IotThingName : __expectString ( output . IotThingName ) , LatestHeartbeat : output . LatestHeartbeat !== undefined && output . LatestHeartbeat !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LatestHeartbeat ) ) ) : undefined , Models : output . Models !== undefined && output . Models !== null ? deserializeAws_json1_1EdgeModelSummaries ( output . Models , context ) : undefined , RegistrationTime : output . RegistrationTime !== undefined && output . RegistrationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . RegistrationTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1DisableSagemakerServicecatalogPortfolioOutput = ( output , context ) : DisableSagemakerServicecatalogPortfolioOutput => { return { } as any ; } ; const deserializeAws_json1_1DisassociateTrialComponentResponse = ( output , context ) : DisassociateTrialComponentResponse => { return { TrialArn : __expectString ( output . TrialArn ) , TrialComponentArn : __expectString ( output . TrialComponentArn ) , } as any ; } ; const deserializeAws_json1_1DomainDetails = ( output , context ) : DomainDetails => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DomainArn : __expectString ( output . DomainArn ) , DomainId : __expectString ( output . DomainId ) , DomainName : __expectString ( output . DomainName ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Status : __expectString ( output . Status ) , Url : __expectString ( output . Url ) , } as any ; } ; const deserializeAws_json1_1DomainList = ( output , context ) : DomainDetails [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1DomainDetails ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1DomainSecurityGroupIds = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1DomainSettings = ( output , context ) : DomainSettings => { return { RStudioServerProDomainSettings : output . RStudioServerProDomainSettings !== undefined && output . RStudioServerProDomainSettings !== null ? deserializeAws_json1_1RStudioServerProDomainSettings ( output . RStudioServerProDomainSettings , context ) : undefined , SecurityGroupIds : output . SecurityGroupIds !== undefined && output . SecurityGroupIds !== null ? deserializeAws_json1_1DomainSecurityGroupIds ( output . SecurityGroupIds , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DriftCheckBaselines = ( output , context ) : DriftCheckBaselines => { return { Bias : output . Bias !== undefined && output . Bias !== null ? deserializeAws_json1_1DriftCheckBias ( output . Bias , context ) : undefined , Explainability : output . Explainability !== undefined && output . Explainability !== null ? deserializeAws_json1_1DriftCheckExplainability ( output . Explainability , context ) : undefined , ModelDataQuality : output . ModelDataQuality !== undefined && output . ModelDataQuality !== null ? deserializeAws_json1_1DriftCheckModelDataQuality ( output . ModelDataQuality , context ) : undefined , ModelQuality : output . ModelQuality !== undefined && output . ModelQuality !== null ? deserializeAws_json1_1DriftCheckModelQuality ( output . ModelQuality , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DriftCheckBias = ( output , context ) : DriftCheckBias => { return { ConfigFile : output . ConfigFile !== undefined && output . ConfigFile !== null ? deserializeAws_json1_1FileSource ( output . ConfigFile , context ) : undefined , PostTrainingConstraints : output . PostTrainingConstraints !== undefined && output . PostTrainingConstraints !== null ? deserializeAws_json1_1MetricsSource ( output . PostTrainingConstraints , context ) : undefined , PreTrainingConstraints : output . PreTrainingConstraints !== undefined && output . PreTrainingConstraints !== null ? deserializeAws_json1_1MetricsSource ( output . PreTrainingConstraints , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DriftCheckExplainability = ( output , context ) : DriftCheckExplainability => { return { ConfigFile : output . ConfigFile !== undefined && output . ConfigFile !== null ? deserializeAws_json1_1FileSource ( output . ConfigFile , context ) : undefined , Constraints : output . Constraints !== undefined && output . Constraints !== null ? deserializeAws_json1_1MetricsSource ( output . Constraints , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DriftCheckModelDataQuality = ( output , context ) : DriftCheckModelDataQuality => { return { Constraints : output . Constraints !== undefined && output . Constraints !== null ? deserializeAws_json1_1MetricsSource ( output . Constraints , context ) : undefined , Statistics : output . Statistics !== undefined && output . Statistics !== null ? deserializeAws_json1_1MetricsSource ( output . Statistics , context ) : undefined , } as any ; } ; const deserializeAws_json1_1DriftCheckModelQuality = ( output , context ) : DriftCheckModelQuality => { return { Constraints : output . Constraints !== undefined && output . Constraints !== null ? deserializeAws_json1_1MetricsSource ( output . Constraints , context ) : undefined , Statistics : output . Statistics !== undefined && output . Statistics !== null ? deserializeAws_json1_1MetricsSource ( output . Statistics , context ) : undefined , } as any ; } ; const deserializeAws_json1_1Edge = ( output , context ) : Edge => { return { AssociationType : __expectString ( output . AssociationType ) , DestinationArn : __expectString ( output . DestinationArn ) , SourceArn : __expectString ( output . SourceArn ) , } as any ; } ; const deserializeAws_json1_1EdgeModel = ( output , context ) : EdgeModel => { return { LatestInference : output . LatestInference !== undefined && output . LatestInference !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LatestInference ) ) ) : undefined , LatestSampleTime : output . LatestSampleTime !== undefined && output . LatestSampleTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LatestSampleTime ) ) ) : undefined , ModelName : __expectString ( output . ModelName ) , ModelVersion : __expectString ( output . ModelVersion ) , } as any ; } ; const deserializeAws_json1_1EdgeModels = ( output , context ) : EdgeModel [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EdgeModel ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EdgeModelStat = ( output , context ) : EdgeModelStat => { return { ActiveDeviceCount : __expectLong ( output . ActiveDeviceCount ) , ConnectedDeviceCount : __expectLong ( output . ConnectedDeviceCount ) , ModelName : __expectString ( output . ModelName ) , ModelVersion : __expectString ( output . ModelVersion ) , OfflineDeviceCount : __expectLong ( output . OfflineDeviceCount ) , SamplingDeviceCount : __expectLong ( output . SamplingDeviceCount ) , } as any ; } ; const deserializeAws_json1_1EdgeModelStats = ( output , context ) : EdgeModelStat [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EdgeModelStat ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EdgeModelSummaries = ( output , context ) : EdgeModelSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EdgeModelSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EdgeModelSummary = ( output , context ) : EdgeModelSummary => { return { ModelName : __expectString ( output . ModelName ) , ModelVersion : __expectString ( output . ModelVersion ) , } as any ; } ; const deserializeAws_json1_1EdgeOutputConfig = ( output , context ) : EdgeOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , PresetDeploymentConfig : __expectString ( output . PresetDeploymentConfig ) , PresetDeploymentType : __expectString ( output . PresetDeploymentType ) , S3OutputLocation : __expectString ( output . S3OutputLocation ) , } as any ; } ; const deserializeAws_json1_1EdgePackagingJobSummaries = ( output , context ) : EdgePackagingJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EdgePackagingJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EdgePackagingJobSummary = ( output , context ) : EdgePackagingJobSummary => { return { CompilationJobName : __expectString ( output . CompilationJobName ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EdgePackagingJobArn : __expectString ( output . EdgePackagingJobArn ) , EdgePackagingJobName : __expectString ( output . EdgePackagingJobName ) , EdgePackagingJobStatus : __expectString ( output . EdgePackagingJobStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelName : __expectString ( output . ModelName ) , ModelVersion : __expectString ( output . ModelVersion ) , } as any ; } ; const deserializeAws_json1_1EdgePresetDeploymentOutput = ( output , context ) : EdgePresetDeploymentOutput => { return { Artifact : __expectString ( output . Artifact ) , Status : __expectString ( output . Status ) , StatusMessage : __expectString ( output . StatusMessage ) , Type : __expectString ( output . Type ) , } as any ; } ; const deserializeAws_json1_1Edges = ( output , context ) : Edge [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Edge ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EMRStepMetadata = ( output , context ) : EMRStepMetadata => { return { ClusterId : __expectString ( output . ClusterId ) , LogFilePath : __expectString ( output . LogFilePath ) , StepId : __expectString ( output . StepId ) , StepName : __expectString ( output . StepName ) , } as any ; } ; const deserializeAws_json1_1EnableSagemakerServicecatalogPortfolioOutput = ( output , context ) : EnableSagemakerServicecatalogPortfolioOutput => { return { } as any ; } ; const deserializeAws_json1_1Endpoint = ( output , context ) : Endpoint => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataCaptureConfig : output . DataCaptureConfig !== undefined && output . DataCaptureConfig !== null ? deserializeAws_json1_1DataCaptureConfigSummary ( output . DataCaptureConfig , context ) : undefined , EndpointArn : __expectString ( output . EndpointArn ) , EndpointConfigName : __expectString ( output . EndpointConfigName ) , EndpointName : __expectString ( output . EndpointName ) , EndpointStatus : __expectString ( output . EndpointStatus ) , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MonitoringSchedules : output . MonitoringSchedules !== undefined && output . MonitoringSchedules !== null ? deserializeAws_json1_1MonitoringScheduleList ( output . MonitoringSchedules , context ) : undefined , ProductionVariants : output . ProductionVariants !== undefined && output . ProductionVariants !== null ? deserializeAws_json1_1ProductionVariantSummaryList ( output . ProductionVariants , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1EndpointConfigSummary = ( output , context ) : EndpointConfigSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointConfigArn : __expectString ( output . EndpointConfigArn ) , EndpointConfigName : __expectString ( output . EndpointConfigName ) , } as any ; } ; const deserializeAws_json1_1EndpointConfigSummaryList = ( output , context ) : EndpointConfigSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EndpointConfigSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EndpointInput = ( output , context ) : EndpointInput => { return { EndTimeOffset : __expectString ( output . EndTimeOffset ) , EndpointName : __expectString ( output . EndpointName ) , FeaturesAttribute : __expectString ( output . FeaturesAttribute ) , InferenceAttribute : __expectString ( output . InferenceAttribute ) , LocalPath : __expectString ( output . LocalPath ) , ProbabilityAttribute : __expectString ( output . ProbabilityAttribute ) , ProbabilityThresholdAttribute : __limitedParseDouble ( output . ProbabilityThresholdAttribute ) , S3DataDistributionType : __expectString ( output . S3DataDistributionType ) , S3InputMode : __expectString ( output . S3InputMode ) , StartTimeOffset : __expectString ( output . StartTimeOffset ) , } as any ; } ; const deserializeAws_json1_1EndpointInputConfiguration = ( output , context ) : EndpointInputConfiguration => { return { EnvironmentParameterRanges : output . EnvironmentParameterRanges !== undefined && output . EnvironmentParameterRanges !== null ? deserializeAws_json1_1EnvironmentParameterRanges ( output . EnvironmentParameterRanges , context ) : undefined , InferenceSpecificationName : __expectString ( output . InferenceSpecificationName ) , InstanceType : __expectString ( output . InstanceType ) , } as any ; } ; const deserializeAws_json1_1EndpointInputConfigurations = ( output , context ) : EndpointInputConfiguration [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EndpointInputConfiguration ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EndpointOutputConfiguration = ( output , context ) : EndpointOutputConfiguration => { return { EndpointName : __expectString ( output . EndpointName ) , InitialInstanceCount : __expectInt32 ( output . InitialInstanceCount ) , InstanceType : __expectString ( output . InstanceType ) , VariantName : __expectString ( output . VariantName ) , } as any ; } ; const deserializeAws_json1_1EndpointSummary = ( output , context ) : EndpointSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointArn : __expectString ( output . EndpointArn ) , EndpointName : __expectString ( output . EndpointName ) , EndpointStatus : __expectString ( output . EndpointStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1EndpointSummaryList = ( output , context ) : EndpointSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EndpointSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1EnvironmentMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1EnvironmentParameter = ( output , context ) : EnvironmentParameter => { return { Key : __expectString ( output . Key ) , Value : __expectString ( output . Value ) , ValueType : __expectString ( output . ValueType ) , } as any ; } ; const deserializeAws_json1_1EnvironmentParameterRanges = ( output , context ) : EnvironmentParameterRanges => { return { CategoricalParameterRanges : output . CategoricalParameterRanges !== undefined && output . CategoricalParameterRanges !== null ? deserializeAws_json1_1CategoricalParameters ( output . CategoricalParameterRanges , context ) : undefined , } as any ; } ; const deserializeAws_json1_1EnvironmentParameters = ( output , context ) : EnvironmentParameter [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1EnvironmentParameter ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Experiment = ( output , context ) : Experiment => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DisplayName : __expectString ( output . DisplayName ) , ExperimentArn : __expectString ( output . ExperimentArn ) , ExperimentName : __expectString ( output . ExperimentName ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1ExperimentSource ( output . Source , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ExperimentConfig = ( output , context ) : ExperimentConfig => { return { ExperimentName : __expectString ( output . ExperimentName ) , TrialComponentDisplayName : __expectString ( output . TrialComponentDisplayName ) , TrialName : __expectString ( output . TrialName ) , } as any ; } ; const deserializeAws_json1_1ExperimentSource = ( output , context ) : ExperimentSource => { return { SourceArn : __expectString ( output . SourceArn ) , SourceType : __expectString ( output . SourceType ) , } as any ; } ; const deserializeAws_json1_1ExperimentSummaries = ( output , context ) : ExperimentSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ExperimentSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ExperimentSummary = ( output , context ) : ExperimentSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , ExperimentArn : __expectString ( output . ExperimentArn ) , ExperimentName : __expectString ( output . ExperimentName ) , ExperimentSource : output . ExperimentSource !== undefined && output . ExperimentSource !== null ? deserializeAws_json1_1ExperimentSource ( output . ExperimentSource , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1Explainability = ( output , context ) : Explainability => { return { Report : output . Report !== undefined && output . Report !== null ? deserializeAws_json1_1MetricsSource ( output . Report , context ) : undefined , } as any ; } ; const deserializeAws_json1_1FeatureDefinition = ( output , context ) : FeatureDefinition => { return { FeatureName : __expectString ( output . FeatureName ) , FeatureType : __expectString ( output . FeatureType ) , } as any ; } ; const deserializeAws_json1_1FeatureDefinitions = ( output , context ) : FeatureDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1FeatureDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1FeatureGroup = ( output , context ) : FeatureGroup => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , EventTimeFeatureName : __expectString ( output . EventTimeFeatureName ) , FailureReason : __expectString ( output . FailureReason ) , FeatureDefinitions : output . FeatureDefinitions !== undefined && output . FeatureDefinitions !== null ? deserializeAws_json1_1FeatureDefinitions ( output . FeatureDefinitions , context ) : undefined , FeatureGroupArn : __expectString ( output . FeatureGroupArn ) , FeatureGroupName : __expectString ( output . FeatureGroupName ) , FeatureGroupStatus : __expectString ( output . FeatureGroupStatus ) , OfflineStoreConfig : output . OfflineStoreConfig !== undefined && output . OfflineStoreConfig !== null ? deserializeAws_json1_1OfflineStoreConfig ( output . OfflineStoreConfig , context ) : undefined , OfflineStoreStatus : output . OfflineStoreStatus !== undefined && output . OfflineStoreStatus !== null ? deserializeAws_json1_1OfflineStoreStatus ( output . OfflineStoreStatus , context ) : undefined , OnlineStoreConfig : output . OnlineStoreConfig !== undefined && output . OnlineStoreConfig !== null ? deserializeAws_json1_1OnlineStoreConfig ( output . OnlineStoreConfig , context ) : undefined , RecordIdentifierFeatureName : __expectString ( output . RecordIdentifierFeatureName ) , RoleArn : __expectString ( output . RoleArn ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1FeatureGroupSummaries = ( output , context ) : FeatureGroupSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1FeatureGroupSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1FeatureGroupSummary = ( output , context ) : FeatureGroupSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FeatureGroupArn : __expectString ( output . FeatureGroupArn ) , FeatureGroupName : __expectString ( output . FeatureGroupName ) , FeatureGroupStatus : __expectString ( output . FeatureGroupStatus ) , OfflineStoreStatus : output . OfflineStoreStatus !== undefined && output . OfflineStoreStatus !== null ? deserializeAws_json1_1OfflineStoreStatus ( output . OfflineStoreStatus , context ) : undefined , } as any ; } ; const deserializeAws_json1_1FileSource = ( output , context ) : FileSource => { return { ContentDigest : __expectString ( output . ContentDigest ) , ContentType : __expectString ( output . ContentType ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1FileSystemConfig = ( output , context ) : FileSystemConfig => { return { DefaultGid : __expectInt32 ( output . DefaultGid ) , DefaultUid : __expectInt32 ( output . DefaultUid ) , MountPath : __expectString ( output . MountPath ) , } as any ; } ; const deserializeAws_json1_1FileSystemDataSource = ( output , context ) : FileSystemDataSource => { return { DirectoryPath : __expectString ( output . DirectoryPath ) , FileSystemAccessMode : __expectString ( output . FileSystemAccessMode ) , FileSystemId : __expectString ( output . FileSystemId ) , FileSystemType : __expectString ( output . FileSystemType ) , } as any ; } ; const deserializeAws_json1_1FinalAutoMLJobObjectiveMetric = ( output , context ) : FinalAutoMLJobObjectiveMetric => { return { MetricName : __expectString ( output . MetricName ) , Type : __expectString ( output . Type ) , Value : __limitedParseFloat32 ( output . Value ) , } as any ; } ; const deserializeAws_json1_1FinalHyperParameterTuningJobObjectiveMetric = ( output , context ) : FinalHyperParameterTuningJobObjectiveMetric => { return { MetricName : __expectString ( output . MetricName ) , Type : __expectString ( output . Type ) , Value : __limitedParseFloat32 ( output . Value ) , } as any ; } ; const deserializeAws_json1_1FinalMetricDataList = ( output , context ) : MetricData [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MetricData ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1FlowDefinitionOutputConfig = ( output , context ) : FlowDefinitionOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1FlowDefinitionSummaries = ( output , context ) : FlowDefinitionSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1FlowDefinitionSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1FlowDefinitionSummary = ( output , context ) : FlowDefinitionSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FlowDefinitionArn : __expectString ( output . FlowDefinitionArn ) , FlowDefinitionName : __expectString ( output . FlowDefinitionName ) , FlowDefinitionStatus : __expectString ( output . FlowDefinitionStatus ) , } as any ; } ; const deserializeAws_json1_1FlowDefinitionTaskKeywords = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1GetDeviceFleetReportResponse = ( output , context ) : GetDeviceFleetReportResponse => { return { AgentVersions : output . AgentVersions !== undefined && output . AgentVersions !== null ? deserializeAws_json1_1AgentVersions ( output . AgentVersions , context ) : undefined , Description : __expectString ( output . Description ) , DeviceFleetArn : __expectString ( output . DeviceFleetArn ) , DeviceFleetName : __expectString ( output . DeviceFleetName ) , DeviceStats : output . DeviceStats !== undefined && output . DeviceStats !== null ? deserializeAws_json1_1DeviceStats ( output . DeviceStats , context ) : undefined , ModelStats : output . ModelStats !== undefined && output . ModelStats !== null ? deserializeAws_json1_1EdgeModelStats ( output . ModelStats , context ) : undefined , OutputConfig : output . OutputConfig !== undefined && output . OutputConfig !== null ? deserializeAws_json1_1EdgeOutputConfig ( output . OutputConfig , context ) : undefined , ReportGenerated : output . ReportGenerated !== undefined && output . ReportGenerated !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ReportGenerated ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1GetLineageGroupPolicyResponse = ( output , context ) : GetLineageGroupPolicyResponse => { return { LineageGroupArn : __expectString ( output . LineageGroupArn ) , ResourcePolicy : __expectString ( output . ResourcePolicy ) , } as any ; } ; const deserializeAws_json1_1GetModelPackageGroupPolicyOutput = ( output , context ) : GetModelPackageGroupPolicyOutput => { return { ResourcePolicy : __expectString ( output . ResourcePolicy ) , } as any ; } ; const deserializeAws_json1_1GetSagemakerServicecatalogPortfolioStatusOutput = ( output , context ) : GetSagemakerServicecatalogPortfolioStatusOutput => { return { Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1GetSearchSuggestionsResponse = ( output , context ) : GetSearchSuggestionsResponse => { return { PropertyNameSuggestions : output . PropertyNameSuggestions !== undefined && output . PropertyNameSuggestions !== null ? deserializeAws_json1_1PropertyNameSuggestionList ( output . PropertyNameSuggestions , context ) : undefined , } as any ; } ; const deserializeAws_json1_1GitConfig = ( output , context ) : GitConfig => { return { Branch : __expectString ( output . Branch ) , RepositoryUrl : __expectString ( output . RepositoryUrl ) , SecretArn : __expectString ( output . SecretArn ) , } as any ; } ; const deserializeAws_json1_1Groups = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1HookParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1HumanLoopActivationConditionsConfig = ( output , context ) : HumanLoopActivationConditionsConfig => { return { HumanLoopActivationConditions : output . HumanLoopActivationConditions !== undefined && output . HumanLoopActivationConditions !== null ? new __LazyJsonString ( output . HumanLoopActivationConditions ) : undefined , } as any ; } ; const deserializeAws_json1_1HumanLoopActivationConfig = ( output , context ) : HumanLoopActivationConfig => { return { HumanLoopActivationConditionsConfig : output . HumanLoopActivationConditionsConfig !== undefined && output . HumanLoopActivationConditionsConfig !== null ? deserializeAws_json1_1HumanLoopActivationConditionsConfig ( output . HumanLoopActivationConditionsConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1HumanLoopConfig = ( output , context ) : HumanLoopConfig => { return { HumanTaskUiArn : __expectString ( output . HumanTaskUiArn ) , PublicWorkforceTaskPrice : output . PublicWorkforceTaskPrice !== undefined && output . PublicWorkforceTaskPrice !== null ? deserializeAws_json1_1PublicWorkforceTaskPrice ( output . PublicWorkforceTaskPrice , context ) : undefined , TaskAvailabilityLifetimeInSeconds : __expectInt32 ( output . TaskAvailabilityLifetimeInSeconds ) , TaskCount : __expectInt32 ( output . TaskCount ) , TaskDescription : __expectString ( output . TaskDescription ) , TaskKeywords : output . TaskKeywords !== undefined && output . TaskKeywords !== null ? deserializeAws_json1_1FlowDefinitionTaskKeywords ( output . TaskKeywords , context ) : undefined , TaskTimeLimitInSeconds : __expectInt32 ( output . TaskTimeLimitInSeconds ) , TaskTitle : __expectString ( output . TaskTitle ) , WorkteamArn : __expectString ( output . WorkteamArn ) , } as any ; } ; const deserializeAws_json1_1HumanLoopRequestSource = ( output , context ) : HumanLoopRequestSource => { return { AwsManagedHumanLoopRequestSource : __expectString ( output . AwsManagedHumanLoopRequestSource ) , } as any ; } ; const deserializeAws_json1_1HumanTaskConfig = ( output , context ) : HumanTaskConfig => { return { AnnotationConsolidationConfig : output . AnnotationConsolidationConfig !== undefined && output . AnnotationConsolidationConfig !== null ? deserializeAws_json1_1AnnotationConsolidationConfig ( output . AnnotationConsolidationConfig , context ) : undefined , MaxConcurrentTaskCount : __expectInt32 ( output . MaxConcurrentTaskCount ) , NumberOfHumanWorkersPerDataObject : __expectInt32 ( output . NumberOfHumanWorkersPerDataObject ) , PreHumanTaskLambdaArn : __expectString ( output . PreHumanTaskLambdaArn ) , PublicWorkforceTaskPrice : output . PublicWorkforceTaskPrice !== undefined && output . PublicWorkforceTaskPrice !== null ? deserializeAws_json1_1PublicWorkforceTaskPrice ( output . PublicWorkforceTaskPrice , context ) : undefined , TaskAvailabilityLifetimeInSeconds : __expectInt32 ( output . TaskAvailabilityLifetimeInSeconds ) , TaskDescription : __expectString ( output . TaskDescription ) , TaskKeywords : output . TaskKeywords !== undefined && output . TaskKeywords !== null ? deserializeAws_json1_1TaskKeywords ( output . TaskKeywords , context ) : undefined , TaskTimeLimitInSeconds : __expectInt32 ( output . TaskTimeLimitInSeconds ) , TaskTitle : __expectString ( output . TaskTitle ) , UiConfig : output . UiConfig !== undefined && output . UiConfig !== null ? deserializeAws_json1_1UiConfig ( output . UiConfig , context ) : undefined , WorkteamArn : __expectString ( output . WorkteamArn ) , } as any ; } ; const deserializeAws_json1_1HumanTaskUiSummaries = ( output , context ) : HumanTaskUiSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HumanTaskUiSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HumanTaskUiSummary = ( output , context ) : HumanTaskUiSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , HumanTaskUiArn : __expectString ( output . HumanTaskUiArn ) , HumanTaskUiName : __expectString ( output . HumanTaskUiName ) , } as any ; } ; const deserializeAws_json1_1HyperParameterAlgorithmSpecification = ( output , context ) : HyperParameterAlgorithmSpecification => { return { AlgorithmName : __expectString ( output . AlgorithmName ) , MetricDefinitions : output . MetricDefinitions !== undefined && output . MetricDefinitions !== null ? deserializeAws_json1_1MetricDefinitionList ( output . MetricDefinitions , context ) : undefined , TrainingImage : __expectString ( output . TrainingImage ) , TrainingInputMode : __expectString ( output . TrainingInputMode ) , } as any ; } ; const deserializeAws_json1_1HyperParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1HyperParameterSpecification = ( output , context ) : HyperParameterSpecification => { return { DefaultValue : __expectString ( output . DefaultValue ) , Description : __expectString ( output . Description ) , IsRequired : __expectBoolean ( output . IsRequired ) , IsTunable : __expectBoolean ( output . IsTunable ) , Name : __expectString ( output . Name ) , Range : output . Range !== undefined && output . Range !== null ? deserializeAws_json1_1ParameterRange ( output . Range , context ) : undefined , Type : __expectString ( output . Type ) , } as any ; } ; const deserializeAws_json1_1HyperParameterSpecifications = ( output , context ) : HyperParameterSpecification [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HyperParameterSpecification ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HyperParameterTrainingJobDefinition = ( output , context ) : HyperParameterTrainingJobDefinition => { return { AlgorithmSpecification : output . AlgorithmSpecification !== undefined && output . AlgorithmSpecification !== null ? deserializeAws_json1_1HyperParameterAlgorithmSpecification ( output . AlgorithmSpecification , context ) : undefined , CheckpointConfig : output . CheckpointConfig !== undefined && output . CheckpointConfig !== null ? deserializeAws_json1_1CheckpointConfig ( output . CheckpointConfig , context ) : undefined , DefinitionName : __expectString ( output . DefinitionName ) , EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , EnableManagedSpotTraining : __expectBoolean ( output . EnableManagedSpotTraining ) , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , HyperParameterRanges : output . HyperParameterRanges !== undefined && output . HyperParameterRanges !== null ? deserializeAws_json1_1ParameterRanges ( output . HyperParameterRanges , context ) : undefined , InputDataConfig : output . InputDataConfig !== undefined && output . InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig ( output . InputDataConfig , context ) : undefined , OutputDataConfig : output . OutputDataConfig !== undefined && output . OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig ( output . OutputDataConfig , context ) : undefined , ResourceConfig : output . ResourceConfig !== undefined && output . ResourceConfig !== null ? deserializeAws_json1_1ResourceConfig ( output . ResourceConfig , context ) : undefined , RetryStrategy : output . RetryStrategy !== undefined && output . RetryStrategy !== null ? deserializeAws_json1_1RetryStrategy ( output . RetryStrategy , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StaticHyperParameters : output . StaticHyperParameters !== undefined && output . StaticHyperParameters !== null ? deserializeAws_json1_1HyperParameters ( output . StaticHyperParameters , context ) : undefined , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1StoppingCondition ( output . StoppingCondition , context ) : undefined , TuningObjective : output . TuningObjective !== undefined && output . TuningObjective !== null ? deserializeAws_json1_1HyperParameterTuningJobObjective ( output . TuningObjective , context ) : undefined , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1HyperParameterTrainingJobDefinitions = ( output , context ) : HyperParameterTrainingJobDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HyperParameterTrainingJobDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HyperParameterTrainingJobSummaries = ( output , context ) : HyperParameterTrainingJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HyperParameterTrainingJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HyperParameterTrainingJobSummary = ( output , context ) : HyperParameterTrainingJobSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FinalHyperParameterTuningJobObjectiveMetric : output . FinalHyperParameterTuningJobObjectiveMetric !== undefined && output . FinalHyperParameterTuningJobObjectiveMetric !== null ? deserializeAws_json1_1FinalHyperParameterTuningJobObjectiveMetric ( output . FinalHyperParameterTuningJobObjectiveMetric , context ) : undefined , ObjectiveStatus : __expectString ( output . ObjectiveStatus ) , TrainingEndTime : output . TrainingEndTime !== undefined && output . TrainingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingEndTime ) ) ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , TrainingJobDefinitionName : __expectString ( output . TrainingJobDefinitionName ) , TrainingJobName : __expectString ( output . TrainingJobName ) , TrainingJobStatus : __expectString ( output . TrainingJobStatus ) , TrainingStartTime : output . TrainingStartTime !== undefined && output . TrainingStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingStartTime ) ) ) : undefined , TunedHyperParameters : output . TunedHyperParameters !== undefined && output . TunedHyperParameters !== null ? deserializeAws_json1_1HyperParameters ( output . TunedHyperParameters , context ) : undefined , TuningJobName : __expectString ( output . TuningJobName ) , } as any ; } ; const deserializeAws_json1_1HyperParameterTuningJobConfig = ( output , context ) : HyperParameterTuningJobConfig => { return { HyperParameterTuningJobObjective : output . HyperParameterTuningJobObjective !== undefined && output . HyperParameterTuningJobObjective !== null ? deserializeAws_json1_1HyperParameterTuningJobObjective ( output . HyperParameterTuningJobObjective , context ) : undefined , ParameterRanges : output . ParameterRanges !== undefined && output . ParameterRanges !== null ? deserializeAws_json1_1ParameterRanges ( output . ParameterRanges , context ) : undefined , ResourceLimits : output . ResourceLimits !== undefined && output . ResourceLimits !== null ? deserializeAws_json1_1ResourceLimits ( output . ResourceLimits , context ) : undefined , Strategy : __expectString ( output . Strategy ) , TrainingJobEarlyStoppingType : __expectString ( output . TrainingJobEarlyStoppingType ) , TuningJobCompletionCriteria : output . TuningJobCompletionCriteria !== undefined && output . TuningJobCompletionCriteria !== null ? deserializeAws_json1_1TuningJobCompletionCriteria ( output . TuningJobCompletionCriteria , context ) : undefined , } as any ; } ; const deserializeAws_json1_1HyperParameterTuningJobObjective = ( output , context ) : HyperParameterTuningJobObjective => { return { MetricName : __expectString ( output . MetricName ) , Type : __expectString ( output . Type ) , } as any ; } ; const deserializeAws_json1_1HyperParameterTuningJobObjectives = ( output , context ) : HyperParameterTuningJobObjective [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HyperParameterTuningJobObjective ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HyperParameterTuningJobSummaries = ( output , context ) : HyperParameterTuningJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1HyperParameterTuningJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1HyperParameterTuningJobSummary = ( output , context ) : HyperParameterTuningJobSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , HyperParameterTuningEndTime : output . HyperParameterTuningEndTime !== undefined && output . HyperParameterTuningEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . HyperParameterTuningEndTime ) ) ) : undefined , HyperParameterTuningJobArn : __expectString ( output . HyperParameterTuningJobArn ) , HyperParameterTuningJobName : __expectString ( output . HyperParameterTuningJobName ) , HyperParameterTuningJobStatus : __expectString ( output . HyperParameterTuningJobStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ObjectiveStatusCounters : output . ObjectiveStatusCounters !== undefined && output . ObjectiveStatusCounters !== null ? deserializeAws_json1_1ObjectiveStatusCounters ( output . ObjectiveStatusCounters , context ) : undefined , ResourceLimits : output . ResourceLimits !== undefined && output . ResourceLimits !== null ? deserializeAws_json1_1ResourceLimits ( output . ResourceLimits , context ) : undefined , Strategy : __expectString ( output . Strategy ) , TrainingJobStatusCounters : output . TrainingJobStatusCounters !== undefined && output . TrainingJobStatusCounters !== null ? deserializeAws_json1_1TrainingJobStatusCounters ( output . TrainingJobStatusCounters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1HyperParameterTuningJobWarmStartConfig = ( output , context ) : HyperParameterTuningJobWarmStartConfig => { return { ParentHyperParameterTuningJobs : output . ParentHyperParameterTuningJobs !== undefined && output . ParentHyperParameterTuningJobs !== null ? deserializeAws_json1_1ParentHyperParameterTuningJobs ( output . ParentHyperParameterTuningJobs , context ) : undefined , WarmStartType : __expectString ( output . WarmStartType ) , } as any ; } ; const deserializeAws_json1_1Image = ( output , context ) : Image => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Description : __expectString ( output . Description ) , DisplayName : __expectString ( output . DisplayName ) , FailureReason : __expectString ( output . FailureReason ) , ImageArn : __expectString ( output . ImageArn ) , ImageName : __expectString ( output . ImageName ) , ImageStatus : __expectString ( output . ImageStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1ImageConfig = ( output , context ) : ImageConfig => { return { RepositoryAccessMode : __expectString ( output . RepositoryAccessMode ) , RepositoryAuthConfig : output . RepositoryAuthConfig !== undefined && output . RepositoryAuthConfig !== null ? deserializeAws_json1_1RepositoryAuthConfig ( output . RepositoryAuthConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1Images = ( output , context ) : Image [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Image ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ImageVersion = ( output , context ) : ImageVersion => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , ImageArn : __expectString ( output . ImageArn ) , ImageVersionArn : __expectString ( output . ImageVersionArn ) , ImageVersionStatus : __expectString ( output . ImageVersionStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Version : __expectInt32 ( output . Version ) , } as any ; } ; const deserializeAws_json1_1ImageVersions = ( output , context ) : ImageVersion [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ImageVersion ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1InferenceExecutionConfig = ( output , context ) : InferenceExecutionConfig => { return { Mode : __expectString ( output . Mode ) , } as any ; } ; const deserializeAws_json1_1InferenceRecommendation = ( output , context ) : InferenceRecommendation => { return { EndpointConfiguration : output . EndpointConfiguration !== undefined && output . EndpointConfiguration !== null ? deserializeAws_json1_1EndpointOutputConfiguration ( output . EndpointConfiguration , context ) : undefined , Metrics : output . Metrics !== undefined && output . Metrics !== null ? deserializeAws_json1_1RecommendationMetrics ( output . Metrics , context ) : undefined , ModelConfiguration : output . ModelConfiguration !== undefined && output . ModelConfiguration !== null ? deserializeAws_json1_1ModelConfiguration ( output . ModelConfiguration , context ) : undefined , } as any ; } ; const deserializeAws_json1_1InferenceRecommendations = ( output , context ) : InferenceRecommendation [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1InferenceRecommendation ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1InferenceRecommendationsJob = ( output , context ) : InferenceRecommendationsJob => { return { CompletionTime : output . CompletionTime !== undefined && output . CompletionTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CompletionTime ) ) ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , JobArn : __expectString ( output . JobArn ) , JobDescription : __expectString ( output . JobDescription ) , JobName : __expectString ( output . JobName ) , JobType : __expectString ( output . JobType ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , RoleArn : __expectString ( output . RoleArn ) , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1InferenceRecommendationsJobs = ( output , context ) : InferenceRecommendationsJob [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1InferenceRecommendationsJob ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1InferenceSpecification = ( output , context ) : InferenceSpecification => { return { Containers : output . Containers !== undefined && output . Containers !== null ? deserializeAws_json1_1ModelPackageContainerDefinitionList ( output . Containers , context ) : undefined , SupportedContentTypes : output . SupportedContentTypes !== undefined && output . SupportedContentTypes !== null ? deserializeAws_json1_1ContentTypes ( output . SupportedContentTypes , context ) : undefined , SupportedRealtimeInferenceInstanceTypes : output . SupportedRealtimeInferenceInstanceTypes !== undefined && output . SupportedRealtimeInferenceInstanceTypes !== null ? deserializeAws_json1_1RealtimeInferenceInstanceTypes ( output . SupportedRealtimeInferenceInstanceTypes , context ) : undefined , SupportedResponseMIMETypes : output . SupportedResponseMIMETypes !== undefined && output . SupportedResponseMIMETypes !== null ? deserializeAws_json1_1ResponseMIMETypes ( output . SupportedResponseMIMETypes , context ) : undefined , SupportedTransformInstanceTypes : output . SupportedTransformInstanceTypes !== undefined && output . SupportedTransformInstanceTypes !== null ? deserializeAws_json1_1TransformInstanceTypes ( output . SupportedTransformInstanceTypes , context ) : undefined , } as any ; } ; const deserializeAws_json1_1InputConfig = ( output , context ) : InputConfig => { return { DataInputConfig : __expectString ( output . DataInputConfig ) , Framework : __expectString ( output . Framework ) , FrameworkVersion : __expectString ( output . FrameworkVersion ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1InputDataConfig = ( output , context ) : Channel [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Channel ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1InputModes = ( output , context ) : ( TrainingInputMode | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1IntegerParameterRange = ( output , context ) : IntegerParameterRange => { return { MaxValue : __expectString ( output . MaxValue ) , MinValue : __expectString ( output . MinValue ) , Name : __expectString ( output . Name ) , ScalingType : __expectString ( output . ScalingType ) , } as any ; } ; const deserializeAws_json1_1IntegerParameterRanges = ( output , context ) : IntegerParameterRange [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1IntegerParameterRange ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1IntegerParameterRangeSpecification = ( output , context ) : IntegerParameterRangeSpecification => { return { MaxValue : __expectString ( output . MaxValue ) , MinValue : __expectString ( output . MinValue ) , } as any ; } ; const deserializeAws_json1_1JsonContentTypes = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1JupyterServerAppSettings = ( output , context ) : JupyterServerAppSettings => { return { DefaultResourceSpec : output . DefaultResourceSpec !== undefined && output . DefaultResourceSpec !== null ? deserializeAws_json1_1ResourceSpec ( output . DefaultResourceSpec , context ) : undefined , LifecycleConfigArns : output . LifecycleConfigArns !== undefined && output . LifecycleConfigArns !== null ? deserializeAws_json1_1LifecycleConfigArns ( output . LifecycleConfigArns , context ) : undefined , } as any ; } ; const deserializeAws_json1_1KernelGatewayAppSettings = ( output , context ) : KernelGatewayAppSettings => { return { CustomImages : output . CustomImages !== undefined && output . CustomImages !== null ? deserializeAws_json1_1CustomImages ( output . CustomImages , context ) : undefined , DefaultResourceSpec : output . DefaultResourceSpec !== undefined && output . DefaultResourceSpec !== null ? deserializeAws_json1_1ResourceSpec ( output . DefaultResourceSpec , context ) : undefined , LifecycleConfigArns : output . LifecycleConfigArns !== undefined && output . LifecycleConfigArns !== null ? deserializeAws_json1_1LifecycleConfigArns ( output . LifecycleConfigArns , context ) : undefined , } as any ; } ; const deserializeAws_json1_1KernelGatewayImageConfig = ( output , context ) : KernelGatewayImageConfig => { return { FileSystemConfig : output . FileSystemConfig !== undefined && output . FileSystemConfig !== null ? deserializeAws_json1_1FileSystemConfig ( output . FileSystemConfig , context ) : undefined , KernelSpecs : output . KernelSpecs !== undefined && output . KernelSpecs !== null ? deserializeAws_json1_1KernelSpecs ( output . KernelSpecs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1KernelSpec = ( output , context ) : KernelSpec => { return { DisplayName : __expectString ( output . DisplayName ) , Name : __expectString ( output . Name ) , } as any ; } ; const deserializeAws_json1_1KernelSpecs = ( output , context ) : KernelSpec [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1KernelSpec ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1LabelCounters = ( output , context ) : LabelCounters => { return { FailedNonRetryableError : __expectInt32 ( output . FailedNonRetryableError ) , HumanLabeled : __expectInt32 ( output . HumanLabeled ) , MachineLabeled : __expectInt32 ( output . MachineLabeled ) , TotalLabeled : __expectInt32 ( output . TotalLabeled ) , Unlabeled : __expectInt32 ( output . Unlabeled ) , } as any ; } ; const deserializeAws_json1_1LabelCountersForWorkteam = ( output , context ) : LabelCountersForWorkteam => { return { HumanLabeled : __expectInt32 ( output . HumanLabeled ) , PendingHuman : __expectInt32 ( output . PendingHuman ) , Total : __expectInt32 ( output . Total ) , } as any ; } ; const deserializeAws_json1_1LabelingJobAlgorithmsConfig = ( output , context ) : LabelingJobAlgorithmsConfig => { return { InitialActiveLearningModelArn : __expectString ( output . InitialActiveLearningModelArn ) , LabelingJobAlgorithmSpecificationArn : __expectString ( output . LabelingJobAlgorithmSpecificationArn ) , LabelingJobResourceConfig : output . LabelingJobResourceConfig !== undefined && output . LabelingJobResourceConfig !== null ? deserializeAws_json1_1LabelingJobResourceConfig ( output . LabelingJobResourceConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1LabelingJobDataAttributes = ( output , context ) : LabelingJobDataAttributes => { return { ContentClassifiers : output . ContentClassifiers !== undefined && output . ContentClassifiers !== null ? deserializeAws_json1_1ContentClassifiers ( output . ContentClassifiers , context ) : undefined , } as any ; } ; const deserializeAws_json1_1LabelingJobDataSource = ( output , context ) : LabelingJobDataSource => { return { S3DataSource : output . S3DataSource !== undefined && output . S3DataSource !== null ? deserializeAws_json1_1LabelingJobS3DataSource ( output . S3DataSource , context ) : undefined , SnsDataSource : output . SnsDataSource !== undefined && output . SnsDataSource !== null ? deserializeAws_json1_1LabelingJobSnsDataSource ( output . SnsDataSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1LabelingJobForWorkteamSummary = ( output , context ) : LabelingJobForWorkteamSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , JobReferenceCode : __expectString ( output . JobReferenceCode ) , LabelCounters : output . LabelCounters !== undefined && output . LabelCounters !== null ? deserializeAws_json1_1LabelCountersForWorkteam ( output . LabelCounters , context ) : undefined , LabelingJobName : __expectString ( output . LabelingJobName ) , NumberOfHumanWorkersPerDataObject : __expectInt32 ( output . NumberOfHumanWorkersPerDataObject ) , WorkRequesterAccountId : __expectString ( output . WorkRequesterAccountId ) , } as any ; } ; const deserializeAws_json1_1LabelingJobForWorkteamSummaryList = ( output , context ) : LabelingJobForWorkteamSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1LabelingJobForWorkteamSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1LabelingJobInputConfig = ( output , context ) : LabelingJobInputConfig => { return { DataAttributes : output . DataAttributes !== undefined && output . DataAttributes !== null ? deserializeAws_json1_1LabelingJobDataAttributes ( output . DataAttributes , context ) : undefined , DataSource : output . DataSource !== undefined && output . DataSource !== null ? deserializeAws_json1_1LabelingJobDataSource ( output . DataSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1LabelingJobOutput = ( output , context ) : LabelingJobOutput => { return { FinalActiveLearningModelArn : __expectString ( output . FinalActiveLearningModelArn ) , OutputDatasetS3Uri : __expectString ( output . OutputDatasetS3Uri ) , } as any ; } ; const deserializeAws_json1_1LabelingJobOutputConfig = ( output , context ) : LabelingJobOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , SnsTopicArn : __expectString ( output . SnsTopicArn ) , } as any ; } ; const deserializeAws_json1_1LabelingJobResourceConfig = ( output , context ) : LabelingJobResourceConfig => { return { VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , } as any ; } ; const deserializeAws_json1_1LabelingJobS3DataSource = ( output , context ) : LabelingJobS3DataSource => { return { ManifestS3Uri : __expectString ( output . ManifestS3Uri ) , } as any ; } ; const deserializeAws_json1_1LabelingJobSnsDataSource = ( output , context ) : LabelingJobSnsDataSource => { return { SnsTopicArn : __expectString ( output . SnsTopicArn ) , } as any ; } ; const deserializeAws_json1_1LabelingJobStoppingConditions = ( output , context ) : LabelingJobStoppingConditions => { return { MaxHumanLabeledObjectCount : __expectInt32 ( output . MaxHumanLabeledObjectCount ) , MaxPercentageOfInputDatasetLabeled : __expectInt32 ( output . MaxPercentageOfInputDatasetLabeled ) , } as any ; } ; const deserializeAws_json1_1LabelingJobSummary = ( output , context ) : LabelingJobSummary => { return { AnnotationConsolidationLambdaArn : __expectString ( output . AnnotationConsolidationLambdaArn ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , InputConfig : output . InputConfig !== undefined && output . InputConfig !== null ? deserializeAws_json1_1LabelingJobInputConfig ( output . InputConfig , context ) : undefined , LabelCounters : output . LabelCounters !== undefined && output . LabelCounters !== null ? deserializeAws_json1_1LabelCounters ( output . LabelCounters , context ) : undefined , LabelingJobArn : __expectString ( output . LabelingJobArn ) , LabelingJobName : __expectString ( output . LabelingJobName ) , LabelingJobOutput : output . LabelingJobOutput !== undefined && output . LabelingJobOutput !== null ? deserializeAws_json1_1LabelingJobOutput ( output . LabelingJobOutput , context ) : undefined , LabelingJobStatus : __expectString ( output . LabelingJobStatus ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , PreHumanTaskLambdaArn : __expectString ( output . PreHumanTaskLambdaArn ) , WorkteamArn : __expectString ( output . WorkteamArn ) , } as any ; } ; const deserializeAws_json1_1LabelingJobSummaryList = ( output , context ) : LabelingJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1LabelingJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1LambdaStepMetadata = ( output , context ) : LambdaStepMetadata => { return { Arn : __expectString ( output . Arn ) , OutputParameters : output . OutputParameters !== undefined && output . OutputParameters !== null ? deserializeAws_json1_1OutputParameterList ( output . OutputParameters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1LifecycleConfigArns = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1LineageEntityParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1LineageGroupSummaries = ( output , context ) : LineageGroupSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1LineageGroupSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1LineageGroupSummary = ( output , context ) : LineageGroupSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , LineageGroupName : __expectString ( output . LineageGroupName ) , } as any ; } ; const deserializeAws_json1_1ListActionsResponse = ( output , context ) : ListActionsResponse => { return { ActionSummaries : output . ActionSummaries !== undefined && output . ActionSummaries !== null ? deserializeAws_json1_1ActionSummaries ( output . ActionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListAlgorithmsOutput = ( output , context ) : ListAlgorithmsOutput => { return { AlgorithmSummaryList : output . AlgorithmSummaryList !== undefined && output . AlgorithmSummaryList !== null ? deserializeAws_json1_1AlgorithmSummaryList ( output . AlgorithmSummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListAppImageConfigsResponse = ( output , context ) : ListAppImageConfigsResponse => { return { AppImageConfigs : output . AppImageConfigs !== undefined && output . AppImageConfigs !== null ? deserializeAws_json1_1AppImageConfigList ( output . AppImageConfigs , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListAppsResponse = ( output , context ) : ListAppsResponse => { return { Apps : output . Apps !== undefined && output . Apps !== null ? deserializeAws_json1_1AppList ( output . Apps , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListArtifactsResponse = ( output , context ) : ListArtifactsResponse => { return { ArtifactSummaries : output . ArtifactSummaries !== undefined && output . ArtifactSummaries !== null ? deserializeAws_json1_1ArtifactSummaries ( output . ArtifactSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListAssociationsResponse = ( output , context ) : ListAssociationsResponse => { return { AssociationSummaries : output . AssociationSummaries !== undefined && output . AssociationSummaries !== null ? deserializeAws_json1_1AssociationSummaries ( output . AssociationSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListAutoMLJobsResponse = ( output , context ) : ListAutoMLJobsResponse => { return { AutoMLJobSummaries : output . AutoMLJobSummaries !== undefined && output . AutoMLJobSummaries !== null ? deserializeAws_json1_1AutoMLJobSummaries ( output . AutoMLJobSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListCandidatesForAutoMLJobResponse = ( output , context ) : ListCandidatesForAutoMLJobResponse => { return { Candidates : output . Candidates !== undefined && output . Candidates !== null ? deserializeAws_json1_1AutoMLCandidates ( output . Candidates , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListCodeRepositoriesOutput = ( output , context ) : ListCodeRepositoriesOutput => { return { CodeRepositorySummaryList : output . CodeRepositorySummaryList !== undefined && output . CodeRepositorySummaryList !== null ? deserializeAws_json1_1CodeRepositorySummaryList ( output . CodeRepositorySummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListCompilationJobsResponse = ( output , context ) : ListCompilationJobsResponse => { return { CompilationJobSummaries : output . CompilationJobSummaries !== undefined && output . CompilationJobSummaries !== null ? deserializeAws_json1_1CompilationJobSummaries ( output . CompilationJobSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListContextsResponse = ( output , context ) : ListContextsResponse => { return { ContextSummaries : output . ContextSummaries !== undefined && output . ContextSummaries !== null ? deserializeAws_json1_1ContextSummaries ( output . ContextSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListDataQualityJobDefinitionsResponse = ( output , context ) : ListDataQualityJobDefinitionsResponse => { return { JobDefinitionSummaries : output . JobDefinitionSummaries !== undefined && output . JobDefinitionSummaries !== null ? deserializeAws_json1_1MonitoringJobDefinitionSummaryList ( output . JobDefinitionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListDeviceFleetsResponse = ( output , context ) : ListDeviceFleetsResponse => { return { DeviceFleetSummaries : output . DeviceFleetSummaries !== undefined && output . DeviceFleetSummaries !== null ? deserializeAws_json1_1DeviceFleetSummaries ( output . DeviceFleetSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListDevicesResponse = ( output , context ) : ListDevicesResponse => { return { DeviceSummaries : output . DeviceSummaries !== undefined && output . DeviceSummaries !== null ? deserializeAws_json1_1DeviceSummaries ( output . DeviceSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListDomainsResponse = ( output , context ) : ListDomainsResponse => { return { Domains : output . Domains !== undefined && output . Domains !== null ? deserializeAws_json1_1DomainList ( output . Domains , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListEdgePackagingJobsResponse = ( output , context ) : ListEdgePackagingJobsResponse => { return { EdgePackagingJobSummaries : output . EdgePackagingJobSummaries !== undefined && output . EdgePackagingJobSummaries !== null ? deserializeAws_json1_1EdgePackagingJobSummaries ( output . EdgePackagingJobSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListEndpointConfigsOutput = ( output , context ) : ListEndpointConfigsOutput => { return { EndpointConfigs : output . EndpointConfigs !== undefined && output . EndpointConfigs !== null ? deserializeAws_json1_1EndpointConfigSummaryList ( output . EndpointConfigs , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListEndpointsOutput = ( output , context ) : ListEndpointsOutput => { return { Endpoints : output . Endpoints !== undefined && output . Endpoints !== null ? deserializeAws_json1_1EndpointSummaryList ( output . Endpoints , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListExperimentsResponse = ( output , context ) : ListExperimentsResponse => { return { ExperimentSummaries : output . ExperimentSummaries !== undefined && output . ExperimentSummaries !== null ? deserializeAws_json1_1ExperimentSummaries ( output . ExperimentSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListFeatureGroupsResponse = ( output , context ) : ListFeatureGroupsResponse => { return { FeatureGroupSummaries : output . FeatureGroupSummaries !== undefined && output . FeatureGroupSummaries !== null ? deserializeAws_json1_1FeatureGroupSummaries ( output . FeatureGroupSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListFlowDefinitionsResponse = ( output , context ) : ListFlowDefinitionsResponse => { return { FlowDefinitionSummaries : output . FlowDefinitionSummaries !== undefined && output . FlowDefinitionSummaries !== null ? deserializeAws_json1_1FlowDefinitionSummaries ( output . FlowDefinitionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListHumanTaskUisResponse = ( output , context ) : ListHumanTaskUisResponse => { return { HumanTaskUiSummaries : output . HumanTaskUiSummaries !== undefined && output . HumanTaskUiSummaries !== null ? deserializeAws_json1_1HumanTaskUiSummaries ( output . HumanTaskUiSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListHyperParameterTuningJobsResponse = ( output , context ) : ListHyperParameterTuningJobsResponse => { return { HyperParameterTuningJobSummaries : output . HyperParameterTuningJobSummaries !== undefined && output . HyperParameterTuningJobSummaries !== null ? deserializeAws_json1_1HyperParameterTuningJobSummaries ( output . HyperParameterTuningJobSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListImagesResponse = ( output , context ) : ListImagesResponse => { return { Images : output . Images !== undefined && output . Images !== null ? deserializeAws_json1_1Images ( output . Images , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListImageVersionsResponse = ( output , context ) : ListImageVersionsResponse => { return { ImageVersions : output . ImageVersions !== undefined && output . ImageVersions !== null ? deserializeAws_json1_1ImageVersions ( output . ImageVersions , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListInferenceRecommendationsJobsResponse = ( output , context ) : ListInferenceRecommendationsJobsResponse => { return { InferenceRecommendationsJobs : output . InferenceRecommendationsJobs !== undefined && output . InferenceRecommendationsJobs !== null ? deserializeAws_json1_1InferenceRecommendationsJobs ( output . InferenceRecommendationsJobs , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListLabelingJobsForWorkteamResponse = ( output , context ) : ListLabelingJobsForWorkteamResponse => { return { LabelingJobSummaryList : output . LabelingJobSummaryList !== undefined && output . LabelingJobSummaryList !== null ? deserializeAws_json1_1LabelingJobForWorkteamSummaryList ( output . LabelingJobSummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListLabelingJobsResponse = ( output , context ) : ListLabelingJobsResponse => { return { LabelingJobSummaryList : output . LabelingJobSummaryList !== undefined && output . LabelingJobSummaryList !== null ? deserializeAws_json1_1LabelingJobSummaryList ( output . LabelingJobSummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListLineageGroupsResponse = ( output , context ) : ListLineageGroupsResponse => { return { LineageGroupSummaries : output . LineageGroupSummaries !== undefined && output . LineageGroupSummaries !== null ? deserializeAws_json1_1LineageGroupSummaries ( output . LineageGroupSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelBiasJobDefinitionsResponse = ( output , context ) : ListModelBiasJobDefinitionsResponse => { return { JobDefinitionSummaries : output . JobDefinitionSummaries !== undefined && output . JobDefinitionSummaries !== null ? deserializeAws_json1_1MonitoringJobDefinitionSummaryList ( output . JobDefinitionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelExplainabilityJobDefinitionsResponse = ( output , context ) : ListModelExplainabilityJobDefinitionsResponse => { return { JobDefinitionSummaries : output . JobDefinitionSummaries !== undefined && output . JobDefinitionSummaries !== null ? deserializeAws_json1_1MonitoringJobDefinitionSummaryList ( output . JobDefinitionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelMetadataResponse = ( output , context ) : ListModelMetadataResponse => { return { ModelMetadataSummaries : output . ModelMetadataSummaries !== undefined && output . ModelMetadataSummaries !== null ? deserializeAws_json1_1ModelMetadataSummaries ( output . ModelMetadataSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelPackageGroupsOutput = ( output , context ) : ListModelPackageGroupsOutput => { return { ModelPackageGroupSummaryList : output . ModelPackageGroupSummaryList !== undefined && output . ModelPackageGroupSummaryList !== null ? deserializeAws_json1_1ModelPackageGroupSummaryList ( output . ModelPackageGroupSummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelPackagesOutput = ( output , context ) : ListModelPackagesOutput => { return { ModelPackageSummaryList : output . ModelPackageSummaryList !== undefined && output . ModelPackageSummaryList !== null ? deserializeAws_json1_1ModelPackageSummaryList ( output . ModelPackageSummaryList , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelQualityJobDefinitionsResponse = ( output , context ) : ListModelQualityJobDefinitionsResponse => { return { JobDefinitionSummaries : output . JobDefinitionSummaries !== undefined && output . JobDefinitionSummaries !== null ? deserializeAws_json1_1MonitoringJobDefinitionSummaryList ( output . JobDefinitionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListModelsOutput = ( output , context ) : ListModelsOutput => { return { Models : output . Models !== undefined && output . Models !== null ? deserializeAws_json1_1ModelSummaryList ( output . Models , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListMonitoringExecutionsResponse = ( output , context ) : ListMonitoringExecutionsResponse => { return { MonitoringExecutionSummaries : output . MonitoringExecutionSummaries !== undefined && output . MonitoringExecutionSummaries !== null ? deserializeAws_json1_1MonitoringExecutionSummaryList ( output . MonitoringExecutionSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListMonitoringSchedulesResponse = ( output , context ) : ListMonitoringSchedulesResponse => { return { MonitoringScheduleSummaries : output . MonitoringScheduleSummaries !== undefined && output . MonitoringScheduleSummaries !== null ? deserializeAws_json1_1MonitoringScheduleSummaryList ( output . MonitoringScheduleSummaries , context ) : undefined , NextToken : __expectString ( output . NextToken ) , } as any ; } ; const deserializeAws_json1_1ListNotebookInstanceLifecycleConfigsOutput = ( output , context ) : ListNotebookInstanceLifecycleConfigsOutput => { return { NextToken : __expectString ( output . NextToken ) , NotebookInstanceLifecycleConfigs : output . NotebookInstanceLifecycleConfigs !== undefined && output . NotebookInstanceLifecycleConfigs !== null ? deserializeAws_json1_1NotebookInstanceLifecycleConfigSummaryList ( output . NotebookInstanceLifecycleConfigs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListNotebookInstancesOutput = ( output , context ) : ListNotebookInstancesOutput => { return { NextToken : __expectString ( output . NextToken ) , NotebookInstances : output . NotebookInstances !== undefined && output . NotebookInstances !== null ? deserializeAws_json1_1NotebookInstanceSummaryList ( output . NotebookInstances , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListPipelineExecutionsResponse = ( output , context ) : ListPipelineExecutionsResponse => { return { NextToken : __expectString ( output . NextToken ) , PipelineExecutionSummaries : output . PipelineExecutionSummaries !== undefined && output . PipelineExecutionSummaries !== null ? deserializeAws_json1_1PipelineExecutionSummaryList ( output . PipelineExecutionSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListPipelineExecutionStepsResponse = ( output , context ) : ListPipelineExecutionStepsResponse => { return { NextToken : __expectString ( output . NextToken ) , PipelineExecutionSteps : output . PipelineExecutionSteps !== undefined && output . PipelineExecutionSteps !== null ? deserializeAws_json1_1PipelineExecutionStepList ( output . PipelineExecutionSteps , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListPipelineParametersForExecutionResponse = ( output , context ) : ListPipelineParametersForExecutionResponse => { return { NextToken : __expectString ( output . NextToken ) , PipelineParameters : output . PipelineParameters !== undefined && output . PipelineParameters !== null ? deserializeAws_json1_1ParameterList ( output . PipelineParameters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListPipelinesResponse = ( output , context ) : ListPipelinesResponse => { return { NextToken : __expectString ( output . NextToken ) , PipelineSummaries : output . PipelineSummaries !== undefined && output . PipelineSummaries !== null ? deserializeAws_json1_1PipelineSummaryList ( output . PipelineSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListProcessingJobsResponse = ( output , context ) : ListProcessingJobsResponse => { return { NextToken : __expectString ( output . NextToken ) , ProcessingJobSummaries : output . ProcessingJobSummaries !== undefined && output . ProcessingJobSummaries !== null ? deserializeAws_json1_1ProcessingJobSummaries ( output . ProcessingJobSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListProjectsOutput = ( output , context ) : ListProjectsOutput => { return { NextToken : __expectString ( output . NextToken ) , ProjectSummaryList : output . ProjectSummaryList !== undefined && output . ProjectSummaryList !== null ? deserializeAws_json1_1ProjectSummaryList ( output . ProjectSummaryList , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListStudioLifecycleConfigsResponse = ( output , context ) : ListStudioLifecycleConfigsResponse => { return { NextToken : __expectString ( output . NextToken ) , StudioLifecycleConfigs : output . StudioLifecycleConfigs !== undefined && output . StudioLifecycleConfigs !== null ? deserializeAws_json1_1StudioLifecycleConfigsList ( output . StudioLifecycleConfigs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListSubscribedWorkteamsResponse = ( output , context ) : ListSubscribedWorkteamsResponse => { return { NextToken : __expectString ( output . NextToken ) , SubscribedWorkteams : output . SubscribedWorkteams !== undefined && output . SubscribedWorkteams !== null ? deserializeAws_json1_1SubscribedWorkteams ( output . SubscribedWorkteams , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTagsOutput = ( output , context ) : ListTagsOutput => { return { NextToken : __expectString ( output . NextToken ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTrainingJobsForHyperParameterTuningJobResponse = ( output , context ) : ListTrainingJobsForHyperParameterTuningJobResponse => { return { NextToken : __expectString ( output . NextToken ) , TrainingJobSummaries : output . TrainingJobSummaries !== undefined && output . TrainingJobSummaries !== null ? deserializeAws_json1_1HyperParameterTrainingJobSummaries ( output . TrainingJobSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTrainingJobsResponse = ( output , context ) : ListTrainingJobsResponse => { return { NextToken : __expectString ( output . NextToken ) , TrainingJobSummaries : output . TrainingJobSummaries !== undefined && output . TrainingJobSummaries !== null ? deserializeAws_json1_1TrainingJobSummaries ( output . TrainingJobSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTransformJobsResponse = ( output , context ) : ListTransformJobsResponse => { return { NextToken : __expectString ( output . NextToken ) , TransformJobSummaries : output . TransformJobSummaries !== undefined && output . TransformJobSummaries !== null ? deserializeAws_json1_1TransformJobSummaries ( output . TransformJobSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTrialComponentsResponse = ( output , context ) : ListTrialComponentsResponse => { return { NextToken : __expectString ( output . NextToken ) , TrialComponentSummaries : output . TrialComponentSummaries !== undefined && output . TrialComponentSummaries !== null ? deserializeAws_json1_1TrialComponentSummaries ( output . TrialComponentSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListTrialsResponse = ( output , context ) : ListTrialsResponse => { return { NextToken : __expectString ( output . NextToken ) , TrialSummaries : output . TrialSummaries !== undefined && output . TrialSummaries !== null ? deserializeAws_json1_1TrialSummaries ( output . TrialSummaries , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListUserProfilesResponse = ( output , context ) : ListUserProfilesResponse => { return { NextToken : __expectString ( output . NextToken ) , UserProfiles : output . UserProfiles !== undefined && output . UserProfiles !== null ? deserializeAws_json1_1UserProfileList ( output . UserProfiles , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListWorkforcesResponse = ( output , context ) : ListWorkforcesResponse => { return { NextToken : __expectString ( output . NextToken ) , Workforces : output . Workforces !== undefined && output . Workforces !== null ? deserializeAws_json1_1Workforces ( output . Workforces , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ListWorkteamsResponse = ( output , context ) : ListWorkteamsResponse => { return { NextToken : __expectString ( output . NextToken ) , Workteams : output . Workteams !== undefined && output . Workteams !== null ? deserializeAws_json1_1Workteams ( output . Workteams , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MemberDefinition = ( output , context ) : MemberDefinition => { return { CognitoMemberDefinition : output . CognitoMemberDefinition !== undefined && output . CognitoMemberDefinition !== null ? deserializeAws_json1_1CognitoMemberDefinition ( output . CognitoMemberDefinition , context ) : undefined , OidcMemberDefinition : output . OidcMemberDefinition !== undefined && output . OidcMemberDefinition !== null ? deserializeAws_json1_1OidcMemberDefinition ( output . OidcMemberDefinition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MemberDefinitions = ( output , context ) : MemberDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MemberDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MetadataProperties = ( output , context ) : MetadataProperties => { return { CommitId : __expectString ( output . CommitId ) , GeneratedBy : __expectString ( output . GeneratedBy ) , ProjectId : __expectString ( output . ProjectId ) , Repository : __expectString ( output . Repository ) , } as any ; } ; const deserializeAws_json1_1MetricData = ( output , context ) : MetricData => { return { MetricName : __expectString ( output . MetricName ) , Timestamp : output . Timestamp !== undefined && output . Timestamp !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . Timestamp ) ) ) : undefined , Value : __limitedParseFloat32 ( output . Value ) , } as any ; } ; const deserializeAws_json1_1MetricDataList = ( output , context ) : MetricDatum [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MetricDatum ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MetricDatum = ( output , context ) : MetricDatum => { return { MetricName : __expectString ( output . MetricName ) , Set : __expectString ( output . Set ) , Value : __limitedParseFloat32 ( output . Value ) , } as any ; } ; const deserializeAws_json1_1MetricDefinition = ( output , context ) : MetricDefinition => { return { Name : __expectString ( output . Name ) , Regex : __expectString ( output . Regex ) , } as any ; } ; const deserializeAws_json1_1MetricDefinitionList = ( output , context ) : MetricDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MetricDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MetricsSource = ( output , context ) : MetricsSource => { return { ContentDigest : __expectString ( output . ContentDigest ) , ContentType : __expectString ( output . ContentType ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1ModelArtifacts = ( output , context ) : ModelArtifacts => { return { S3ModelArtifacts : __expectString ( output . S3ModelArtifacts ) , } as any ; } ; const deserializeAws_json1_1ModelBiasAppSpecification = ( output , context ) : ModelBiasAppSpecification => { return { ConfigUri : __expectString ( output . ConfigUri ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1MonitoringEnvironmentMap ( output . Environment , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , } as any ; } ; const deserializeAws_json1_1ModelBiasBaselineConfig = ( output , context ) : ModelBiasBaselineConfig => { return { BaseliningJobName : __expectString ( output . BaseliningJobName ) , ConstraintsResource : output . ConstraintsResource !== undefined && output . ConstraintsResource !== null ? deserializeAws_json1_1MonitoringConstraintsResource ( output . ConstraintsResource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelBiasJobInput = ( output , context ) : ModelBiasJobInput => { return { EndpointInput : output . EndpointInput !== undefined && output . EndpointInput !== null ? deserializeAws_json1_1EndpointInput ( output . EndpointInput , context ) : undefined , GroundTruthS3Input : output . GroundTruthS3Input !== undefined && output . GroundTruthS3Input !== null ? deserializeAws_json1_1MonitoringGroundTruthS3Input ( output . GroundTruthS3Input , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelClientConfig = ( output , context ) : ModelClientConfig => { return { InvocationsMaxRetries : __expectInt32 ( output . InvocationsMaxRetries ) , InvocationsTimeoutInSeconds : __expectInt32 ( output . InvocationsTimeoutInSeconds ) , } as any ; } ; const deserializeAws_json1_1ModelConfiguration = ( output , context ) : ModelConfiguration => { return { EnvironmentParameters : output . EnvironmentParameters !== undefined && output . EnvironmentParameters !== null ? deserializeAws_json1_1EnvironmentParameters ( output . EnvironmentParameters , context ) : undefined , InferenceSpecificationName : __expectString ( output . InferenceSpecificationName ) , } as any ; } ; const deserializeAws_json1_1ModelDataQuality = ( output , context ) : ModelDataQuality => { return { Constraints : output . Constraints !== undefined && output . Constraints !== null ? deserializeAws_json1_1MetricsSource ( output . Constraints , context ) : undefined , Statistics : output . Statistics !== undefined && output . Statistics !== null ? deserializeAws_json1_1MetricsSource ( output . Statistics , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelDeployConfig = ( output , context ) : ModelDeployConfig => { return { AutoGenerateEndpointName : __expectBoolean ( output . AutoGenerateEndpointName ) , EndpointName : __expectString ( output . EndpointName ) , } as any ; } ; const deserializeAws_json1_1ModelDeployResult = ( output , context ) : ModelDeployResult => { return { EndpointName : __expectString ( output . EndpointName ) , } as any ; } ; const deserializeAws_json1_1ModelDigests = ( output , context ) : ModelDigests => { return { ArtifactDigest : __expectString ( output . ArtifactDigest ) , } as any ; } ; const deserializeAws_json1_1ModelExplainabilityAppSpecification = ( output , context ) : ModelExplainabilityAppSpecification => { return { ConfigUri : __expectString ( output . ConfigUri ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1MonitoringEnvironmentMap ( output . Environment , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , } as any ; } ; const deserializeAws_json1_1ModelExplainabilityBaselineConfig = ( output , context ) : ModelExplainabilityBaselineConfig => { return { BaseliningJobName : __expectString ( output . BaseliningJobName ) , ConstraintsResource : output . ConstraintsResource !== undefined && output . ConstraintsResource !== null ? deserializeAws_json1_1MonitoringConstraintsResource ( output . ConstraintsResource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelExplainabilityJobInput = ( output , context ) : ModelExplainabilityJobInput => { return { EndpointInput : output . EndpointInput !== undefined && output . EndpointInput !== null ? deserializeAws_json1_1EndpointInput ( output . EndpointInput , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelInput = ( output , context ) : ModelInput => { return { DataInputConfig : __expectString ( output . DataInputConfig ) , } as any ; } ; const deserializeAws_json1_1ModelLatencyThreshold = ( output , context ) : ModelLatencyThreshold => { return { Percentile : __expectString ( output . Percentile ) , ValueInMilliseconds : __expectInt32 ( output . ValueInMilliseconds ) , } as any ; } ; const deserializeAws_json1_1ModelLatencyThresholds = ( output , context ) : ModelLatencyThreshold [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelLatencyThreshold ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelMetadataSummaries = ( output , context ) : ModelMetadataSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelMetadataSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelMetadataSummary = ( output , context ) : ModelMetadataSummary => { return { Domain : __expectString ( output . Domain ) , Framework : __expectString ( output . Framework ) , FrameworkVersion : __expectString ( output . FrameworkVersion ) , Model : __expectString ( output . Model ) , Task : __expectString ( output . Task ) , } as any ; } ; const deserializeAws_json1_1ModelMetrics = ( output , context ) : ModelMetrics => { return { Bias : output . Bias !== undefined && output . Bias !== null ? deserializeAws_json1_1Bias ( output . Bias , context ) : undefined , Explainability : output . Explainability !== undefined && output . Explainability !== null ? deserializeAws_json1_1Explainability ( output . Explainability , context ) : undefined , ModelDataQuality : output . ModelDataQuality !== undefined && output . ModelDataQuality !== null ? deserializeAws_json1_1ModelDataQuality ( output . ModelDataQuality , context ) : undefined , ModelQuality : output . ModelQuality !== undefined && output . ModelQuality !== null ? deserializeAws_json1_1ModelQuality ( output . ModelQuality , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelPackage = ( output , context ) : ModelPackage => { return { AdditionalInferenceSpecifications : output . AdditionalInferenceSpecifications !== undefined && output . AdditionalInferenceSpecifications !== null ? deserializeAws_json1_1AdditionalInferenceSpecifications ( output . AdditionalInferenceSpecifications , context ) : undefined , ApprovalDescription : __expectString ( output . ApprovalDescription ) , CertifyForMarketplace : __expectBoolean ( output . CertifyForMarketplace ) , CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , CustomerMetadataProperties : output . CustomerMetadataProperties !== undefined && output . CustomerMetadataProperties !== null ? deserializeAws_json1_1CustomerMetadataMap ( output . CustomerMetadataProperties , context ) : undefined , Domain : __expectString ( output . Domain ) , DriftCheckBaselines : output . DriftCheckBaselines !== undefined && output . DriftCheckBaselines !== null ? deserializeAws_json1_1DriftCheckBaselines ( output . DriftCheckBaselines , context ) : undefined , InferenceSpecification : output . InferenceSpecification !== undefined && output . InferenceSpecification !== null ? deserializeAws_json1_1InferenceSpecification ( output . InferenceSpecification , context ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , ModelApprovalStatus : __expectString ( output . ModelApprovalStatus ) , ModelMetrics : output . ModelMetrics !== undefined && output . ModelMetrics !== null ? deserializeAws_json1_1ModelMetrics ( output . ModelMetrics , context ) : undefined , ModelPackageArn : __expectString ( output . ModelPackageArn ) , ModelPackageDescription : __expectString ( output . ModelPackageDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageName : __expectString ( output . ModelPackageName ) , ModelPackageStatus : __expectString ( output . ModelPackageStatus ) , ModelPackageStatusDetails : output . ModelPackageStatusDetails !== undefined && output . ModelPackageStatusDetails !== null ? deserializeAws_json1_1ModelPackageStatusDetails ( output . ModelPackageStatusDetails , context ) : undefined , ModelPackageVersion : __expectInt32 ( output . ModelPackageVersion ) , SamplePayloadUrl : __expectString ( output . SamplePayloadUrl ) , SourceAlgorithmSpecification : output . SourceAlgorithmSpecification !== undefined && output . SourceAlgorithmSpecification !== null ? deserializeAws_json1_1SourceAlgorithmSpecification ( output . SourceAlgorithmSpecification , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , Task : __expectString ( output . Task ) , ValidationSpecification : output . ValidationSpecification !== undefined && output . ValidationSpecification !== null ? deserializeAws_json1_1ModelPackageValidationSpecification ( output . ValidationSpecification , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelPackageContainerDefinition = ( output , context ) : ModelPackageContainerDefinition => { return { ContainerHostname : __expectString ( output . ContainerHostname ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1EnvironmentMap ( output . Environment , context ) : undefined , Framework : __expectString ( output . Framework ) , FrameworkVersion : __expectString ( output . FrameworkVersion ) , Image : __expectString ( output . Image ) , ImageDigest : __expectString ( output . ImageDigest ) , ModelDataUrl : __expectString ( output . ModelDataUrl ) , ModelInput : output . ModelInput !== undefined && output . ModelInput !== null ? deserializeAws_json1_1ModelInput ( output . ModelInput , context ) : undefined , NearestModelName : __expectString ( output . NearestModelName ) , ProductId : __expectString ( output . ProductId ) , } as any ; } ; const deserializeAws_json1_1ModelPackageContainerDefinitionList = ( output , context ) : ModelPackageContainerDefinition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelPackageContainerDefinition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelPackageGroup = ( output , context ) : ModelPackageGroup => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ModelPackageGroupArn : __expectString ( output . ModelPackageGroupArn ) , ModelPackageGroupDescription : __expectString ( output . ModelPackageGroupDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageGroupStatus : __expectString ( output . ModelPackageGroupStatus ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelPackageGroupSummary = ( output , context ) : ModelPackageGroupSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ModelPackageGroupArn : __expectString ( output . ModelPackageGroupArn ) , ModelPackageGroupDescription : __expectString ( output . ModelPackageGroupDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageGroupStatus : __expectString ( output . ModelPackageGroupStatus ) , } as any ; } ; const deserializeAws_json1_1ModelPackageGroupSummaryList = ( output , context ) : ModelPackageGroupSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelPackageGroupSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelPackageStatusDetails = ( output , context ) : ModelPackageStatusDetails => { return { ImageScanStatuses : output . ImageScanStatuses !== undefined && output . ImageScanStatuses !== null ? deserializeAws_json1_1ModelPackageStatusItemList ( output . ImageScanStatuses , context ) : undefined , ValidationStatuses : output . ValidationStatuses !== undefined && output . ValidationStatuses !== null ? deserializeAws_json1_1ModelPackageStatusItemList ( output . ValidationStatuses , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelPackageStatusItem = ( output , context ) : ModelPackageStatusItem => { return { FailureReason : __expectString ( output . FailureReason ) , Name : __expectString ( output . Name ) , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1ModelPackageStatusItemList = ( output , context ) : ModelPackageStatusItem [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelPackageStatusItem ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelPackageSummaries = ( output , context ) : { [ key ] : BatchDescribeModelPackageSummary ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : deserializeAws_json1_1BatchDescribeModelPackageSummary ( value , context ) , } ; } , { } ) ; } ; const deserializeAws_json1_1ModelPackageSummary = ( output , context ) : ModelPackageSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ModelApprovalStatus : __expectString ( output . ModelApprovalStatus ) , ModelPackageArn : __expectString ( output . ModelPackageArn ) , ModelPackageDescription : __expectString ( output . ModelPackageDescription ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , ModelPackageName : __expectString ( output . ModelPackageName ) , ModelPackageStatus : __expectString ( output . ModelPackageStatus ) , ModelPackageVersion : __expectInt32 ( output . ModelPackageVersion ) , } as any ; } ; const deserializeAws_json1_1ModelPackageSummaryList = ( output , context ) : ModelPackageSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelPackageSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelPackageValidationProfile = ( output , context ) : ModelPackageValidationProfile => { return { ProfileName : __expectString ( output . ProfileName ) , TransformJobDefinition : output . TransformJobDefinition !== undefined && output . TransformJobDefinition !== null ? deserializeAws_json1_1TransformJobDefinition ( output . TransformJobDefinition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelPackageValidationProfiles = ( output , context ) : ModelPackageValidationProfile [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelPackageValidationProfile ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ModelPackageValidationSpecification = ( output , context ) : ModelPackageValidationSpecification => { return { ValidationProfiles : output . ValidationProfiles !== undefined && output . ValidationProfiles !== null ? deserializeAws_json1_1ModelPackageValidationProfiles ( output . ValidationProfiles , context ) : undefined , ValidationRole : __expectString ( output . ValidationRole ) , } as any ; } ; const deserializeAws_json1_1ModelQuality = ( output , context ) : ModelQuality => { return { Constraints : output . Constraints !== undefined && output . Constraints !== null ? deserializeAws_json1_1MetricsSource ( output . Constraints , context ) : undefined , Statistics : output . Statistics !== undefined && output . Statistics !== null ? deserializeAws_json1_1MetricsSource ( output . Statistics , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelQualityAppSpecification = ( output , context ) : ModelQualityAppSpecification => { return { ContainerArguments : output . ContainerArguments !== undefined && output . ContainerArguments !== null ? deserializeAws_json1_1MonitoringContainerArguments ( output . ContainerArguments , context ) : undefined , ContainerEntrypoint : output . ContainerEntrypoint !== undefined && output . ContainerEntrypoint !== null ? deserializeAws_json1_1ContainerEntrypoint ( output . ContainerEntrypoint , context ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1MonitoringEnvironmentMap ( output . Environment , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , PostAnalyticsProcessorSourceUri : __expectString ( output . PostAnalyticsProcessorSourceUri ) , ProblemType : __expectString ( output . ProblemType ) , RecordPreprocessorSourceUri : __expectString ( output . RecordPreprocessorSourceUri ) , } as any ; } ; const deserializeAws_json1_1ModelQualityBaselineConfig = ( output , context ) : ModelQualityBaselineConfig => { return { BaseliningJobName : __expectString ( output . BaseliningJobName ) , ConstraintsResource : output . ConstraintsResource !== undefined && output . ConstraintsResource !== null ? deserializeAws_json1_1MonitoringConstraintsResource ( output . ConstraintsResource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelQualityJobInput = ( output , context ) : ModelQualityJobInput => { return { EndpointInput : output . EndpointInput !== undefined && output . EndpointInput !== null ? deserializeAws_json1_1EndpointInput ( output . EndpointInput , context ) : undefined , GroundTruthS3Input : output . GroundTruthS3Input !== undefined && output . GroundTruthS3Input !== null ? deserializeAws_json1_1MonitoringGroundTruthS3Input ( output . GroundTruthS3Input , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ModelStepMetadata = ( output , context ) : ModelStepMetadata => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1ModelSummary = ( output , context ) : ModelSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ModelArn : __expectString ( output . ModelArn ) , ModelName : __expectString ( output . ModelName ) , } as any ; } ; const deserializeAws_json1_1ModelSummaryList = ( output , context ) : ModelSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ModelSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringAppSpecification = ( output , context ) : MonitoringAppSpecification => { return { ContainerArguments : output . ContainerArguments !== undefined && output . ContainerArguments !== null ? deserializeAws_json1_1MonitoringContainerArguments ( output . ContainerArguments , context ) : undefined , ContainerEntrypoint : output . ContainerEntrypoint !== undefined && output . ContainerEntrypoint !== null ? deserializeAws_json1_1ContainerEntrypoint ( output . ContainerEntrypoint , context ) : undefined , ImageUri : __expectString ( output . ImageUri ) , PostAnalyticsProcessorSourceUri : __expectString ( output . PostAnalyticsProcessorSourceUri ) , RecordPreprocessorSourceUri : __expectString ( output . RecordPreprocessorSourceUri ) , } as any ; } ; const deserializeAws_json1_1MonitoringBaselineConfig = ( output , context ) : MonitoringBaselineConfig => { return { BaseliningJobName : __expectString ( output . BaseliningJobName ) , ConstraintsResource : output . ConstraintsResource !== undefined && output . ConstraintsResource !== null ? deserializeAws_json1_1MonitoringConstraintsResource ( output . ConstraintsResource , context ) : undefined , StatisticsResource : output . StatisticsResource !== undefined && output . StatisticsResource !== null ? deserializeAws_json1_1MonitoringStatisticsResource ( output . StatisticsResource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringClusterConfig = ( output , context ) : MonitoringClusterConfig => { return { InstanceCount : __expectInt32 ( output . InstanceCount ) , InstanceType : __expectString ( output . InstanceType ) , VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1MonitoringConstraintsResource = ( output , context ) : MonitoringConstraintsResource => { return { S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1MonitoringContainerArguments = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1MonitoringEnvironmentMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1MonitoringExecutionSummary = ( output , context ) : MonitoringExecutionSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointName : __expectString ( output . EndpointName ) , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MonitoringExecutionStatus : __expectString ( output . MonitoringExecutionStatus ) , MonitoringJobDefinitionName : __expectString ( output . MonitoringJobDefinitionName ) , MonitoringScheduleName : __expectString ( output . MonitoringScheduleName ) , MonitoringType : __expectString ( output . MonitoringType ) , ProcessingJobArn : __expectString ( output . ProcessingJobArn ) , ScheduledTime : output . ScheduledTime !== undefined && output . ScheduledTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ScheduledTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringExecutionSummaryList = ( output , context ) : MonitoringExecutionSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringExecutionSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringGroundTruthS3Input = ( output , context ) : MonitoringGroundTruthS3Input => { return { S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1MonitoringInput = ( output , context ) : MonitoringInput => { return { EndpointInput : output . EndpointInput !== undefined && output . EndpointInput !== null ? deserializeAws_json1_1EndpointInput ( output . EndpointInput , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringInputs = ( output , context ) : MonitoringInput [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringInput ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringJobDefinition = ( output , context ) : MonitoringJobDefinition => { return { BaselineConfig : output . BaselineConfig !== undefined && output . BaselineConfig !== null ? deserializeAws_json1_1MonitoringBaselineConfig ( output . BaselineConfig , context ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1MonitoringEnvironmentMap ( output . Environment , context ) : undefined , MonitoringAppSpecification : output . MonitoringAppSpecification !== undefined && output . MonitoringAppSpecification !== null ? deserializeAws_json1_1MonitoringAppSpecification ( output . MonitoringAppSpecification , context ) : undefined , MonitoringInputs : output . MonitoringInputs !== undefined && output . MonitoringInputs !== null ? deserializeAws_json1_1MonitoringInputs ( output . MonitoringInputs , context ) : undefined , MonitoringOutputConfig : output . MonitoringOutputConfig !== undefined && output . MonitoringOutputConfig !== null ? deserializeAws_json1_1MonitoringOutputConfig ( output . MonitoringOutputConfig , context ) : undefined , MonitoringResources : output . MonitoringResources !== undefined && output . MonitoringResources !== null ? deserializeAws_json1_1MonitoringResources ( output . MonitoringResources , context ) : undefined , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1NetworkConfig ( output . NetworkConfig , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1MonitoringStoppingCondition ( output . StoppingCondition , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringJobDefinitionSummary = ( output , context ) : MonitoringJobDefinitionSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointName : __expectString ( output . EndpointName ) , MonitoringJobDefinitionArn : __expectString ( output . MonitoringJobDefinitionArn ) , MonitoringJobDefinitionName : __expectString ( output . MonitoringJobDefinitionName ) , } as any ; } ; const deserializeAws_json1_1MonitoringJobDefinitionSummaryList = ( output , context ) : MonitoringJobDefinitionSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringJobDefinitionSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringNetworkConfig = ( output , context ) : MonitoringNetworkConfig => { return { EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringOutput = ( output , context ) : MonitoringOutput => { return { S3Output : output . S3Output !== undefined && output . S3Output !== null ? deserializeAws_json1_1MonitoringS3Output ( output . S3Output , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringOutputConfig = ( output , context ) : MonitoringOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , MonitoringOutputs : output . MonitoringOutputs !== undefined && output . MonitoringOutputs !== null ? deserializeAws_json1_1MonitoringOutputs ( output . MonitoringOutputs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringOutputs = ( output , context ) : MonitoringOutput [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringOutput ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringResources = ( output , context ) : MonitoringResources => { return { ClusterConfig : output . ClusterConfig !== undefined && output . ClusterConfig !== null ? deserializeAws_json1_1MonitoringClusterConfig ( output . ClusterConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringS3Output = ( output , context ) : MonitoringS3Output => { return { LocalPath : __expectString ( output . LocalPath ) , S3UploadMode : __expectString ( output . S3UploadMode ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1MonitoringSchedule = ( output , context ) : MonitoringSchedule => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointName : __expectString ( output . EndpointName ) , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LastMonitoringExecutionSummary : output . LastMonitoringExecutionSummary !== undefined && output . LastMonitoringExecutionSummary !== null ? deserializeAws_json1_1MonitoringExecutionSummary ( output . LastMonitoringExecutionSummary , context ) : undefined , MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , MonitoringScheduleConfig : output . MonitoringScheduleConfig !== undefined && output . MonitoringScheduleConfig !== null ? deserializeAws_json1_1MonitoringScheduleConfig ( output . MonitoringScheduleConfig , context ) : undefined , MonitoringScheduleName : __expectString ( output . MonitoringScheduleName ) , MonitoringScheduleStatus : __expectString ( output . MonitoringScheduleStatus ) , MonitoringType : __expectString ( output . MonitoringType ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringScheduleConfig = ( output , context ) : MonitoringScheduleConfig => { return { MonitoringJobDefinition : output . MonitoringJobDefinition !== undefined && output . MonitoringJobDefinition !== null ? deserializeAws_json1_1MonitoringJobDefinition ( output . MonitoringJobDefinition , context ) : undefined , MonitoringJobDefinitionName : __expectString ( output . MonitoringJobDefinitionName ) , MonitoringType : __expectString ( output . MonitoringType ) , ScheduleConfig : output . ScheduleConfig !== undefined && output . ScheduleConfig !== null ? deserializeAws_json1_1ScheduleConfig ( output . ScheduleConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1MonitoringScheduleList = ( output , context ) : MonitoringSchedule [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringSchedule ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringScheduleSummary = ( output , context ) : MonitoringScheduleSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , EndpointName : __expectString ( output . EndpointName ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MonitoringJobDefinitionName : __expectString ( output . MonitoringJobDefinitionName ) , MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , MonitoringScheduleName : __expectString ( output . MonitoringScheduleName ) , MonitoringScheduleStatus : __expectString ( output . MonitoringScheduleStatus ) , MonitoringType : __expectString ( output . MonitoringType ) , } as any ; } ; const deserializeAws_json1_1MonitoringScheduleSummaryList = ( output , context ) : MonitoringScheduleSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1MonitoringScheduleSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1MonitoringStatisticsResource = ( output , context ) : MonitoringStatisticsResource => { return { S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1MonitoringStoppingCondition = ( output , context ) : MonitoringStoppingCondition => { return { MaxRuntimeInSeconds : __expectInt32 ( output . MaxRuntimeInSeconds ) , } as any ; } ; const deserializeAws_json1_1MultiModelConfig = ( output , context ) : MultiModelConfig => { return { ModelCacheSetting : __expectString ( output . ModelCacheSetting ) , } as any ; } ; const deserializeAws_json1_1NeoVpcConfig = ( output , context ) : NeoVpcConfig => { return { SecurityGroupIds : output . SecurityGroupIds !== undefined && output . SecurityGroupIds !== null ? deserializeAws_json1_1NeoVpcSecurityGroupIds ( output . SecurityGroupIds , context ) : undefined , Subnets : output . Subnets !== undefined && output . Subnets !== null ? deserializeAws_json1_1NeoVpcSubnets ( output . Subnets , context ) : undefined , } as any ; } ; const deserializeAws_json1_1NeoVpcSecurityGroupIds = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1NeoVpcSubnets = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1NetworkConfig = ( output , context ) : NetworkConfig => { return { EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1NotebookInstanceAcceleratorTypes = ( output , context ) : ( NotebookInstanceAcceleratorType | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1NotebookInstanceLifecycleConfigList = ( output , context ) : NotebookInstanceLifecycleHook [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1NotebookInstanceLifecycleHook ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1NotebookInstanceLifecycleConfigSummary = ( output , context ) : NotebookInstanceLifecycleConfigSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , NotebookInstanceLifecycleConfigArn : __expectString ( output . NotebookInstanceLifecycleConfigArn ) , NotebookInstanceLifecycleConfigName : __expectString ( output . NotebookInstanceLifecycleConfigName ) , } as any ; } ; const deserializeAws_json1_1NotebookInstanceLifecycleConfigSummaryList = ( output , context ) : NotebookInstanceLifecycleConfigSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1NotebookInstanceLifecycleConfigSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1NotebookInstanceLifecycleHook = ( output , context ) : NotebookInstanceLifecycleHook => { return { Content : __expectString ( output . Content ) , } as any ; } ; const deserializeAws_json1_1NotebookInstanceSummary = ( output , context ) : NotebookInstanceSummary => { return { AdditionalCodeRepositories : output . AdditionalCodeRepositories !== undefined && output . AdditionalCodeRepositories !== null ? deserializeAws_json1_1AdditionalCodeRepositoryNamesOrUrls ( output . AdditionalCodeRepositories , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DefaultCodeRepository : __expectString ( output . DefaultCodeRepository ) , InstanceType : __expectString ( output . InstanceType ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , NotebookInstanceArn : __expectString ( output . NotebookInstanceArn ) , NotebookInstanceLifecycleConfigName : __expectString ( output . NotebookInstanceLifecycleConfigName ) , NotebookInstanceName : __expectString ( output . NotebookInstanceName ) , NotebookInstanceStatus : __expectString ( output . NotebookInstanceStatus ) , Url : __expectString ( output . Url ) , } as any ; } ; const deserializeAws_json1_1NotebookInstanceSummaryList = ( output , context ) : NotebookInstanceSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1NotebookInstanceSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1NotificationConfiguration = ( output , context ) : NotificationConfiguration => { return { NotificationTopicArn : __expectString ( output . NotificationTopicArn ) , } as any ; } ; const deserializeAws_json1_1ObjectiveStatusCounters = ( output , context ) : ObjectiveStatusCounters => { return { Failed : __expectInt32 ( output . Failed ) , Pending : __expectInt32 ( output . Pending ) , Succeeded : __expectInt32 ( output . Succeeded ) , } as any ; } ; const deserializeAws_json1_1OfflineStoreConfig = ( output , context ) : OfflineStoreConfig => { return { DataCatalogConfig : output . DataCatalogConfig !== undefined && output . DataCatalogConfig !== null ? deserializeAws_json1_1DataCatalogConfig ( output . DataCatalogConfig , context ) : undefined , DisableGlueTableCreation : __expectBoolean ( output . DisableGlueTableCreation ) , S3StorageConfig : output . S3StorageConfig !== undefined && output . S3StorageConfig !== null ? deserializeAws_json1_1S3StorageConfig ( output . S3StorageConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1OfflineStoreStatus = ( output , context ) : OfflineStoreStatus => { return { BlockedReason : __expectString ( output . BlockedReason ) , Status : __expectString ( output . Status ) , } as any ; } ; const deserializeAws_json1_1OidcConfigForResponse = ( output , context ) : OidcConfigForResponse => { return { AuthorizationEndpoint : __expectString ( output . AuthorizationEndpoint ) , ClientId : __expectString ( output . ClientId ) , Issuer : __expectString ( output . Issuer ) , JwksUri : __expectString ( output . JwksUri ) , LogoutEndpoint : __expectString ( output . LogoutEndpoint ) , TokenEndpoint : __expectString ( output . TokenEndpoint ) , UserInfoEndpoint : __expectString ( output . UserInfoEndpoint ) , } as any ; } ; const deserializeAws_json1_1OidcMemberDefinition = ( output , context ) : OidcMemberDefinition => { return { Groups : output . Groups !== undefined && output . Groups !== null ? deserializeAws_json1_1Groups ( output . Groups , context ) : undefined , } as any ; } ; const deserializeAws_json1_1OnlineStoreConfig = ( output , context ) : OnlineStoreConfig => { return { EnableOnlineStore : __expectBoolean ( output . EnableOnlineStore ) , SecurityConfig : output . SecurityConfig !== undefined && output . SecurityConfig !== null ? deserializeAws_json1_1OnlineStoreSecurityConfig ( output . SecurityConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1OnlineStoreSecurityConfig = ( output , context ) : OnlineStoreSecurityConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , } as any ; } ; const deserializeAws_json1_1OutputConfig = ( output , context ) : OutputConfig => { return { CompilerOptions : __expectString ( output . CompilerOptions ) , KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputLocation : __expectString ( output . S3OutputLocation ) , TargetDevice : __expectString ( output . TargetDevice ) , TargetPlatform : output . TargetPlatform !== undefined && output . TargetPlatform !== null ? deserializeAws_json1_1TargetPlatform ( output . TargetPlatform , context ) : undefined , } as any ; } ; const deserializeAws_json1_1OutputDataConfig = ( output , context ) : OutputDataConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1OutputParameter = ( output , context ) : OutputParameter => { return { Name : __expectString ( output . Name ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1OutputParameterList = ( output , context ) : OutputParameter [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1OutputParameter ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ParallelismConfiguration = ( output , context ) : ParallelismConfiguration => { return { MaxParallelExecutionSteps : __expectInt32 ( output . MaxParallelExecutionSteps ) , } as any ; } ; const deserializeAws_json1_1Parameter = ( output , context ) : Parameter => { return { Name : __expectString ( output . Name ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1ParameterList = ( output , context ) : Parameter [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Parameter ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ParameterRange = ( output , context ) : ParameterRange => { return { CategoricalParameterRangeSpecification : output . CategoricalParameterRangeSpecification !== undefined && output . CategoricalParameterRangeSpecification !== null ? deserializeAws_json1_1CategoricalParameterRangeSpecification ( output . CategoricalParameterRangeSpecification , context ) : undefined , ContinuousParameterRangeSpecification : output . ContinuousParameterRangeSpecification !== undefined && output . ContinuousParameterRangeSpecification !== null ? deserializeAws_json1_1ContinuousParameterRangeSpecification ( output . ContinuousParameterRangeSpecification , context ) : undefined , IntegerParameterRangeSpecification : output . IntegerParameterRangeSpecification !== undefined && output . IntegerParameterRangeSpecification !== null ? deserializeAws_json1_1IntegerParameterRangeSpecification ( output . IntegerParameterRangeSpecification , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ParameterRanges = ( output , context ) : ParameterRanges => { return { CategoricalParameterRanges : output . CategoricalParameterRanges !== undefined && output . CategoricalParameterRanges !== null ? deserializeAws_json1_1CategoricalParameterRanges ( output . CategoricalParameterRanges , context ) : undefined , ContinuousParameterRanges : output . ContinuousParameterRanges !== undefined && output . ContinuousParameterRanges !== null ? deserializeAws_json1_1ContinuousParameterRanges ( output . ContinuousParameterRanges , context ) : undefined , IntegerParameterRanges : output . IntegerParameterRanges !== undefined && output . IntegerParameterRanges !== null ? deserializeAws_json1_1IntegerParameterRanges ( output . IntegerParameterRanges , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ParameterValues = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1Parent = ( output , context ) : Parent => { return { ExperimentName : __expectString ( output . ExperimentName ) , TrialName : __expectString ( output . TrialName ) , } as any ; } ; const deserializeAws_json1_1ParentHyperParameterTuningJob = ( output , context ) : ParentHyperParameterTuningJob => { return { HyperParameterTuningJobName : __expectString ( output . HyperParameterTuningJobName ) , } as any ; } ; const deserializeAws_json1_1ParentHyperParameterTuningJobs = ( output , context ) : ParentHyperParameterTuningJob [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ParentHyperParameterTuningJob ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Parents = ( output , context ) : Parent [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Parent ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1PendingDeploymentSummary = ( output , context ) : PendingDeploymentSummary => { return { EndpointConfigName : __expectString ( output . EndpointConfigName ) , ProductionVariants : output . ProductionVariants !== undefined && output . ProductionVariants !== null ? deserializeAws_json1_1PendingProductionVariantSummaryList ( output . ProductionVariants , context ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1PendingProductionVariantSummary = ( output , context ) : PendingProductionVariantSummary => { return { AcceleratorType : __expectString ( output . AcceleratorType ) , CurrentInstanceCount : __expectInt32 ( output . CurrentInstanceCount ) , CurrentServerlessConfig : output . CurrentServerlessConfig !== undefined && output . CurrentServerlessConfig !== null ? deserializeAws_json1_1ProductionVariantServerlessConfig ( output . CurrentServerlessConfig , context ) : undefined , CurrentWeight : __limitedParseFloat32 ( output . CurrentWeight ) , DeployedImages : output . DeployedImages !== undefined && output . DeployedImages !== null ? deserializeAws_json1_1DeployedImages ( output . DeployedImages , context ) : undefined , DesiredInstanceCount : __expectInt32 ( output . DesiredInstanceCount ) , DesiredServerlessConfig : output . DesiredServerlessConfig !== undefined && output . DesiredServerlessConfig !== null ? deserializeAws_json1_1ProductionVariantServerlessConfig ( output . DesiredServerlessConfig , context ) : undefined , DesiredWeight : __limitedParseFloat32 ( output . DesiredWeight ) , InstanceType : __expectString ( output . InstanceType ) , VariantName : __expectString ( output . VariantName ) , VariantStatus : output . VariantStatus !== undefined && output . VariantStatus !== null ? deserializeAws_json1_1ProductionVariantStatusList ( output . VariantStatus , context ) : undefined , } as any ; } ; const deserializeAws_json1_1PendingProductionVariantSummaryList = ( output , context ) : PendingProductionVariantSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1PendingProductionVariantSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Phase = ( output , context ) : Phase => { return { DurationInSeconds : __expectInt32 ( output . DurationInSeconds ) , InitialNumberOfUsers : __expectInt32 ( output . InitialNumberOfUsers ) , SpawnRate : __expectInt32 ( output . SpawnRate ) , } as any ; } ; const deserializeAws_json1_1Phases = ( output , context ) : Phase [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Phase ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Pipeline = ( output , context ) : Pipeline => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LastRunTime : output . LastRunTime !== undefined && output . LastRunTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastRunTime ) ) ) : undefined , ParallelismConfiguration : output . ParallelismConfiguration !== undefined && output . ParallelismConfiguration !== null ? deserializeAws_json1_1ParallelismConfiguration ( output . ParallelismConfiguration , context ) : undefined , PipelineArn : __expectString ( output . PipelineArn ) , PipelineDescription : __expectString ( output . PipelineDescription ) , PipelineDisplayName : __expectString ( output . PipelineDisplayName ) , PipelineName : __expectString ( output . PipelineName ) , PipelineStatus : __expectString ( output . PipelineStatus ) , RoleArn : __expectString ( output . RoleArn ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1PipelineExecution = ( output , context ) : PipelineExecution => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ParallelismConfiguration : output . ParallelismConfiguration !== undefined && output . ParallelismConfiguration !== null ? deserializeAws_json1_1ParallelismConfiguration ( output . ParallelismConfiguration , context ) : undefined , PipelineArn : __expectString ( output . PipelineArn ) , PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , PipelineExecutionDescription : __expectString ( output . PipelineExecutionDescription ) , PipelineExecutionDisplayName : __expectString ( output . PipelineExecutionDisplayName ) , PipelineExecutionStatus : __expectString ( output . PipelineExecutionStatus ) , PipelineExperimentConfig : output . PipelineExperimentConfig !== undefined && output . PipelineExperimentConfig !== null ? deserializeAws_json1_1PipelineExperimentConfig ( output . PipelineExperimentConfig , context ) : undefined , PipelineParameters : output . PipelineParameters !== undefined && output . PipelineParameters !== null ? deserializeAws_json1_1ParameterList ( output . PipelineParameters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1PipelineExecutionStep = ( output , context ) : PipelineExecutionStep => { return { AttemptCount : __expectInt32 ( output . AttemptCount ) , CacheHitResult : output . CacheHitResult !== undefined && output . CacheHitResult !== null ? deserializeAws_json1_1CacheHitResult ( output . CacheHitResult , context ) : undefined , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , Metadata : output . Metadata !== undefined && output . Metadata !== null ? deserializeAws_json1_1PipelineExecutionStepMetadata ( output . Metadata , context ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , StepDescription : __expectString ( output . StepDescription ) , StepDisplayName : __expectString ( output . StepDisplayName ) , StepName : __expectString ( output . StepName ) , StepStatus : __expectString ( output . StepStatus ) , } as any ; } ; const deserializeAws_json1_1PipelineExecutionStepList = ( output , context ) : PipelineExecutionStep [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1PipelineExecutionStep ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1PipelineExecutionStepMetadata = ( output , context ) : PipelineExecutionStepMetadata => { return { Callback : output . Callback !== undefined && output . Callback !== null ? deserializeAws_json1_1CallbackStepMetadata ( output . Callback , context ) : undefined , ClarifyCheck : output . ClarifyCheck !== undefined && output . ClarifyCheck !== null ? deserializeAws_json1_1ClarifyCheckStepMetadata ( output . ClarifyCheck , context ) : undefined , Condition : output . Condition !== undefined && output . Condition !== null ? deserializeAws_json1_1ConditionStepMetadata ( output . Condition , context ) : undefined , EMR : output . EMR !== undefined && output . EMR !== null ? deserializeAws_json1_1EMRStepMetadata ( output . EMR , context ) : undefined , Lambda : output . Lambda !== undefined && output . Lambda !== null ? deserializeAws_json1_1LambdaStepMetadata ( output . Lambda , context ) : undefined , Model : output . Model !== undefined && output . Model !== null ? deserializeAws_json1_1ModelStepMetadata ( output . Model , context ) : undefined , ProcessingJob : output . ProcessingJob !== undefined && output . ProcessingJob !== null ? deserializeAws_json1_1ProcessingJobStepMetadata ( output . ProcessingJob , context ) : undefined , QualityCheck : output . QualityCheck !== undefined && output . QualityCheck !== null ? deserializeAws_json1_1QualityCheckStepMetadata ( output . QualityCheck , context ) : undefined , RegisterModel : output . RegisterModel !== undefined && output . RegisterModel !== null ? deserializeAws_json1_1RegisterModelStepMetadata ( output . RegisterModel , context ) : undefined , TrainingJob : output . TrainingJob !== undefined && output . TrainingJob !== null ? deserializeAws_json1_1TrainingJobStepMetadata ( output . TrainingJob , context ) : undefined , TransformJob : output . TransformJob !== undefined && output . TransformJob !== null ? deserializeAws_json1_1TransformJobStepMetadata ( output . TransformJob , context ) : undefined , TuningJob : output . TuningJob !== undefined && output . TuningJob !== null ? deserializeAws_json1_1TuningJobStepMetaData ( output . TuningJob , context ) : undefined , } as any ; } ; const deserializeAws_json1_1PipelineExecutionSummary = ( output , context ) : PipelineExecutionSummary => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , PipelineExecutionDescription : __expectString ( output . PipelineExecutionDescription ) , PipelineExecutionDisplayName : __expectString ( output . PipelineExecutionDisplayName ) , PipelineExecutionStatus : __expectString ( output . PipelineExecutionStatus ) , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1PipelineExecutionSummaryList = ( output , context ) : PipelineExecutionSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1PipelineExecutionSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1PipelineExperimentConfig = ( output , context ) : PipelineExperimentConfig => { return { ExperimentName : __expectString ( output . ExperimentName ) , TrialName : __expectString ( output . TrialName ) , } as any ; } ; const deserializeAws_json1_1PipelineSummary = ( output , context ) : PipelineSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastExecutionTime : output . LastExecutionTime !== undefined && output . LastExecutionTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastExecutionTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , PipelineArn : __expectString ( output . PipelineArn ) , PipelineDescription : __expectString ( output . PipelineDescription ) , PipelineDisplayName : __expectString ( output . PipelineDisplayName ) , PipelineName : __expectString ( output . PipelineName ) , RoleArn : __expectString ( output . RoleArn ) , } as any ; } ; const deserializeAws_json1_1PipelineSummaryList = ( output , context ) : PipelineSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1PipelineSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProcessingClusterConfig = ( output , context ) : ProcessingClusterConfig => { return { InstanceCount : __expectInt32 ( output . InstanceCount ) , InstanceType : __expectString ( output . InstanceType ) , VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1ProcessingEnvironmentMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1ProcessingFeatureStoreOutput = ( output , context ) : ProcessingFeatureStoreOutput => { return { FeatureGroupName : __expectString ( output . FeatureGroupName ) , } as any ; } ; const deserializeAws_json1_1ProcessingInput = ( output , context ) : ProcessingInput => { return { AppManaged : __expectBoolean ( output . AppManaged ) , DatasetDefinition : output . DatasetDefinition !== undefined && output . DatasetDefinition !== null ? deserializeAws_json1_1DatasetDefinition ( output . DatasetDefinition , context ) : undefined , InputName : __expectString ( output . InputName ) , S3Input : output . S3Input !== undefined && output . S3Input !== null ? deserializeAws_json1_1ProcessingS3Input ( output . S3Input , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProcessingInputs = ( output , context ) : ProcessingInput [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProcessingInput ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProcessingJob = ( output , context ) : ProcessingJob => { return { AppSpecification : output . AppSpecification !== undefined && output . AppSpecification !== null ? deserializeAws_json1_1AppSpecification ( output . AppSpecification , context ) : undefined , AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1ProcessingEnvironmentMap ( output . Environment , context ) : undefined , ExitMessage : __expectString ( output . ExitMessage ) , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , NetworkConfig : output . NetworkConfig !== undefined && output . NetworkConfig !== null ? deserializeAws_json1_1NetworkConfig ( output . NetworkConfig , context ) : undefined , ProcessingEndTime : output . ProcessingEndTime !== undefined && output . ProcessingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ProcessingEndTime ) ) ) : undefined , ProcessingInputs : output . ProcessingInputs !== undefined && output . ProcessingInputs !== null ? deserializeAws_json1_1ProcessingInputs ( output . ProcessingInputs , context ) : undefined , ProcessingJobArn : __expectString ( output . ProcessingJobArn ) , ProcessingJobName : __expectString ( output . ProcessingJobName ) , ProcessingJobStatus : __expectString ( output . ProcessingJobStatus ) , ProcessingOutputConfig : output . ProcessingOutputConfig !== undefined && output . ProcessingOutputConfig !== null ? deserializeAws_json1_1ProcessingOutputConfig ( output . ProcessingOutputConfig , context ) : undefined , ProcessingResources : output . ProcessingResources !== undefined && output . ProcessingResources !== null ? deserializeAws_json1_1ProcessingResources ( output . ProcessingResources , context ) : undefined , ProcessingStartTime : output . ProcessingStartTime !== undefined && output . ProcessingStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ProcessingStartTime ) ) ) : undefined , RoleArn : __expectString ( output . RoleArn ) , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1ProcessingStoppingCondition ( output . StoppingCondition , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , } as any ; } ; const deserializeAws_json1_1ProcessingJobStepMetadata = ( output , context ) : ProcessingJobStepMetadata => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1ProcessingJobSummaries = ( output , context ) : ProcessingJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProcessingJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProcessingJobSummary = ( output , context ) : ProcessingJobSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ExitMessage : __expectString ( output . ExitMessage ) , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ProcessingEndTime : output . ProcessingEndTime !== undefined && output . ProcessingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . ProcessingEndTime ) ) ) : undefined , ProcessingJobArn : __expectString ( output . ProcessingJobArn ) , ProcessingJobName : __expectString ( output . ProcessingJobName ) , ProcessingJobStatus : __expectString ( output . ProcessingJobStatus ) , } as any ; } ; const deserializeAws_json1_1ProcessingOutput = ( output , context ) : ProcessingOutput => { return { AppManaged : __expectBoolean ( output . AppManaged ) , FeatureStoreOutput : output . FeatureStoreOutput !== undefined && output . FeatureStoreOutput !== null ? deserializeAws_json1_1ProcessingFeatureStoreOutput ( output . FeatureStoreOutput , context ) : undefined , OutputName : __expectString ( output . OutputName ) , S3Output : output . S3Output !== undefined && output . S3Output !== null ? deserializeAws_json1_1ProcessingS3Output ( output . S3Output , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProcessingOutputConfig = ( output , context ) : ProcessingOutputConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , Outputs : output . Outputs !== undefined && output . Outputs !== null ? deserializeAws_json1_1ProcessingOutputs ( output . Outputs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProcessingOutputs = ( output , context ) : ProcessingOutput [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProcessingOutput ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProcessingResources = ( output , context ) : ProcessingResources => { return { ClusterConfig : output . ClusterConfig !== undefined && output . ClusterConfig !== null ? deserializeAws_json1_1ProcessingClusterConfig ( output . ClusterConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProcessingS3Input = ( output , context ) : ProcessingS3Input => { return { LocalPath : __expectString ( output . LocalPath ) , S3CompressionType : __expectString ( output . S3CompressionType ) , S3DataDistributionType : __expectString ( output . S3DataDistributionType ) , S3DataType : __expectString ( output . S3DataType ) , S3InputMode : __expectString ( output . S3InputMode ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1ProcessingS3Output = ( output , context ) : ProcessingS3Output => { return { LocalPath : __expectString ( output . LocalPath ) , S3UploadMode : __expectString ( output . S3UploadMode ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1ProcessingStoppingCondition = ( output , context ) : ProcessingStoppingCondition => { return { MaxRuntimeInSeconds : __expectInt32 ( output . MaxRuntimeInSeconds ) , } as any ; } ; const deserializeAws_json1_1ProductionVariant = ( output , context ) : ProductionVariant => { return { AcceleratorType : __expectString ( output . AcceleratorType ) , CoreDumpConfig : output . CoreDumpConfig !== undefined && output . CoreDumpConfig !== null ? deserializeAws_json1_1ProductionVariantCoreDumpConfig ( output . CoreDumpConfig , context ) : undefined , InitialInstanceCount : __expectInt32 ( output . InitialInstanceCount ) , InitialVariantWeight : __limitedParseFloat32 ( output . InitialVariantWeight ) , InstanceType : __expectString ( output . InstanceType ) , ModelName : __expectString ( output . ModelName ) , ServerlessConfig : output . ServerlessConfig !== undefined && output . ServerlessConfig !== null ? deserializeAws_json1_1ProductionVariantServerlessConfig ( output . ServerlessConfig , context ) : undefined , VariantName : __expectString ( output . VariantName ) , } as any ; } ; const deserializeAws_json1_1ProductionVariantCoreDumpConfig = ( output , context ) : ProductionVariantCoreDumpConfig => { return { DestinationS3Uri : __expectString ( output . DestinationS3Uri ) , KmsKeyId : __expectString ( output . KmsKeyId ) , } as any ; } ; const deserializeAws_json1_1ProductionVariantList = ( output , context ) : ProductionVariant [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProductionVariant ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProductionVariantServerlessConfig = ( output , context ) : ProductionVariantServerlessConfig => { return { MaxConcurrency : __expectInt32 ( output . MaxConcurrency ) , MemorySizeInMB : __expectInt32 ( output . MemorySizeInMB ) , } as any ; } ; const deserializeAws_json1_1ProductionVariantStatus = ( output , context ) : ProductionVariantStatus => { return { StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , Status : __expectString ( output . Status ) , StatusMessage : __expectString ( output . StatusMessage ) , } as any ; } ; const deserializeAws_json1_1ProductionVariantStatusList = ( output , context ) : ProductionVariantStatus [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProductionVariantStatus ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProductionVariantSummary = ( output , context ) : ProductionVariantSummary => { return { CurrentInstanceCount : __expectInt32 ( output . CurrentInstanceCount ) , CurrentServerlessConfig : output . CurrentServerlessConfig !== undefined && output . CurrentServerlessConfig !== null ? deserializeAws_json1_1ProductionVariantServerlessConfig ( output . CurrentServerlessConfig , context ) : undefined , CurrentWeight : __limitedParseFloat32 ( output . CurrentWeight ) , DeployedImages : output . DeployedImages !== undefined && output . DeployedImages !== null ? deserializeAws_json1_1DeployedImages ( output . DeployedImages , context ) : undefined , DesiredInstanceCount : __expectInt32 ( output . DesiredInstanceCount ) , DesiredServerlessConfig : output . DesiredServerlessConfig !== undefined && output . DesiredServerlessConfig !== null ? deserializeAws_json1_1ProductionVariantServerlessConfig ( output . DesiredServerlessConfig , context ) : undefined , DesiredWeight : __limitedParseFloat32 ( output . DesiredWeight ) , VariantName : __expectString ( output . VariantName ) , VariantStatus : output . VariantStatus !== undefined && output . VariantStatus !== null ? deserializeAws_json1_1ProductionVariantStatusList ( output . VariantStatus , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProductionVariantSummaryList = ( output , context ) : ProductionVariantSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProductionVariantSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProductListings = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1ProfilerConfig = ( output , context ) : ProfilerConfig => { return { ProfilingIntervalInMilliseconds : __expectLong ( output . ProfilingIntervalInMilliseconds ) , ProfilingParameters : output . ProfilingParameters !== undefined && output . ProfilingParameters !== null ? deserializeAws_json1_1ProfilingParameters ( output . ProfilingParameters , context ) : undefined , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1ProfilerRuleConfiguration = ( output , context ) : ProfilerRuleConfiguration => { return { InstanceType : __expectString ( output . InstanceType ) , LocalPath : __expectString ( output . LocalPath ) , RuleConfigurationName : __expectString ( output . RuleConfigurationName ) , RuleEvaluatorImage : __expectString ( output . RuleEvaluatorImage ) , RuleParameters : output . RuleParameters !== undefined && output . RuleParameters !== null ? deserializeAws_json1_1RuleParameters ( output . RuleParameters , context ) : undefined , S3OutputPath : __expectString ( output . S3OutputPath ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1ProfilerRuleConfigurations = ( output , context ) : ProfilerRuleConfiguration [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProfilerRuleConfiguration ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProfilerRuleEvaluationStatus = ( output , context ) : ProfilerRuleEvaluationStatus => { return { LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , RuleConfigurationName : __expectString ( output . RuleConfigurationName ) , RuleEvaluationJobArn : __expectString ( output . RuleEvaluationJobArn ) , RuleEvaluationStatus : __expectString ( output . RuleEvaluationStatus ) , StatusDetails : __expectString ( output . StatusDetails ) , } as any ; } ; const deserializeAws_json1_1ProfilerRuleEvaluationStatuses = ( output , context ) : ProfilerRuleEvaluationStatus [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProfilerRuleEvaluationStatus ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProfilingParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1Project = ( output , context ) : Project => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ProjectArn : __expectString ( output . ProjectArn ) , ProjectDescription : __expectString ( output . ProjectDescription ) , ProjectId : __expectString ( output . ProjectId ) , ProjectName : __expectString ( output . ProjectName ) , ProjectStatus : __expectString ( output . ProjectStatus ) , ServiceCatalogProvisionedProductDetails : output . ServiceCatalogProvisionedProductDetails !== undefined && output . ServiceCatalogProvisionedProductDetails !== null ? deserializeAws_json1_1ServiceCatalogProvisionedProductDetails ( output . ServiceCatalogProvisionedProductDetails , context ) : undefined , ServiceCatalogProvisioningDetails : output . ServiceCatalogProvisioningDetails !== undefined && output . ServiceCatalogProvisioningDetails !== null ? deserializeAws_json1_1ServiceCatalogProvisioningDetails ( output . ServiceCatalogProvisioningDetails , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , } as any ; } ; const deserializeAws_json1_1ProjectSummary = ( output , context ) : ProjectSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , ProjectArn : __expectString ( output . ProjectArn ) , ProjectDescription : __expectString ( output . ProjectDescription ) , ProjectId : __expectString ( output . ProjectId ) , ProjectName : __expectString ( output . ProjectName ) , ProjectStatus : __expectString ( output . ProjectStatus ) , } as any ; } ; const deserializeAws_json1_1ProjectSummaryList = ( output , context ) : ProjectSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProjectSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1PropertyNameSuggestion = ( output , context ) : PropertyNameSuggestion => { return { PropertyName : __expectString ( output . PropertyName ) , } as any ; } ; const deserializeAws_json1_1PropertyNameSuggestionList = ( output , context ) : PropertyNameSuggestion [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1PropertyNameSuggestion ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1ProvisioningParameter = ( output , context ) : ProvisioningParameter => { return { Key : __expectString ( output . Key ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1ProvisioningParameters = ( output , context ) : ProvisioningParameter [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1ProvisioningParameter ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1PublicWorkforceTaskPrice = ( output , context ) : PublicWorkforceTaskPrice => { return { AmountInUsd : output . AmountInUsd !== undefined && output . AmountInUsd !== null ? deserializeAws_json1_1USD ( output . AmountInUsd , context ) : undefined , } as any ; } ; const deserializeAws_json1_1PutModelPackageGroupPolicyOutput = ( output , context ) : PutModelPackageGroupPolicyOutput => { return { ModelPackageGroupArn : __expectString ( output . ModelPackageGroupArn ) , } as any ; } ; const deserializeAws_json1_1QualityCheckStepMetadata = ( output , context ) : QualityCheckStepMetadata => { return { BaselineUsedForDriftCheckConstraints : __expectString ( output . BaselineUsedForDriftCheckConstraints ) , BaselineUsedForDriftCheckStatistics : __expectString ( output . BaselineUsedForDriftCheckStatistics ) , CalculatedBaselineConstraints : __expectString ( output . CalculatedBaselineConstraints ) , CalculatedBaselineStatistics : __expectString ( output . CalculatedBaselineStatistics ) , CheckJobArn : __expectString ( output . CheckJobArn ) , CheckType : __expectString ( output . CheckType ) , ModelPackageGroupName : __expectString ( output . ModelPackageGroupName ) , RegisterNewBaseline : __expectBoolean ( output . RegisterNewBaseline ) , SkipCheck : __expectBoolean ( output . SkipCheck ) , ViolationReport : __expectString ( output . ViolationReport ) , } as any ; } ; const deserializeAws_json1_1QueryLineageResponse = ( output , context ) : QueryLineageResponse => { return { Edges : output . Edges !== undefined && output . Edges !== null ? deserializeAws_json1_1Edges ( output . Edges , context ) : undefined , NextToken : __expectString ( output . NextToken ) , Vertices : output . Vertices !== undefined && output . Vertices !== null ? deserializeAws_json1_1Vertices ( output . Vertices , context ) : undefined , } as any ; } ; const deserializeAws_json1_1RealtimeInferenceInstanceTypes = ( output , context ) : ( ProductionVariantInstanceType | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1RecommendationJobInputConfig = ( output , context ) : RecommendationJobInputConfig => { return { EndpointConfigurations : output . EndpointConfigurations !== undefined && output . EndpointConfigurations !== null ? deserializeAws_json1_1EndpointInputConfigurations ( output . EndpointConfigurations , context ) : undefined , JobDurationInSeconds : __expectInt32 ( output . JobDurationInSeconds ) , ModelPackageVersionArn : __expectString ( output . ModelPackageVersionArn ) , ResourceLimit : output . ResourceLimit !== undefined && output . ResourceLimit !== null ? deserializeAws_json1_1RecommendationJobResourceLimit ( output . ResourceLimit , context ) : undefined , TrafficPattern : output . TrafficPattern !== undefined && output . TrafficPattern !== null ? deserializeAws_json1_1TrafficPattern ( output . TrafficPattern , context ) : undefined , } as any ; } ; const deserializeAws_json1_1RecommendationJobResourceLimit = ( output , context ) : RecommendationJobResourceLimit => { return { MaxNumberOfTests : __expectInt32 ( output . MaxNumberOfTests ) , MaxParallelOfTests : __expectInt32 ( output . MaxParallelOfTests ) , } as any ; } ; const deserializeAws_json1_1RecommendationJobStoppingConditions = ( output , context ) : RecommendationJobStoppingConditions => { return { MaxInvocations : __expectInt32 ( output . MaxInvocations ) , ModelLatencyThresholds : output . ModelLatencyThresholds !== undefined && output . ModelLatencyThresholds !== null ? deserializeAws_json1_1ModelLatencyThresholds ( output . ModelLatencyThresholds , context ) : undefined , } as any ; } ; const deserializeAws_json1_1RecommendationMetrics = ( output , context ) : RecommendationMetrics => { return { CostPerHour : __limitedParseFloat32 ( output . CostPerHour ) , CostPerInference : __limitedParseFloat32 ( output . CostPerInference ) , MaxInvocations : __expectInt32 ( output . MaxInvocations ) , ModelLatency : __expectInt32 ( output . ModelLatency ) , } as any ; } ; const deserializeAws_json1_1RedshiftDatasetDefinition = ( output , context ) : RedshiftDatasetDefinition => { return { ClusterId : __expectString ( output . ClusterId ) , ClusterRoleArn : __expectString ( output . ClusterRoleArn ) , Database : __expectString ( output . Database ) , DbUser : __expectString ( output . DbUser ) , KmsKeyId : __expectString ( output . KmsKeyId ) , OutputCompression : __expectString ( output . OutputCompression ) , OutputFormat : __expectString ( output . OutputFormat ) , OutputS3Uri : __expectString ( output . OutputS3Uri ) , QueryString : __expectString ( output . QueryString ) , } as any ; } ; const deserializeAws_json1_1RegisterModelStepMetadata = ( output , context ) : RegisterModelStepMetadata => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1RenderingError = ( output , context ) : RenderingError => { return { Code : __expectString ( output . Code ) , Message : __expectString ( output . Message ) , } as any ; } ; const deserializeAws_json1_1RenderingErrorList = ( output , context ) : RenderingError [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1RenderingError ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1RenderUiTemplateResponse = ( output , context ) : RenderUiTemplateResponse => { return { Errors : output . Errors !== undefined && output . Errors !== null ? deserializeAws_json1_1RenderingErrorList ( output . Errors , context ) : undefined , RenderedContent : __expectString ( output . RenderedContent ) , } as any ; } ; const deserializeAws_json1_1RepositoryAuthConfig = ( output , context ) : RepositoryAuthConfig => { return { RepositoryCredentialsProviderArn : __expectString ( output . RepositoryCredentialsProviderArn ) , } as any ; } ; const deserializeAws_json1_1ResolvedAttributes = ( output , context ) : ResolvedAttributes => { return { AutoMLJobObjective : output . AutoMLJobObjective !== undefined && output . AutoMLJobObjective !== null ? deserializeAws_json1_1AutoMLJobObjective ( output . AutoMLJobObjective , context ) : undefined , CompletionCriteria : output . CompletionCriteria !== undefined && output . CompletionCriteria !== null ? deserializeAws_json1_1AutoMLJobCompletionCriteria ( output . CompletionCriteria , context ) : undefined , ProblemType : __expectString ( output . ProblemType ) , } as any ; } ; const deserializeAws_json1_1ResourceConfig = ( output , context ) : ResourceConfig => { return { InstanceCount : __expectInt32 ( output . InstanceCount ) , InstanceType : __expectString ( output . InstanceType ) , VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , VolumeSizeInGB : __expectInt32 ( output . VolumeSizeInGB ) , } as any ; } ; const deserializeAws_json1_1ResourceInUse = ( output , context ) : ResourceInUse => { return { Message : __expectString ( output . Message ) , } as any ; } ; const deserializeAws_json1_1ResourceLimitExceeded = ( output , context ) : ResourceLimitExceeded => { return { Message : __expectString ( output . Message ) , } as any ; } ; const deserializeAws_json1_1ResourceLimits = ( output , context ) : ResourceLimits => { return { MaxNumberOfTrainingJobs : __expectInt32 ( output . MaxNumberOfTrainingJobs ) , MaxParallelTrainingJobs : __expectInt32 ( output . MaxParallelTrainingJobs ) , } as any ; } ; const deserializeAws_json1_1ResourceNotFound = ( output , context ) : ResourceNotFound => { return { Message : __expectString ( output . Message ) , } as any ; } ; const deserializeAws_json1_1ResourceSpec = ( output , context ) : ResourceSpec => { return { InstanceType : __expectString ( output . InstanceType ) , LifecycleConfigArn : __expectString ( output . LifecycleConfigArn ) , SageMakerImageArn : __expectString ( output . SageMakerImageArn ) , SageMakerImageVersionArn : __expectString ( output . SageMakerImageVersionArn ) , } as any ; } ; const deserializeAws_json1_1ResponseMIMETypes = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1RetryPipelineExecutionResponse = ( output , context ) : RetryPipelineExecutionResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1RetryStrategy = ( output , context ) : RetryStrategy => { return { MaximumRetryAttempts : __expectInt32 ( output . MaximumRetryAttempts ) , } as any ; } ; const deserializeAws_json1_1RSessionAppSettings = ( output , context ) : RSessionAppSettings => { return { } as any ; } ; const deserializeAws_json1_1RStudioServerProAppSettings = ( output , context ) : RStudioServerProAppSettings => { return { AccessStatus : __expectString ( output . AccessStatus ) , UserGroup : __expectString ( output . UserGroup ) , } as any ; } ; const deserializeAws_json1_1RStudioServerProDomainSettings = ( output , context ) : RStudioServerProDomainSettings => { return { DefaultResourceSpec : output . DefaultResourceSpec !== undefined && output . DefaultResourceSpec !== null ? deserializeAws_json1_1ResourceSpec ( output . DefaultResourceSpec , context ) : undefined , DomainExecutionRoleArn : __expectString ( output . DomainExecutionRoleArn ) , RStudioConnectUrl : __expectString ( output . RStudioConnectUrl ) , RStudioPackageManagerUrl : __expectString ( output . RStudioPackageManagerUrl ) , } as any ; } ; const deserializeAws_json1_1RuleParameters = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1S3DataSource = ( output , context ) : S3DataSource => { return { AttributeNames : output . AttributeNames !== undefined && output . AttributeNames !== null ? deserializeAws_json1_1AttributeNames ( output . AttributeNames , context ) : undefined , S3DataDistributionType : __expectString ( output . S3DataDistributionType ) , S3DataType : __expectString ( output . S3DataType ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1S3StorageConfig = ( output , context ) : S3StorageConfig => { return { KmsKeyId : __expectString ( output . KmsKeyId ) , ResolvedOutputS3Uri : __expectString ( output . ResolvedOutputS3Uri ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1ScheduleConfig = ( output , context ) : ScheduleConfig => { return { ScheduleExpression : __expectString ( output . ScheduleExpression ) , } as any ; } ; const deserializeAws_json1_1SearchRecord = ( output , context ) : SearchRecord => { return { Endpoint : output . Endpoint !== undefined && output . Endpoint !== null ? deserializeAws_json1_1Endpoint ( output . Endpoint , context ) : undefined , Experiment : output . Experiment !== undefined && output . Experiment !== null ? deserializeAws_json1_1Experiment ( output . Experiment , context ) : undefined , FeatureGroup : output . FeatureGroup !== undefined && output . FeatureGroup !== null ? deserializeAws_json1_1FeatureGroup ( output . FeatureGroup , context ) : undefined , ModelPackage : output . ModelPackage !== undefined && output . ModelPackage !== null ? deserializeAws_json1_1ModelPackage ( output . ModelPackage , context ) : undefined , ModelPackageGroup : output . ModelPackageGroup !== undefined && output . ModelPackageGroup !== null ? deserializeAws_json1_1ModelPackageGroup ( output . ModelPackageGroup , context ) : undefined , Pipeline : output . Pipeline !== undefined && output . Pipeline !== null ? deserializeAws_json1_1Pipeline ( output . Pipeline , context ) : undefined , PipelineExecution : output . PipelineExecution !== undefined && output . PipelineExecution !== null ? deserializeAws_json1_1PipelineExecution ( output . PipelineExecution , context ) : undefined , Project : output . Project !== undefined && output . Project !== null ? deserializeAws_json1_1Project ( output . Project , context ) : undefined , TrainingJob : output . TrainingJob !== undefined && output . TrainingJob !== null ? deserializeAws_json1_1TrainingJob ( output . TrainingJob , context ) : undefined , Trial : output . Trial !== undefined && output . Trial !== null ? deserializeAws_json1_1Trial ( output . Trial , context ) : undefined , TrialComponent : output . TrialComponent !== undefined && output . TrialComponent !== null ? deserializeAws_json1_1TrialComponent ( output . TrialComponent , context ) : undefined , } as any ; } ; const deserializeAws_json1_1SearchResponse = ( output , context ) : SearchResponse => { return { NextToken : __expectString ( output . NextToken ) , Results : output . Results !== undefined && output . Results !== null ? deserializeAws_json1_1SearchResultsList ( output . Results , context ) : undefined , } as any ; } ; const deserializeAws_json1_1SearchResultsList = ( output , context ) : SearchRecord [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1SearchRecord ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1SecondaryStatusTransition = ( output , context ) : SecondaryStatusTransition => { return { EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , Status : __expectString ( output . Status ) , StatusMessage : __expectString ( output . StatusMessage ) , } as any ; } ; const deserializeAws_json1_1SecondaryStatusTransitions = ( output , context ) : SecondaryStatusTransition [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1SecondaryStatusTransition ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1SecurityGroupIds = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1SendPipelineExecutionStepFailureResponse = ( output , context ) : SendPipelineExecutionStepFailureResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1SendPipelineExecutionStepSuccessResponse = ( output , context ) : SendPipelineExecutionStepSuccessResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1ServiceCatalogProvisionedProductDetails = ( output , context ) : ServiceCatalogProvisionedProductDetails => { return { ProvisionedProductId : __expectString ( output . ProvisionedProductId ) , ProvisionedProductStatusMessage : __expectString ( output . ProvisionedProductStatusMessage ) , } as any ; } ; const deserializeAws_json1_1ServiceCatalogProvisioningDetails = ( output , context ) : ServiceCatalogProvisioningDetails => { return { PathId : __expectString ( output . PathId ) , ProductId : __expectString ( output . ProductId ) , ProvisioningArtifactId : __expectString ( output . ProvisioningArtifactId ) , ProvisioningParameters : output . ProvisioningParameters !== undefined && output . ProvisioningParameters !== null ? deserializeAws_json1_1ProvisioningParameters ( output . ProvisioningParameters , context ) : undefined , } as any ; } ; const deserializeAws_json1_1SharingSettings = ( output , context ) : SharingSettings => { return { NotebookOutputOption : __expectString ( output . NotebookOutputOption ) , S3KmsKeyId : __expectString ( output . S3KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1ShuffleConfig = ( output , context ) : ShuffleConfig => { return { Seed : __expectLong ( output . Seed ) , } as any ; } ; const deserializeAws_json1_1SourceAlgorithm = ( output , context ) : SourceAlgorithm => { return { AlgorithmName : __expectString ( output . AlgorithmName ) , ModelDataUrl : __expectString ( output . ModelDataUrl ) , } as any ; } ; const deserializeAws_json1_1SourceAlgorithmList = ( output , context ) : SourceAlgorithm [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1SourceAlgorithm ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1SourceAlgorithmSpecification = ( output , context ) : SourceAlgorithmSpecification => { return { SourceAlgorithms : output . SourceAlgorithms !== undefined && output . SourceAlgorithms !== null ? deserializeAws_json1_1SourceAlgorithmList ( output . SourceAlgorithms , context ) : undefined , } as any ; } ; const deserializeAws_json1_1SourceIpConfig = ( output , context ) : SourceIpConfig => { return { Cidrs : output . Cidrs !== undefined && output . Cidrs !== null ? deserializeAws_json1_1Cidrs ( output . Cidrs , context ) : undefined , } as any ; } ; const deserializeAws_json1_1StartPipelineExecutionResponse = ( output , context ) : StartPipelineExecutionResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1StoppingCondition = ( output , context ) : StoppingCondition => { return { MaxRuntimeInSeconds : __expectInt32 ( output . MaxRuntimeInSeconds ) , MaxWaitTimeInSeconds : __expectInt32 ( output . MaxWaitTimeInSeconds ) , } as any ; } ; const deserializeAws_json1_1StopPipelineExecutionResponse = ( output , context ) : StopPipelineExecutionResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1StudioLifecycleConfigDetails = ( output , context ) : StudioLifecycleConfigDetails => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , StudioLifecycleConfigAppType : __expectString ( output . StudioLifecycleConfigAppType ) , StudioLifecycleConfigArn : __expectString ( output . StudioLifecycleConfigArn ) , StudioLifecycleConfigName : __expectString ( output . StudioLifecycleConfigName ) , } as any ; } ; const deserializeAws_json1_1StudioLifecycleConfigsList = ( output , context ) : StudioLifecycleConfigDetails [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1StudioLifecycleConfigDetails ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Subnets = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1SubscribedWorkteam = ( output , context ) : SubscribedWorkteam => { return { ListingId : __expectString ( output . ListingId ) , MarketplaceDescription : __expectString ( output . MarketplaceDescription ) , MarketplaceTitle : __expectString ( output . MarketplaceTitle ) , SellerName : __expectString ( output . SellerName ) , WorkteamArn : __expectString ( output . WorkteamArn ) , } as any ; } ; const deserializeAws_json1_1SubscribedWorkteams = ( output , context ) : SubscribedWorkteam [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1SubscribedWorkteam ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Tag = ( output , context ) : Tag => { return { Key : __expectString ( output . Key ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1TagList = ( output , context ) : Tag [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Tag ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TargetPlatform = ( output , context ) : TargetPlatform => { return { Accelerator : __expectString ( output . Accelerator ) , Arch : __expectString ( output . Arch ) , Os : __expectString ( output . Os ) , } as any ; } ; const deserializeAws_json1_1TaskKeywords = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1TensorBoardAppSettings = ( output , context ) : TensorBoardAppSettings => { return { DefaultResourceSpec : output . DefaultResourceSpec !== undefined && output . DefaultResourceSpec !== null ? deserializeAws_json1_1ResourceSpec ( output . DefaultResourceSpec , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TensorBoardOutputConfig = ( output , context ) : TensorBoardOutputConfig => { return { LocalPath : __expectString ( output . LocalPath ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1TrafficPattern = ( output , context ) : TrafficPattern => { return { Phases : output . Phases !== undefined && output . Phases !== null ? deserializeAws_json1_1Phases ( output . Phases , context ) : undefined , TrafficType : __expectString ( output . TrafficType ) , } as any ; } ; const deserializeAws_json1_1TrafficRoutingConfig = ( output , context ) : TrafficRoutingConfig => { return { CanarySize : output . CanarySize !== undefined && output . CanarySize !== null ? deserializeAws_json1_1CapacitySize ( output . CanarySize , context ) : undefined , LinearStepSize : output . LinearStepSize !== undefined && output . LinearStepSize !== null ? deserializeAws_json1_1CapacitySize ( output . LinearStepSize , context ) : undefined , Type : __expectString ( output . Type ) , WaitIntervalInSeconds : __expectInt32 ( output . WaitIntervalInSeconds ) , } as any ; } ; const deserializeAws_json1_1TrainingEnvironmentMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1TrainingInstanceTypes = ( output , context ) : ( TrainingInstanceType | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1TrainingJob = ( output , context ) : TrainingJob => { return { AlgorithmSpecification : output . AlgorithmSpecification !== undefined && output . AlgorithmSpecification !== null ? deserializeAws_json1_1AlgorithmSpecification ( output . AlgorithmSpecification , context ) : undefined , AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , BillableTimeInSeconds : __expectInt32 ( output . BillableTimeInSeconds ) , CheckpointConfig : output . CheckpointConfig !== undefined && output . CheckpointConfig !== null ? deserializeAws_json1_1CheckpointConfig ( output . CheckpointConfig , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DebugHookConfig : output . DebugHookConfig !== undefined && output . DebugHookConfig !== null ? deserializeAws_json1_1DebugHookConfig ( output . DebugHookConfig , context ) : undefined , DebugRuleConfigurations : output . DebugRuleConfigurations !== undefined && output . DebugRuleConfigurations !== null ? deserializeAws_json1_1DebugRuleConfigurations ( output . DebugRuleConfigurations , context ) : undefined , DebugRuleEvaluationStatuses : output . DebugRuleEvaluationStatuses !== undefined && output . DebugRuleEvaluationStatuses !== null ? deserializeAws_json1_1DebugRuleEvaluationStatuses ( output . DebugRuleEvaluationStatuses , context ) : undefined , EnableInterContainerTrafficEncryption : __expectBoolean ( output . EnableInterContainerTrafficEncryption ) , EnableManagedSpotTraining : __expectBoolean ( output . EnableManagedSpotTraining ) , EnableNetworkIsolation : __expectBoolean ( output . EnableNetworkIsolation ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1TrainingEnvironmentMap ( output . Environment , context ) : undefined , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , FinalMetricDataList : output . FinalMetricDataList !== undefined && output . FinalMetricDataList !== null ? deserializeAws_json1_1FinalMetricDataList ( output . FinalMetricDataList , context ) : undefined , HyperParameters : output . HyperParameters !== undefined && output . HyperParameters !== null ? deserializeAws_json1_1HyperParameters ( output . HyperParameters , context ) : undefined , InputDataConfig : output . InputDataConfig !== undefined && output . InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig ( output . InputDataConfig , context ) : undefined , LabelingJobArn : __expectString ( output . LabelingJobArn ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , ModelArtifacts : output . ModelArtifacts !== undefined && output . ModelArtifacts !== null ? deserializeAws_json1_1ModelArtifacts ( output . ModelArtifacts , context ) : undefined , OutputDataConfig : output . OutputDataConfig !== undefined && output . OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig ( output . OutputDataConfig , context ) : undefined , ResourceConfig : output . ResourceConfig !== undefined && output . ResourceConfig !== null ? deserializeAws_json1_1ResourceConfig ( output . ResourceConfig , context ) : undefined , RetryStrategy : output . RetryStrategy !== undefined && output . RetryStrategy !== null ? deserializeAws_json1_1RetryStrategy ( output . RetryStrategy , context ) : undefined , RoleArn : __expectString ( output . RoleArn ) , SecondaryStatus : __expectString ( output . SecondaryStatus ) , SecondaryStatusTransitions : output . SecondaryStatusTransitions !== undefined && output . SecondaryStatusTransitions !== null ? deserializeAws_json1_1SecondaryStatusTransitions ( output . SecondaryStatusTransitions , context ) : undefined , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1StoppingCondition ( output . StoppingCondition , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , TensorBoardOutputConfig : output . TensorBoardOutputConfig !== undefined && output . TensorBoardOutputConfig !== null ? deserializeAws_json1_1TensorBoardOutputConfig ( output . TensorBoardOutputConfig , context ) : undefined , TrainingEndTime : output . TrainingEndTime !== undefined && output . TrainingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingEndTime ) ) ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , TrainingJobName : __expectString ( output . TrainingJobName ) , TrainingJobStatus : __expectString ( output . TrainingJobStatus ) , TrainingStartTime : output . TrainingStartTime !== undefined && output . TrainingStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingStartTime ) ) ) : undefined , TrainingTimeInSeconds : __expectInt32 ( output . TrainingTimeInSeconds ) , TuningJobArn : __expectString ( output . TuningJobArn ) , VpcConfig : output . VpcConfig !== undefined && output . VpcConfig !== null ? deserializeAws_json1_1VpcConfig ( output . VpcConfig , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TrainingJobDefinition = ( output , context ) : TrainingJobDefinition => { return { HyperParameters : output . HyperParameters !== undefined && output . HyperParameters !== null ? deserializeAws_json1_1HyperParameters ( output . HyperParameters , context ) : undefined , InputDataConfig : output . InputDataConfig !== undefined && output . InputDataConfig !== null ? deserializeAws_json1_1InputDataConfig ( output . InputDataConfig , context ) : undefined , OutputDataConfig : output . OutputDataConfig !== undefined && output . OutputDataConfig !== null ? deserializeAws_json1_1OutputDataConfig ( output . OutputDataConfig , context ) : undefined , ResourceConfig : output . ResourceConfig !== undefined && output . ResourceConfig !== null ? deserializeAws_json1_1ResourceConfig ( output . ResourceConfig , context ) : undefined , StoppingCondition : output . StoppingCondition !== undefined && output . StoppingCondition !== null ? deserializeAws_json1_1StoppingCondition ( output . StoppingCondition , context ) : undefined , TrainingInputMode : __expectString ( output . TrainingInputMode ) , } as any ; } ; const deserializeAws_json1_1TrainingJobStatusCounters = ( output , context ) : TrainingJobStatusCounters => { return { Completed : __expectInt32 ( output . Completed ) , InProgress : __expectInt32 ( output . InProgress ) , NonRetryableError : __expectInt32 ( output . NonRetryableError ) , RetryableError : __expectInt32 ( output . RetryableError ) , Stopped : __expectInt32 ( output . Stopped ) , } as any ; } ; const deserializeAws_json1_1TrainingJobStepMetadata = ( output , context ) : TrainingJobStepMetadata => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1TrainingJobSummaries = ( output , context ) : TrainingJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TrainingJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TrainingJobSummary = ( output , context ) : TrainingJobSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , TrainingEndTime : output . TrainingEndTime !== undefined && output . TrainingEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TrainingEndTime ) ) ) : undefined , TrainingJobArn : __expectString ( output . TrainingJobArn ) , TrainingJobName : __expectString ( output . TrainingJobName ) , TrainingJobStatus : __expectString ( output . TrainingJobStatus ) , } as any ; } ; const deserializeAws_json1_1TrainingSpecification = ( output , context ) : TrainingSpecification => { return { MetricDefinitions : output . MetricDefinitions !== undefined && output . MetricDefinitions !== null ? deserializeAws_json1_1MetricDefinitionList ( output . MetricDefinitions , context ) : undefined , SupportedHyperParameters : output . SupportedHyperParameters !== undefined && output . SupportedHyperParameters !== null ? deserializeAws_json1_1HyperParameterSpecifications ( output . SupportedHyperParameters , context ) : undefined , SupportedTrainingInstanceTypes : output . SupportedTrainingInstanceTypes !== undefined && output . SupportedTrainingInstanceTypes !== null ? deserializeAws_json1_1TrainingInstanceTypes ( output . SupportedTrainingInstanceTypes , context ) : undefined , SupportedTuningJobObjectiveMetrics : output . SupportedTuningJobObjectiveMetrics !== undefined && output . SupportedTuningJobObjectiveMetrics !== null ? deserializeAws_json1_1HyperParameterTuningJobObjectives ( output . SupportedTuningJobObjectiveMetrics , context ) : undefined , SupportsDistributedTraining : __expectBoolean ( output . SupportsDistributedTraining ) , TrainingChannels : output . TrainingChannels !== undefined && output . TrainingChannels !== null ? deserializeAws_json1_1ChannelSpecifications ( output . TrainingChannels , context ) : undefined , TrainingImage : __expectString ( output . TrainingImage ) , TrainingImageDigest : __expectString ( output . TrainingImageDigest ) , } as any ; } ; const deserializeAws_json1_1TransformDataSource = ( output , context ) : TransformDataSource => { return { S3DataSource : output . S3DataSource !== undefined && output . S3DataSource !== null ? deserializeAws_json1_1TransformS3DataSource ( output . S3DataSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TransformEnvironmentMap = ( output , context ) : { [ key ] : string ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : __expectString ( value ) as any , } ; } , { } ) ; } ; const deserializeAws_json1_1TransformInput = ( output , context ) : TransformInput => { return { CompressionType : __expectString ( output . CompressionType ) , ContentType : __expectString ( output . ContentType ) , DataSource : output . DataSource !== undefined && output . DataSource !== null ? deserializeAws_json1_1TransformDataSource ( output . DataSource , context ) : undefined , SplitType : __expectString ( output . SplitType ) , } as any ; } ; const deserializeAws_json1_1TransformInstanceTypes = ( output , context ) : ( TransformInstanceType | string ) [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1TransformJob = ( output , context ) : TransformJob => { return { AutoMLJobArn : __expectString ( output . AutoMLJobArn ) , BatchStrategy : __expectString ( output . BatchStrategy ) , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DataProcessing : output . DataProcessing !== undefined && output . DataProcessing !== null ? deserializeAws_json1_1DataProcessing ( output . DataProcessing , context ) : undefined , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1TransformEnvironmentMap ( output . Environment , context ) : undefined , ExperimentConfig : output . ExperimentConfig !== undefined && output . ExperimentConfig !== null ? deserializeAws_json1_1ExperimentConfig ( output . ExperimentConfig , context ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LabelingJobArn : __expectString ( output . LabelingJobArn ) , MaxConcurrentTransforms : __expectInt32 ( output . MaxConcurrentTransforms ) , MaxPayloadInMB : __expectInt32 ( output . MaxPayloadInMB ) , ModelClientConfig : output . ModelClientConfig !== undefined && output . ModelClientConfig !== null ? deserializeAws_json1_1ModelClientConfig ( output . ModelClientConfig , context ) : undefined , ModelName : __expectString ( output . ModelName ) , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , TransformEndTime : output . TransformEndTime !== undefined && output . TransformEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TransformEndTime ) ) ) : undefined , TransformInput : output . TransformInput !== undefined && output . TransformInput !== null ? deserializeAws_json1_1TransformInput ( output . TransformInput , context ) : undefined , TransformJobArn : __expectString ( output . TransformJobArn ) , TransformJobName : __expectString ( output . TransformJobName ) , TransformJobStatus : __expectString ( output . TransformJobStatus ) , TransformOutput : output . TransformOutput !== undefined && output . TransformOutput !== null ? deserializeAws_json1_1TransformOutput ( output . TransformOutput , context ) : undefined , TransformResources : output . TransformResources !== undefined && output . TransformResources !== null ? deserializeAws_json1_1TransformResources ( output . TransformResources , context ) : undefined , TransformStartTime : output . TransformStartTime !== undefined && output . TransformStartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TransformStartTime ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1TransformJobDefinition = ( output , context ) : TransformJobDefinition => { return { BatchStrategy : __expectString ( output . BatchStrategy ) , Environment : output . Environment !== undefined && output . Environment !== null ? deserializeAws_json1_1TransformEnvironmentMap ( output . Environment , context ) : undefined , MaxConcurrentTransforms : __expectInt32 ( output . MaxConcurrentTransforms ) , MaxPayloadInMB : __expectInt32 ( output . MaxPayloadInMB ) , TransformInput : output . TransformInput !== undefined && output . TransformInput !== null ? deserializeAws_json1_1TransformInput ( output . TransformInput , context ) : undefined , TransformOutput : output . TransformOutput !== undefined && output . TransformOutput !== null ? deserializeAws_json1_1TransformOutput ( output . TransformOutput , context ) : undefined , TransformResources : output . TransformResources !== undefined && output . TransformResources !== null ? deserializeAws_json1_1TransformResources ( output . TransformResources , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TransformJobStepMetadata = ( output , context ) : TransformJobStepMetadata => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1TransformJobSummaries = ( output , context ) : TransformJobSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TransformJobSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TransformJobSummary = ( output , context ) : TransformJobSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , FailureReason : __expectString ( output . FailureReason ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , TransformEndTime : output . TransformEndTime !== undefined && output . TransformEndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TransformEndTime ) ) ) : undefined , TransformJobArn : __expectString ( output . TransformJobArn ) , TransformJobName : __expectString ( output . TransformJobName ) , TransformJobStatus : __expectString ( output . TransformJobStatus ) , } as any ; } ; const deserializeAws_json1_1TransformOutput = ( output , context ) : TransformOutput => { return { Accept : __expectString ( output . Accept ) , AssembleWith : __expectString ( output . AssembleWith ) , KmsKeyId : __expectString ( output . KmsKeyId ) , S3OutputPath : __expectString ( output . S3OutputPath ) , } as any ; } ; const deserializeAws_json1_1TransformResources = ( output , context ) : TransformResources => { return { InstanceCount : __expectInt32 ( output . InstanceCount ) , InstanceType : __expectString ( output . InstanceType ) , VolumeKmsKeyId : __expectString ( output . VolumeKmsKeyId ) , } as any ; } ; const deserializeAws_json1_1TransformS3DataSource = ( output , context ) : TransformS3DataSource => { return { S3DataType : __expectString ( output . S3DataType ) , S3Uri : __expectString ( output . S3Uri ) , } as any ; } ; const deserializeAws_json1_1Trial = ( output , context ) : Trial => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , ExperimentName : __expectString ( output . ExperimentName ) , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1TrialSource ( output . Source , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , TrialArn : __expectString ( output . TrialArn ) , TrialComponentSummaries : output . TrialComponentSummaries !== undefined && output . TrialComponentSummaries !== null ? deserializeAws_json1_1TrialComponentSimpleSummaries ( output . TrialComponentSummaries , context ) : undefined , TrialName : __expectString ( output . TrialName ) , } as any ; } ; const deserializeAws_json1_1TrialComponent = ( output , context ) : TrialComponent => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , InputArtifacts : output . InputArtifacts !== undefined && output . InputArtifacts !== null ? deserializeAws_json1_1TrialComponentArtifacts ( output . InputArtifacts , context ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , LineageGroupArn : __expectString ( output . LineageGroupArn ) , MetadataProperties : output . MetadataProperties !== undefined && output . MetadataProperties !== null ? deserializeAws_json1_1MetadataProperties ( output . MetadataProperties , context ) : undefined , Metrics : output . Metrics !== undefined && output . Metrics !== null ? deserializeAws_json1_1TrialComponentMetricSummaries ( output . Metrics , context ) : undefined , OutputArtifacts : output . OutputArtifacts !== undefined && output . OutputArtifacts !== null ? deserializeAws_json1_1TrialComponentArtifacts ( output . OutputArtifacts , context ) : undefined , Parameters : output . Parameters !== undefined && output . Parameters !== null ? deserializeAws_json1_1TrialComponentParameters ( output . Parameters , context ) : undefined , Parents : output . Parents !== undefined && output . Parents !== null ? deserializeAws_json1_1Parents ( output . Parents , context ) : undefined , Source : output . Source !== undefined && output . Source !== null ? deserializeAws_json1_1TrialComponentSource ( output . Source , context ) : undefined , SourceDetail : output . SourceDetail !== undefined && output . SourceDetail !== null ? deserializeAws_json1_1TrialComponentSourceDetail ( output . SourceDetail , context ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , Status : output . Status !== undefined && output . Status !== null ? deserializeAws_json1_1TrialComponentStatus ( output . Status , context ) : undefined , Tags : output . Tags !== undefined && output . Tags !== null ? deserializeAws_json1_1TagList ( output . Tags , context ) : undefined , TrialComponentArn : __expectString ( output . TrialComponentArn ) , TrialComponentName : __expectString ( output . TrialComponentName ) , } as any ; } ; const deserializeAws_json1_1TrialComponentArtifact = ( output , context ) : TrialComponentArtifact => { return { MediaType : __expectString ( output . MediaType ) , Value : __expectString ( output . Value ) , } as any ; } ; const deserializeAws_json1_1TrialComponentArtifacts = ( output , context ) : { [ key ] : TrialComponentArtifact ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : deserializeAws_json1_1TrialComponentArtifact ( value , context ) , } ; } , { } ) ; } ; const deserializeAws_json1_1TrialComponentMetricSummaries = ( output , context ) : TrialComponentMetricSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TrialComponentMetricSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TrialComponentMetricSummary = ( output , context ) : TrialComponentMetricSummary => { return { Avg : __limitedParseDouble ( output . Avg ) , Count : __expectInt32 ( output . Count ) , Last : __limitedParseDouble ( output . Last ) , Max : __limitedParseDouble ( output . Max ) , MetricName : __expectString ( output . MetricName ) , Min : __limitedParseDouble ( output . Min ) , SourceArn : __expectString ( output . SourceArn ) , StdDev : __limitedParseDouble ( output . StdDev ) , TimeStamp : output . TimeStamp !== undefined && output . TimeStamp !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . TimeStamp ) ) ) : undefined , } as any ; } ; const deserializeAws_json1_1TrialComponentParameters = ( output , context ) : { [ key ] : TrialComponentParameterValue ; } => { return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => { if ( value === null ) { return acc ; } return { ... acc , [ key ] : deserializeAws_json1_1TrialComponentParameterValue ( __expectUnion ( value ) , context ) , } ; } , { } ) ; } ; const deserializeAws_json1_1TrialComponentParameterValue = ( output , context ) : TrialComponentParameterValue => { if ( __limitedParseDouble ( output . NumberValue ) !== undefined ) { return { NumberValue : __limitedParseDouble ( output . NumberValue ) as any } ; } if ( __expectString ( output . StringValue ) !== undefined ) { return { StringValue : __expectString ( output . StringValue ) as any } ; } return { $unknown : Object . entries ( output ) [ 0 ] } ; } ; const deserializeAws_json1_1TrialComponentSimpleSummaries = ( output , context ) : TrialComponentSimpleSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TrialComponentSimpleSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TrialComponentSimpleSummary = ( output , context ) : TrialComponentSimpleSummary => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , TrialComponentArn : __expectString ( output . TrialComponentArn ) , TrialComponentName : __expectString ( output . TrialComponentName ) , TrialComponentSource : output . TrialComponentSource !== undefined && output . TrialComponentSource !== null ? deserializeAws_json1_1TrialComponentSource ( output . TrialComponentSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TrialComponentSource = ( output , context ) : TrialComponentSource => { return { SourceArn : __expectString ( output . SourceArn ) , SourceType : __expectString ( output . SourceType ) , } as any ; } ; const deserializeAws_json1_1TrialComponentSourceDetail = ( output , context ) : TrialComponentSourceDetail => { return { ProcessingJob : output . ProcessingJob !== undefined && output . ProcessingJob !== null ? deserializeAws_json1_1ProcessingJob ( output . ProcessingJob , context ) : undefined , SourceArn : __expectString ( output . SourceArn ) , TrainingJob : output . TrainingJob !== undefined && output . TrainingJob !== null ? deserializeAws_json1_1TrainingJob ( output . TrainingJob , context ) : undefined , TransformJob : output . TransformJob !== undefined && output . TransformJob !== null ? deserializeAws_json1_1TransformJob ( output . TransformJob , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TrialComponentStatus = ( output , context ) : TrialComponentStatus => { return { Message : __expectString ( output . Message ) , PrimaryStatus : __expectString ( output . PrimaryStatus ) , } as any ; } ; const deserializeAws_json1_1TrialComponentSummaries = ( output , context ) : TrialComponentSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TrialComponentSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TrialComponentSummary = ( output , context ) : TrialComponentSummary => { return { CreatedBy : output . CreatedBy !== undefined && output . CreatedBy !== null ? deserializeAws_json1_1UserContext ( output . CreatedBy , context ) : undefined , CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , EndTime : output . EndTime !== undefined && output . EndTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . EndTime ) ) ) : undefined , LastModifiedBy : output . LastModifiedBy !== undefined && output . LastModifiedBy !== null ? deserializeAws_json1_1UserContext ( output . LastModifiedBy , context ) : undefined , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , StartTime : output . StartTime !== undefined && output . StartTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . StartTime ) ) ) : undefined , Status : output . Status !== undefined && output . Status !== null ? deserializeAws_json1_1TrialComponentStatus ( output . Status , context ) : undefined , TrialComponentArn : __expectString ( output . TrialComponentArn ) , TrialComponentName : __expectString ( output . TrialComponentName ) , TrialComponentSource : output . TrialComponentSource !== undefined && output . TrialComponentSource !== null ? deserializeAws_json1_1TrialComponentSource ( output . TrialComponentSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TrialSource = ( output , context ) : TrialSource => { return { SourceArn : __expectString ( output . SourceArn ) , SourceType : __expectString ( output . SourceType ) , } as any ; } ; const deserializeAws_json1_1TrialSummaries = ( output , context ) : TrialSummary [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1TrialSummary ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1TrialSummary = ( output , context ) : TrialSummary => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DisplayName : __expectString ( output . DisplayName ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , TrialArn : __expectString ( output . TrialArn ) , TrialName : __expectString ( output . TrialName ) , TrialSource : output . TrialSource !== undefined && output . TrialSource !== null ? deserializeAws_json1_1TrialSource ( output . TrialSource , context ) : undefined , } as any ; } ; const deserializeAws_json1_1TuningJobCompletionCriteria = ( output , context ) : TuningJobCompletionCriteria => { return { TargetObjectiveMetricValue : __limitedParseFloat32 ( output . TargetObjectiveMetricValue ) , } as any ; } ; const deserializeAws_json1_1TuningJobStepMetaData = ( output , context ) : TuningJobStepMetaData => { return { Arn : __expectString ( output . Arn ) , } as any ; } ; const deserializeAws_json1_1UiConfig = ( output , context ) : UiConfig => { return { HumanTaskUiArn : __expectString ( output . HumanTaskUiArn ) , UiTemplateS3Uri : __expectString ( output . UiTemplateS3Uri ) , } as any ; } ; const deserializeAws_json1_1UiTemplateInfo = ( output , context ) : UiTemplateInfo => { return { ContentSha256 : __expectString ( output . ContentSha256 ) , Url : __expectString ( output . Url ) , } as any ; } ; const deserializeAws_json1_1UpdateActionResponse = ( output , context ) : UpdateActionResponse => { return { ActionArn : __expectString ( output . ActionArn ) , } as any ; } ; const deserializeAws_json1_1UpdateAppImageConfigResponse = ( output , context ) : UpdateAppImageConfigResponse => { return { AppImageConfigArn : __expectString ( output . AppImageConfigArn ) , } as any ; } ; const deserializeAws_json1_1UpdateArtifactResponse = ( output , context ) : UpdateArtifactResponse => { return { ArtifactArn : __expectString ( output . ArtifactArn ) , } as any ; } ; const deserializeAws_json1_1UpdateCodeRepositoryOutput = ( output , context ) : UpdateCodeRepositoryOutput => { return { CodeRepositoryArn : __expectString ( output . CodeRepositoryArn ) , } as any ; } ; const deserializeAws_json1_1UpdateContextResponse = ( output , context ) : UpdateContextResponse => { return { ContextArn : __expectString ( output . ContextArn ) , } as any ; } ; const deserializeAws_json1_1UpdateDomainResponse = ( output , context ) : UpdateDomainResponse => { return { DomainArn : __expectString ( output . DomainArn ) , } as any ; } ; const deserializeAws_json1_1UpdateEndpointOutput = ( output , context ) : UpdateEndpointOutput => { return { EndpointArn : __expectString ( output . EndpointArn ) , } as any ; } ; const deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesOutput = ( output , context ) : UpdateEndpointWeightsAndCapacitiesOutput => { return { EndpointArn : __expectString ( output . EndpointArn ) , } as any ; } ; const deserializeAws_json1_1UpdateExperimentResponse = ( output , context ) : UpdateExperimentResponse => { return { ExperimentArn : __expectString ( output . ExperimentArn ) , } as any ; } ; const deserializeAws_json1_1UpdateImageResponse = ( output , context ) : UpdateImageResponse => { return { ImageArn : __expectString ( output . ImageArn ) , } as any ; } ; const deserializeAws_json1_1UpdateModelPackageOutput = ( output , context ) : UpdateModelPackageOutput => { return { ModelPackageArn : __expectString ( output . ModelPackageArn ) , } as any ; } ; const deserializeAws_json1_1UpdateMonitoringScheduleResponse = ( output , context ) : UpdateMonitoringScheduleResponse => { return { MonitoringScheduleArn : __expectString ( output . MonitoringScheduleArn ) , } as any ; } ; const deserializeAws_json1_1UpdateNotebookInstanceLifecycleConfigOutput = ( output , context ) : UpdateNotebookInstanceLifecycleConfigOutput => { return { } as any ; } ; const deserializeAws_json1_1UpdateNotebookInstanceOutput = ( output , context ) : UpdateNotebookInstanceOutput => { return { } as any ; } ; const deserializeAws_json1_1UpdatePipelineExecutionResponse = ( output , context ) : UpdatePipelineExecutionResponse => { return { PipelineExecutionArn : __expectString ( output . PipelineExecutionArn ) , } as any ; } ; const deserializeAws_json1_1UpdatePipelineResponse = ( output , context ) : UpdatePipelineResponse => { return { PipelineArn : __expectString ( output . PipelineArn ) , } as any ; } ; const deserializeAws_json1_1UpdateProjectOutput = ( output , context ) : UpdateProjectOutput => { return { ProjectArn : __expectString ( output . ProjectArn ) , } as any ; } ; const deserializeAws_json1_1UpdateTrainingJobResponse = ( output , context ) : UpdateTrainingJobResponse => { return { TrainingJobArn : __expectString ( output . TrainingJobArn ) , } as any ; } ; const deserializeAws_json1_1UpdateTrialComponentResponse = ( output , context ) : UpdateTrialComponentResponse => { return { TrialComponentArn : __expectString ( output . TrialComponentArn ) , } as any ; } ; const deserializeAws_json1_1UpdateTrialResponse = ( output , context ) : UpdateTrialResponse => { return { TrialArn : __expectString ( output . TrialArn ) , } as any ; } ; const deserializeAws_json1_1UpdateUserProfileResponse = ( output , context ) : UpdateUserProfileResponse => { return { UserProfileArn : __expectString ( output . UserProfileArn ) , } as any ; } ; const deserializeAws_json1_1UpdateWorkforceResponse = ( output , context ) : UpdateWorkforceResponse => { return { Workforce : output . Workforce !== undefined && output . Workforce !== null ? deserializeAws_json1_1Workforce ( output . Workforce , context ) : undefined , } as any ; } ; const deserializeAws_json1_1UpdateWorkteamResponse = ( output , context ) : UpdateWorkteamResponse => { return { Workteam : output . Workteam !== undefined && output . Workteam !== null ? deserializeAws_json1_1Workteam ( output . Workteam , context ) : undefined , } as any ; } ; const deserializeAws_json1_1USD = ( output , context ) : USD => { return { Cents : __expectInt32 ( output . Cents ) , Dollars : __expectInt32 ( output . Dollars ) , TenthFractionsOfACent : __expectInt32 ( output . TenthFractionsOfACent ) , } as any ; } ; const deserializeAws_json1_1UserContext = ( output , context ) : UserContext => { return { DomainId : __expectString ( output . DomainId ) , UserProfileArn : __expectString ( output . UserProfileArn ) , UserProfileName : __expectString ( output . UserProfileName ) , } as any ; } ; const deserializeAws_json1_1UserProfileDetails = ( output , context ) : UserProfileDetails => { return { CreationTime : output . CreationTime !== undefined && output . CreationTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreationTime ) ) ) : undefined , DomainId : __expectString ( output . DomainId ) , LastModifiedTime : output . LastModifiedTime !== undefined && output . LastModifiedTime !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastModifiedTime ) ) ) : undefined , Status : __expectString ( output . Status ) , UserProfileName : __expectString ( output . UserProfileName ) , } as any ; } ; const deserializeAws_json1_1UserProfileList = ( output , context ) : UserProfileDetails [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1UserProfileDetails ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1UserSettings = ( output , context ) : UserSettings => { return { ExecutionRole : __expectString ( output . ExecutionRole ) , JupyterServerAppSettings : output . JupyterServerAppSettings !== undefined && output . JupyterServerAppSettings !== null ? deserializeAws_json1_1JupyterServerAppSettings ( output . JupyterServerAppSettings , context ) : undefined , KernelGatewayAppSettings : output . KernelGatewayAppSettings !== undefined && output . KernelGatewayAppSettings !== null ? deserializeAws_json1_1KernelGatewayAppSettings ( output . KernelGatewayAppSettings , context ) : undefined , RSessionAppSettings : output . RSessionAppSettings !== undefined && output . RSessionAppSettings !== null ? deserializeAws_json1_1RSessionAppSettings ( output . RSessionAppSettings , context ) : undefined , RStudioServerProAppSettings : output . RStudioServerProAppSettings !== undefined && output . RStudioServerProAppSettings !== null ? deserializeAws_json1_1RStudioServerProAppSettings ( output . RStudioServerProAppSettings , context ) : undefined , SecurityGroups : output . SecurityGroups !== undefined && output . SecurityGroups !== null ? deserializeAws_json1_1SecurityGroupIds ( output . SecurityGroups , context ) : undefined , SharingSettings : output . SharingSettings !== undefined && output . SharingSettings !== null ? deserializeAws_json1_1SharingSettings ( output . SharingSettings , context ) : undefined , TensorBoardAppSettings : output . TensorBoardAppSettings !== undefined && output . TensorBoardAppSettings !== null ? deserializeAws_json1_1TensorBoardAppSettings ( output . TensorBoardAppSettings , context ) : undefined , } as any ; } ; const deserializeAws_json1_1Vertex = ( output , context ) : Vertex => { return { Arn : __expectString ( output . Arn ) , LineageType : __expectString ( output . LineageType ) , Type : __expectString ( output . Type ) , } as any ; } ; const deserializeAws_json1_1Vertices = ( output , context ) : Vertex [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Vertex ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1VpcConfig = ( output , context ) : VpcConfig => { return { SecurityGroupIds : output . SecurityGroupIds !== undefined && output . SecurityGroupIds !== null ? deserializeAws_json1_1VpcSecurityGroupIds ( output . SecurityGroupIds , context ) : undefined , Subnets : output . Subnets !== undefined && output . Subnets !== null ? deserializeAws_json1_1Subnets ( output . Subnets , context ) : undefined , } as any ; } ; const deserializeAws_json1_1VpcSecurityGroupIds = ( output , context ) : string [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return __expectString ( entry ) as any ; } ) ; } ; const deserializeAws_json1_1Workforce = ( output , context ) : Workforce => { return { CognitoConfig : output . CognitoConfig !== undefined && output . CognitoConfig !== null ? deserializeAws_json1_1CognitoConfig ( output . CognitoConfig , context ) : undefined , CreateDate : output . CreateDate !== undefined && output . CreateDate !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreateDate ) ) ) : undefined , LastUpdatedDate : output . LastUpdatedDate !== undefined && output . LastUpdatedDate !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastUpdatedDate ) ) ) : undefined , OidcConfig : output . OidcConfig !== undefined && output . OidcConfig !== null ? deserializeAws_json1_1OidcConfigForResponse ( output . OidcConfig , context ) : undefined , SourceIpConfig : output . SourceIpConfig !== undefined && output . SourceIpConfig !== null ? deserializeAws_json1_1SourceIpConfig ( output . SourceIpConfig , context ) : undefined , SubDomain : __expectString ( output . SubDomain ) , WorkforceArn : __expectString ( output . WorkforceArn ) , WorkforceName : __expectString ( output . WorkforceName ) , } as any ; } ; const deserializeAws_json1_1Workforces = ( output , context ) : Workforce [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Workforce ( entry , context ) ; } ) ; } ; const deserializeAws_json1_1Workteam = ( output , context ) : Workteam => { return { CreateDate : output . CreateDate !== undefined && output . CreateDate !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . CreateDate ) ) ) : undefined , Description : __expectString ( output . Description ) , LastUpdatedDate : output . LastUpdatedDate !== undefined && output . LastUpdatedDate !== null ? __expectNonNull ( __parseEpochTimestamp ( __expectNumber ( output . LastUpdatedDate ) ) ) : undefined , MemberDefinitions : output . MemberDefinitions !== undefined && output . MemberDefinitions !== null ? deserializeAws_json1_1MemberDefinitions ( output . MemberDefinitions , context ) : undefined , NotificationConfiguration : output . NotificationConfiguration !== undefined && output . NotificationConfiguration !== null ? deserializeAws_json1_1NotificationConfiguration ( output . NotificationConfiguration , context ) : undefined , ProductListingIds : output . ProductListingIds !== undefined && output . ProductListingIds !== null ? deserializeAws_json1_1ProductListings ( output . ProductListingIds , context ) : undefined , SubDomain : __expectString ( output . SubDomain ) , WorkforceArn : __expectString ( output . WorkforceArn ) , WorkteamArn : __expectString ( output . WorkteamArn ) , WorkteamName : __expectString ( output . WorkteamName ) , } as any ; } ; const deserializeAws_json1_1Workteams = ( output , context ) : Workteam [ ] => { return ( output || [ ] ) . filter ( ( e ) => e != null ) . map ( ( entry ) => { if ( entry === null ) { return null as any ; } return deserializeAws_json1_1Workteam ( entry , context ) ; } ) ; } ; const deserializeMetadata = ( output ) : __ResponseMetadata => ( { httpStatusCode : output . statusCode , requestId : output . headers [ "x-amzn-requestid" ] ?? output . headers [ "x-amzn-request-id" ] , extendedRequestId : output . headers [ "x-amz-id-2" ] , cfId : output . headers [ "x-amz-cf-id" ] , } ) ; const collectBody = ( streamBody = new Uint8Array ( ) , context ) : Promise < Uint8Array > => { if ( streamBody instanceof Uint8Array ) { return Promise . resolve ( streamBody ) ; } return context . streamCollector ( streamBody ) || Promise . resolve ( new Uint8Array ( ) ) ; } ; const collectBodyString = ( streamBody , context ) : Promise < string > => collectBody ( streamBody , context ) . then ( ( body ) => context . utf8Encoder ( body ) ) ; const buildHttpRpcRequest = async ( context , headers , path , resolvedHostname , body ) : Promise < __HttpRequest > => { const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ; const contents = { protocol , hostname , port , method : "POST" , path : basePath . endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) + path : basePath + path , headers , } ; if ( resolvedHostname !== undefined ) { contents . hostname = resolvedHostname ; } if ( body !== undefined ) { contents . body = body ; } return new __HttpRequest ( contents ) ; } ; const parseBody = ( streamBody , context ) : any => collectBodyString ( streamBody , context ) . then ( ( encoded ) => { if ( encoded . length ) { return JSON . parse ( encoded ) ; } return { } ; } ) ; /**
 * Load an error code for the aws.rest-json-1.1 protocol.
 */ const loadRestJsonErrorCode = ( output , data ) : string => { const findKey = ( object , key ) => Object . keys ( object ) . find ( ( k ) => k . toLowerCase ( ) === key . toLowerCase ( ) ) ; const sanitizeErrorCode = ( rawValue ) : string => { let cleanValue = rawValue ; if ( cleanValue . indexOf ( ":" ) >= 0 ) { cleanValue = cleanValue . split ( ":" ) [ 0 ] ; } if ( cleanValue . indexOf ( "#" ) >= 0 ) { cleanValue = cleanValue . split ( "#" ) [ 1 ] ; } return cleanValue ; } ; const headerKey = findKey ( output . headers , "x-amzn-errortype" ) ; if ( headerKey !== undefined ) { return sanitizeErrorCode ( output . headers [ headerKey ] ) ; } if ( data . code !== undefined ) { return sanitizeErrorCode ( data . code ) ; } if ( data [ "__type" ] !== undefined ) { return sanitizeErrorCode ( data [ "__type" ] ) ; } return "" ; } ;