@aws-sdk/client-sagemaker 3.182.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-es/SageMaker.js +1054 -1061
- package/dist-es/SageMakerClient.js +22 -28
- package/dist-es/commands/AddAssociationCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/AssociateTrialComponentCommand.js +21 -28
- package/dist-es/commands/BatchDescribeModelPackageCommand.js +21 -28
- package/dist-es/commands/CreateActionCommand.js +21 -28
- package/dist-es/commands/CreateAlgorithmCommand.js +21 -28
- package/dist-es/commands/CreateAppCommand.js +21 -28
- package/dist-es/commands/CreateAppImageConfigCommand.js +21 -28
- package/dist-es/commands/CreateArtifactCommand.js +21 -28
- package/dist-es/commands/CreateAutoMLJobCommand.js +21 -28
- package/dist-es/commands/CreateCodeRepositoryCommand.js +21 -28
- package/dist-es/commands/CreateCompilationJobCommand.js +21 -28
- package/dist-es/commands/CreateContextCommand.js +21 -28
- package/dist-es/commands/CreateDataQualityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateDeviceFleetCommand.js +22 -29
- package/dist-es/commands/CreateDomainCommand.js +21 -28
- package/dist-es/commands/CreateEdgeDeploymentPlanCommand.js +21 -28
- package/dist-es/commands/CreateEdgeDeploymentStageCommand.js +22 -29
- package/dist-es/commands/CreateEdgePackagingJobCommand.js +22 -29
- package/dist-es/commands/CreateEndpointCommand.js +21 -28
- package/dist-es/commands/CreateEndpointConfigCommand.js +21 -28
- package/dist-es/commands/CreateExperimentCommand.js +21 -28
- package/dist-es/commands/CreateFeatureGroupCommand.js +21 -28
- package/dist-es/commands/CreateFlowDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateHumanTaskUiCommand.js +21 -28
- package/dist-es/commands/CreateHyperParameterTuningJobCommand.js +21 -28
- package/dist-es/commands/CreateImageCommand.js +21 -28
- package/dist-es/commands/CreateImageVersionCommand.js +21 -28
- package/dist-es/commands/CreateInferenceRecommendationsJobCommand.js +21 -28
- package/dist-es/commands/CreateLabelingJobCommand.js +21 -28
- package/dist-es/commands/CreateModelBiasJobDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateModelCommand.js +21 -28
- package/dist-es/commands/CreateModelExplainabilityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateModelPackageCommand.js +21 -28
- package/dist-es/commands/CreateModelPackageGroupCommand.js +21 -28
- package/dist-es/commands/CreateModelQualityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateMonitoringScheduleCommand.js +21 -28
- package/dist-es/commands/CreateNotebookInstanceCommand.js +21 -28
- package/dist-es/commands/CreateNotebookInstanceLifecycleConfigCommand.js +21 -28
- package/dist-es/commands/CreatePipelineCommand.js +21 -28
- package/dist-es/commands/CreatePresignedDomainUrlCommand.js +21 -28
- package/dist-es/commands/CreatePresignedNotebookInstanceUrlCommand.js +21 -28
- package/dist-es/commands/CreateProcessingJobCommand.js +21 -28
- package/dist-es/commands/CreateProjectCommand.js +21 -28
- package/dist-es/commands/CreateStudioLifecycleConfigCommand.js +21 -28
- package/dist-es/commands/CreateTrainingJobCommand.js +21 -28
- package/dist-es/commands/CreateTransformJobCommand.js +21 -28
- package/dist-es/commands/CreateTrialCommand.js +21 -28
- package/dist-es/commands/CreateTrialComponentCommand.js +21 -28
- package/dist-es/commands/CreateUserProfileCommand.js +21 -28
- package/dist-es/commands/CreateWorkforceCommand.js +21 -28
- package/dist-es/commands/CreateWorkteamCommand.js +21 -28
- package/dist-es/commands/DeleteActionCommand.js +21 -28
- package/dist-es/commands/DeleteAlgorithmCommand.js +22 -29
- package/dist-es/commands/DeleteAppCommand.js +22 -29
- package/dist-es/commands/DeleteAppImageConfigCommand.js +22 -29
- package/dist-es/commands/DeleteArtifactCommand.js +21 -28
- package/dist-es/commands/DeleteAssociationCommand.js +21 -28
- package/dist-es/commands/DeleteCodeRepositoryCommand.js +22 -29
- package/dist-es/commands/DeleteContextCommand.js +21 -28
- package/dist-es/commands/DeleteDataQualityJobDefinitionCommand.js +22 -29
- package/dist-es/commands/DeleteDeviceFleetCommand.js +22 -29
- package/dist-es/commands/DeleteDomainCommand.js +22 -29
- package/dist-es/commands/DeleteEdgeDeploymentPlanCommand.js +22 -29
- package/dist-es/commands/DeleteEdgeDeploymentStageCommand.js +22 -29
- package/dist-es/commands/DeleteEndpointCommand.js +22 -29
- package/dist-es/commands/DeleteEndpointConfigCommand.js +22 -29
- package/dist-es/commands/DeleteExperimentCommand.js +21 -28
- package/dist-es/commands/DeleteFeatureGroupCommand.js +22 -29
- package/dist-es/commands/DeleteFlowDefinitionCommand.js +21 -28
- package/dist-es/commands/DeleteHumanTaskUiCommand.js +21 -28
- package/dist-es/commands/DeleteImageCommand.js +21 -28
- package/dist-es/commands/DeleteImageVersionCommand.js +21 -28
- package/dist-es/commands/DeleteModelBiasJobDefinitionCommand.js +22 -29
- package/dist-es/commands/DeleteModelCommand.js +22 -29
- package/dist-es/commands/DeleteModelExplainabilityJobDefinitionCommand.js +22 -29
- package/dist-es/commands/DeleteModelPackageCommand.js +22 -29
- package/dist-es/commands/DeleteModelPackageGroupCommand.js +22 -29
- package/dist-es/commands/DeleteModelPackageGroupPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteModelQualityJobDefinitionCommand.js +22 -29
- package/dist-es/commands/DeleteMonitoringScheduleCommand.js +22 -29
- package/dist-es/commands/DeleteNotebookInstanceCommand.js +22 -29
- package/dist-es/commands/DeleteNotebookInstanceLifecycleConfigCommand.js +22 -29
- package/dist-es/commands/DeletePipelineCommand.js +21 -28
- package/dist-es/commands/DeleteProjectCommand.js +22 -29
- package/dist-es/commands/DeleteStudioLifecycleConfigCommand.js +22 -29
- package/dist-es/commands/DeleteTagsCommand.js +21 -28
- package/dist-es/commands/DeleteTrialCommand.js +21 -28
- package/dist-es/commands/DeleteTrialComponentCommand.js +21 -28
- package/dist-es/commands/DeleteUserProfileCommand.js +22 -29
- package/dist-es/commands/DeleteWorkforceCommand.js +21 -28
- package/dist-es/commands/DeleteWorkteamCommand.js +21 -28
- package/dist-es/commands/DeregisterDevicesCommand.js +22 -29
- package/dist-es/commands/DescribeActionCommand.js +21 -28
- package/dist-es/commands/DescribeAlgorithmCommand.js +21 -28
- package/dist-es/commands/DescribeAppCommand.js +21 -28
- package/dist-es/commands/DescribeAppImageConfigCommand.js +21 -28
- package/dist-es/commands/DescribeArtifactCommand.js +21 -28
- package/dist-es/commands/DescribeAutoMLJobCommand.js +21 -28
- package/dist-es/commands/DescribeCodeRepositoryCommand.js +21 -28
- package/dist-es/commands/DescribeCompilationJobCommand.js +21 -28
- package/dist-es/commands/DescribeContextCommand.js +21 -28
- package/dist-es/commands/DescribeDataQualityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeDeviceCommand.js +21 -28
- package/dist-es/commands/DescribeDeviceFleetCommand.js +21 -28
- package/dist-es/commands/DescribeDomainCommand.js +21 -28
- package/dist-es/commands/DescribeEdgeDeploymentPlanCommand.js +21 -28
- package/dist-es/commands/DescribeEdgePackagingJobCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointConfigCommand.js +21 -28
- package/dist-es/commands/DescribeExperimentCommand.js +21 -28
- package/dist-es/commands/DescribeFeatureGroupCommand.js +21 -28
- package/dist-es/commands/DescribeFeatureMetadataCommand.js +21 -28
- package/dist-es/commands/DescribeFlowDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeHumanTaskUiCommand.js +21 -28
- package/dist-es/commands/DescribeHyperParameterTuningJobCommand.js +21 -28
- package/dist-es/commands/DescribeImageCommand.js +21 -28
- package/dist-es/commands/DescribeImageVersionCommand.js +21 -28
- package/dist-es/commands/DescribeInferenceRecommendationsJobCommand.js +21 -28
- package/dist-es/commands/DescribeLabelingJobCommand.js +21 -28
- package/dist-es/commands/DescribeLineageGroupCommand.js +21 -28
- package/dist-es/commands/DescribeModelBiasJobDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeModelCommand.js +21 -28
- package/dist-es/commands/DescribeModelExplainabilityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeModelPackageCommand.js +21 -28
- package/dist-es/commands/DescribeModelPackageGroupCommand.js +21 -28
- package/dist-es/commands/DescribeModelQualityJobDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeMonitoringScheduleCommand.js +21 -28
- package/dist-es/commands/DescribeNotebookInstanceCommand.js +21 -28
- package/dist-es/commands/DescribeNotebookInstanceLifecycleConfigCommand.js +21 -28
- package/dist-es/commands/DescribePipelineCommand.js +21 -28
- package/dist-es/commands/DescribePipelineDefinitionForExecutionCommand.js +21 -28
- package/dist-es/commands/DescribePipelineExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeProcessingJobCommand.js +21 -28
- package/dist-es/commands/DescribeProjectCommand.js +21 -28
- package/dist-es/commands/DescribeStudioLifecycleConfigCommand.js +21 -28
- package/dist-es/commands/DescribeSubscribedWorkteamCommand.js +21 -28
- package/dist-es/commands/DescribeTrainingJobCommand.js +21 -28
- package/dist-es/commands/DescribeTransformJobCommand.js +21 -28
- package/dist-es/commands/DescribeTrialCommand.js +21 -28
- package/dist-es/commands/DescribeTrialComponentCommand.js +21 -28
- package/dist-es/commands/DescribeUserProfileCommand.js +21 -28
- package/dist-es/commands/DescribeWorkforceCommand.js +21 -28
- package/dist-es/commands/DescribeWorkteamCommand.js +21 -28
- package/dist-es/commands/DisableSagemakerServicecatalogPortfolioCommand.js +21 -28
- package/dist-es/commands/DisassociateTrialComponentCommand.js +21 -28
- package/dist-es/commands/EnableSagemakerServicecatalogPortfolioCommand.js +21 -28
- package/dist-es/commands/GetDeviceFleetReportCommand.js +21 -28
- package/dist-es/commands/GetLineageGroupPolicyCommand.js +21 -28
- package/dist-es/commands/GetModelPackageGroupPolicyCommand.js +21 -28
- package/dist-es/commands/GetSagemakerServicecatalogPortfolioStatusCommand.js +21 -28
- package/dist-es/commands/GetSearchSuggestionsCommand.js +21 -28
- package/dist-es/commands/ListActionsCommand.js +21 -28
- package/dist-es/commands/ListAlgorithmsCommand.js +21 -28
- package/dist-es/commands/ListAppImageConfigsCommand.js +21 -28
- package/dist-es/commands/ListAppsCommand.js +21 -28
- package/dist-es/commands/ListArtifactsCommand.js +21 -28
- package/dist-es/commands/ListAssociationsCommand.js +21 -28
- package/dist-es/commands/ListAutoMLJobsCommand.js +21 -28
- package/dist-es/commands/ListCandidatesForAutoMLJobCommand.js +21 -28
- package/dist-es/commands/ListCodeRepositoriesCommand.js +21 -28
- package/dist-es/commands/ListCompilationJobsCommand.js +21 -28
- package/dist-es/commands/ListContextsCommand.js +21 -28
- package/dist-es/commands/ListDataQualityJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListDeviceFleetsCommand.js +21 -28
- package/dist-es/commands/ListDevicesCommand.js +21 -28
- package/dist-es/commands/ListDomainsCommand.js +21 -28
- package/dist-es/commands/ListEdgeDeploymentPlansCommand.js +21 -28
- package/dist-es/commands/ListEdgePackagingJobsCommand.js +21 -28
- package/dist-es/commands/ListEndpointConfigsCommand.js +21 -28
- package/dist-es/commands/ListEndpointsCommand.js +21 -28
- package/dist-es/commands/ListExperimentsCommand.js +21 -28
- package/dist-es/commands/ListFeatureGroupsCommand.js +21 -28
- package/dist-es/commands/ListFlowDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListHumanTaskUisCommand.js +21 -28
- package/dist-es/commands/ListHyperParameterTuningJobsCommand.js +21 -28
- package/dist-es/commands/ListImageVersionsCommand.js +21 -28
- package/dist-es/commands/ListImagesCommand.js +21 -28
- package/dist-es/commands/ListInferenceRecommendationsJobsCommand.js +21 -28
- package/dist-es/commands/ListLabelingJobsCommand.js +21 -28
- package/dist-es/commands/ListLabelingJobsForWorkteamCommand.js +21 -28
- package/dist-es/commands/ListLineageGroupsCommand.js +21 -28
- package/dist-es/commands/ListModelBiasJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListModelExplainabilityJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListModelMetadataCommand.js +21 -28
- package/dist-es/commands/ListModelPackageGroupsCommand.js +21 -28
- package/dist-es/commands/ListModelPackagesCommand.js +21 -28
- package/dist-es/commands/ListModelQualityJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/ListModelsCommand.js +21 -28
- package/dist-es/commands/ListMonitoringExecutionsCommand.js +21 -28
- package/dist-es/commands/ListMonitoringSchedulesCommand.js +21 -28
- package/dist-es/commands/ListNotebookInstanceLifecycleConfigsCommand.js +21 -28
- package/dist-es/commands/ListNotebookInstancesCommand.js +21 -28
- package/dist-es/commands/ListPipelineExecutionStepsCommand.js +21 -28
- package/dist-es/commands/ListPipelineExecutionsCommand.js +21 -28
- package/dist-es/commands/ListPipelineParametersForExecutionCommand.js +21 -28
- package/dist-es/commands/ListPipelinesCommand.js +21 -28
- package/dist-es/commands/ListProcessingJobsCommand.js +21 -28
- package/dist-es/commands/ListProjectsCommand.js +21 -28
- package/dist-es/commands/ListStageDevicesCommand.js +21 -28
- package/dist-es/commands/ListStudioLifecycleConfigsCommand.js +21 -28
- package/dist-es/commands/ListSubscribedWorkteamsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/ListTrainingJobsCommand.js +21 -28
- package/dist-es/commands/ListTrainingJobsForHyperParameterTuningJobCommand.js +21 -28
- package/dist-es/commands/ListTransformJobsCommand.js +21 -28
- package/dist-es/commands/ListTrialComponentsCommand.js +21 -28
- package/dist-es/commands/ListTrialsCommand.js +21 -28
- package/dist-es/commands/ListUserProfilesCommand.js +21 -28
- package/dist-es/commands/ListWorkforcesCommand.js +21 -28
- package/dist-es/commands/ListWorkteamsCommand.js +21 -28
- package/dist-es/commands/PutModelPackageGroupPolicyCommand.js +21 -28
- package/dist-es/commands/QueryLineageCommand.js +21 -28
- package/dist-es/commands/RegisterDevicesCommand.js +22 -29
- package/dist-es/commands/RenderUiTemplateCommand.js +21 -28
- package/dist-es/commands/RetryPipelineExecutionCommand.js +21 -28
- package/dist-es/commands/SearchCommand.js +21 -28
- package/dist-es/commands/SendPipelineExecutionStepFailureCommand.js +21 -28
- package/dist-es/commands/SendPipelineExecutionStepSuccessCommand.js +21 -28
- package/dist-es/commands/StartEdgeDeploymentStageCommand.js +22 -29
- package/dist-es/commands/StartMonitoringScheduleCommand.js +22 -29
- package/dist-es/commands/StartNotebookInstanceCommand.js +22 -29
- package/dist-es/commands/StartPipelineExecutionCommand.js +21 -28
- package/dist-es/commands/StopAutoMLJobCommand.js +22 -29
- package/dist-es/commands/StopCompilationJobCommand.js +22 -29
- package/dist-es/commands/StopEdgeDeploymentStageCommand.js +22 -29
- package/dist-es/commands/StopEdgePackagingJobCommand.js +22 -29
- package/dist-es/commands/StopHyperParameterTuningJobCommand.js +22 -29
- package/dist-es/commands/StopInferenceRecommendationsJobCommand.js +22 -29
- package/dist-es/commands/StopLabelingJobCommand.js +22 -29
- package/dist-es/commands/StopMonitoringScheduleCommand.js +22 -29
- package/dist-es/commands/StopNotebookInstanceCommand.js +22 -29
- package/dist-es/commands/StopPipelineExecutionCommand.js +21 -28
- package/dist-es/commands/StopProcessingJobCommand.js +22 -29
- package/dist-es/commands/StopTrainingJobCommand.js +22 -29
- package/dist-es/commands/StopTransformJobCommand.js +22 -29
- package/dist-es/commands/UpdateActionCommand.js +21 -28
- package/dist-es/commands/UpdateAppImageConfigCommand.js +21 -28
- package/dist-es/commands/UpdateArtifactCommand.js +21 -28
- package/dist-es/commands/UpdateCodeRepositoryCommand.js +21 -28
- package/dist-es/commands/UpdateContextCommand.js +21 -28
- package/dist-es/commands/UpdateDeviceFleetCommand.js +22 -29
- package/dist-es/commands/UpdateDevicesCommand.js +22 -29
- package/dist-es/commands/UpdateDomainCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointWeightsAndCapacitiesCommand.js +21 -28
- package/dist-es/commands/UpdateExperimentCommand.js +21 -28
- package/dist-es/commands/UpdateFeatureGroupCommand.js +21 -28
- package/dist-es/commands/UpdateFeatureMetadataCommand.js +22 -29
- package/dist-es/commands/UpdateImageCommand.js +21 -28
- package/dist-es/commands/UpdateModelPackageCommand.js +21 -28
- package/dist-es/commands/UpdateMonitoringScheduleCommand.js +21 -28
- package/dist-es/commands/UpdateNotebookInstanceCommand.js +21 -28
- package/dist-es/commands/UpdateNotebookInstanceLifecycleConfigCommand.js +21 -28
- package/dist-es/commands/UpdatePipelineCommand.js +21 -28
- package/dist-es/commands/UpdatePipelineExecutionCommand.js +21 -28
- package/dist-es/commands/UpdateProjectCommand.js +21 -28
- package/dist-es/commands/UpdateTrainingJobCommand.js +21 -28
- package/dist-es/commands/UpdateTrialCommand.js +21 -28
- package/dist-es/commands/UpdateTrialComponentCommand.js +21 -28
- package/dist-es/commands/UpdateUserProfileCommand.js +21 -28
- package/dist-es/commands/UpdateWorkforceCommand.js +21 -28
- package/dist-es/commands/UpdateWorkteamCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SageMakerServiceException.js +5 -10
- package/dist-es/models/models_0.js +678 -259
- package/dist-es/models/models_1.js +818 -280
- package/dist-es/models/models_2.js +720 -245
- package/dist-es/models/models_3.js +552 -192
- package/dist-es/pagination/ListActionsPaginator.js +25 -68
- package/dist-es/pagination/ListAlgorithmsPaginator.js +25 -68
- package/dist-es/pagination/ListAppImageConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListAppsPaginator.js +25 -68
- package/dist-es/pagination/ListArtifactsPaginator.js +25 -68
- package/dist-es/pagination/ListAssociationsPaginator.js +25 -68
- package/dist-es/pagination/ListAutoMLJobsPaginator.js +25 -68
- package/dist-es/pagination/ListCandidatesForAutoMLJobPaginator.js +25 -68
- package/dist-es/pagination/ListCodeRepositoriesPaginator.js +25 -68
- package/dist-es/pagination/ListCompilationJobsPaginator.js +25 -68
- package/dist-es/pagination/ListContextsPaginator.js +25 -68
- package/dist-es/pagination/ListDataQualityJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListDeviceFleetsPaginator.js +25 -68
- package/dist-es/pagination/ListDevicesPaginator.js +25 -68
- package/dist-es/pagination/ListDomainsPaginator.js +25 -68
- package/dist-es/pagination/ListEdgeDeploymentPlansPaginator.js +25 -68
- package/dist-es/pagination/ListEdgePackagingJobsPaginator.js +25 -68
- package/dist-es/pagination/ListEndpointConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListEndpointsPaginator.js +25 -68
- package/dist-es/pagination/ListExperimentsPaginator.js +25 -68
- package/dist-es/pagination/ListFlowDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListHumanTaskUisPaginator.js +25 -68
- package/dist-es/pagination/ListHyperParameterTuningJobsPaginator.js +25 -68
- package/dist-es/pagination/ListImageVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListImagesPaginator.js +25 -68
- package/dist-es/pagination/ListInferenceRecommendationsJobsPaginator.js +25 -68
- package/dist-es/pagination/ListLabelingJobsForWorkteamPaginator.js +25 -68
- package/dist-es/pagination/ListLabelingJobsPaginator.js +25 -68
- package/dist-es/pagination/ListLineageGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListModelBiasJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListModelExplainabilityJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListModelMetadataPaginator.js +25 -68
- package/dist-es/pagination/ListModelPackageGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListModelPackagesPaginator.js +25 -68
- package/dist-es/pagination/ListModelQualityJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/ListModelsPaginator.js +25 -68
- package/dist-es/pagination/ListMonitoringExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListMonitoringSchedulesPaginator.js +25 -68
- package/dist-es/pagination/ListNotebookInstanceLifecycleConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListNotebookInstancesPaginator.js +25 -68
- package/dist-es/pagination/ListPipelineExecutionStepsPaginator.js +25 -68
- package/dist-es/pagination/ListPipelineExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListPipelineParametersForExecutionPaginator.js +25 -68
- package/dist-es/pagination/ListPipelinesPaginator.js +25 -68
- package/dist-es/pagination/ListProcessingJobsPaginator.js +25 -68
- package/dist-es/pagination/ListProjectsPaginator.js +25 -68
- package/dist-es/pagination/ListStageDevicesPaginator.js +25 -68
- package/dist-es/pagination/ListStudioLifecycleConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListSubscribedWorkteamsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsPaginator.js +25 -68
- package/dist-es/pagination/ListTrainingJobsForHyperParameterTuningJobPaginator.js +25 -68
- package/dist-es/pagination/ListTrainingJobsPaginator.js +25 -68
- package/dist-es/pagination/ListTransformJobsPaginator.js +25 -68
- package/dist-es/pagination/ListTrialComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListTrialsPaginator.js +25 -68
- package/dist-es/pagination/ListUserProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListWorkforcesPaginator.js +25 -68
- package/dist-es/pagination/ListWorkteamsPaginator.js +25 -68
- package/dist-es/pagination/QueryLineagePaginator.js +25 -68
- package/dist-es/pagination/SearchPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +17157 -19828
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForEndpointDeleted.js +30 -50
- package/dist-es/waiters/waitForEndpointInService.js +39 -59
- package/dist-es/waiters/waitForImageCreated.js +39 -59
- package/dist-es/waiters/waitForImageDeleted.js +33 -53
- package/dist-es/waiters/waitForImageUpdated.js +39 -59
- package/dist-es/waiters/waitForImageVersionCreated.js +39 -59
- package/dist-es/waiters/waitForImageVersionDeleted.js +33 -53
- package/dist-es/waiters/waitForNotebookInstanceDeleted.js +30 -50
- package/dist-es/waiters/waitForNotebookInstanceInService.js +36 -56
- package/dist-es/waiters/waitForNotebookInstanceStopped.js +36 -56
- package/dist-es/waiters/waitForProcessingJobCompletedOrStopped.js +48 -68
- package/dist-es/waiters/waitForTrainingJobCompletedOrStopped.js +48 -68
- package/dist-es/waiters/waitForTransformJobCompletedOrStopped.js +48 -68
- package/package.json +34 -34
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
12
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
12
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
13
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
export const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
26
40
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
15
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
16
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
18
|
-
export
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
20
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ??
|
|
37
|
+
loadNodeConfig({
|
|
38
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
+
}),
|
|
41
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
+
};
|
|
30
48
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
8
11
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
3
|
+
export const getRuntimeConfig = (config) => ({
|
|
4
|
+
apiVersion: "2017-07-24",
|
|
5
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
logger: config?.logger ?? {},
|
|
7
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
|
+
serviceId: config?.serviceId ?? "SageMaker",
|
|
9
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
10
|
+
});
|
|
@@ -1,54 +1,34 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeEndpointCommand } from "../commands/DescribeEndpointCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.EndpointStatus;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "Failed") {
|
|
19
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
return [3, 3];
|
|
24
|
-
case 2:
|
|
25
|
-
exception_1 = _a.sent();
|
|
26
|
-
reason = exception_1;
|
|
27
|
-
if (exception_1.name && exception_1.name == "ValidationException") {
|
|
28
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
return [3, 3];
|
|
31
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeEndpointCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.EndpointStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "Failed") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
32
15
|
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
});
|
|
41
|
-
}); };
|
|
42
|
-
export var waitUntilEndpointDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
-
var serviceDefaults, result;
|
|
44
|
-
return __generator(this, function (_a) {
|
|
45
|
-
switch (_a.label) {
|
|
46
|
-
case 0:
|
|
47
|
-
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
48
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
49
|
-
case 1:
|
|
50
|
-
result = _a.sent();
|
|
51
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name && exception.name == "ValidationException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
52
22
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
23
|
+
}
|
|
24
|
+
return { state: WaiterState.RETRY, reason };
|
|
25
|
+
};
|
|
26
|
+
export const waitForEndpointDeleted = async (params, input) => {
|
|
27
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
28
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
29
|
+
};
|
|
30
|
+
export const waitUntilEndpointDeleted = async (params, input) => {
|
|
31
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
32
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
33
|
+
return checkExceptions(result);
|
|
34
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeEndpointCommand } from "../commands/DescribeEndpointCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.EndpointStatus;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "InService") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.EndpointStatus;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "Failed") {
|
|
28
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "ValidationException") {
|
|
37
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeEndpointCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.EndpointStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "InService") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilEndpointInService = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.EndpointStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "Failed") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "ValidationException") {
|
|
30
|
+
return { state: WaiterState.FAILURE, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForEndpointInService = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilEndpointInService = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeImageCommand } from "../commands/DescribeImageCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.ImageStatus;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "CREATED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.ImageStatus;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
28
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "ValidationException") {
|
|
37
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeImageCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ImageStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "CREATED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilImageCreated = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ImageStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "ValidationException") {
|
|
30
|
+
return { state: WaiterState.FAILURE, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForImageCreated = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilImageCreated = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -1,57 +1,37 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeImageCommand } from "../commands/DescribeImageCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.ImageStatus;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "DELETE_FAILED") {
|
|
19
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
return [3, 3];
|
|
24
|
-
case 2:
|
|
25
|
-
exception_1 = _a.sent();
|
|
26
|
-
reason = exception_1;
|
|
27
|
-
if (exception_1.name && exception_1.name == "ResourceNotFoundException") {
|
|
28
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
if (exception_1.name && exception_1.name == "ValidationException") {
|
|
31
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
32
|
-
}
|
|
33
|
-
return [3, 3];
|
|
34
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeImageCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ImageStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETE_FAILED") {
|
|
13
|
+
return { state: WaiterState.FAILURE, reason };
|
|
14
|
+
}
|
|
35
15
|
}
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
43
|
-
});
|
|
44
|
-
}); };
|
|
45
|
-
export var waitUntilImageDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
46
|
-
var serviceDefaults, result;
|
|
47
|
-
return __generator(this, function (_a) {
|
|
48
|
-
switch (_a.label) {
|
|
49
|
-
case 0:
|
|
50
|
-
serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
51
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
52
|
-
case 1:
|
|
53
|
-
result = _a.sent();
|
|
54
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
55
22
|
}
|
|
56
|
-
|
|
57
|
-
|
|
23
|
+
if (exception.name && exception.name == "ValidationException") {
|
|
24
|
+
return { state: WaiterState.FAILURE, reason };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { state: WaiterState.RETRY, reason };
|
|
28
|
+
};
|
|
29
|
+
export const waitForImageDeleted = async (params, input) => {
|
|
30
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
31
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
32
|
+
};
|
|
33
|
+
export const waitUntilImageDeleted = async (params, input) => {
|
|
34
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
35
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
36
|
+
return checkExceptions(result);
|
|
37
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeImageCommand } from "../commands/DescribeImageCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.ImageStatus;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "CREATED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.ImageStatus;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "UPDATE_FAILED") {
|
|
28
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "ValidationException") {
|
|
37
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeImageCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ImageStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "CREATED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilImageUpdated = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ImageStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "UPDATE_FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "ValidationException") {
|
|
30
|
+
return { state: WaiterState.FAILURE, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForImageUpdated = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilImageUpdated = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|