@aws-sdk/client-sagemaker 3.606.0 → 3.613.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.
Files changed (91) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +4869 -4441
  3. package/dist-es/SageMaker.js +10 -0
  4. package/dist-es/commands/CreateOptimizationJobCommand.js +24 -0
  5. package/dist-es/commands/DeleteOptimizationJobCommand.js +24 -0
  6. package/dist-es/commands/DescribeModelPackageCommand.js +1 -1
  7. package/dist-es/commands/DescribeOptimizationJobCommand.js +24 -0
  8. package/dist-es/commands/ListOptimizationJobsCommand.js +24 -0
  9. package/dist-es/commands/StopOptimizationJobCommand.js +24 -0
  10. package/dist-es/commands/index.js +5 -0
  11. package/dist-es/models/models_0.js +4 -4
  12. package/dist-es/models/models_1.js +38 -0
  13. package/dist-es/models/models_2.js +0 -19
  14. package/dist-es/models/models_3.js +27 -17
  15. package/dist-es/models/models_4.js +22 -0
  16. package/dist-es/pagination/ListOptimizationJobsPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +1 -0
  18. package/dist-es/protocols/Aws_json1_1.js +278 -0
  19. package/dist-types/SageMaker.d.ts +36 -0
  20. package/dist-types/SageMakerClient.d.ts +7 -2
  21. package/dist-types/commands/CreateAppCommand.d.ts +3 -2
  22. package/dist-types/commands/CreateClusterCommand.d.ts +2 -1
  23. package/dist-types/commands/CreateCodeRepositoryCommand.d.ts +1 -2
  24. package/dist-types/commands/CreateDomainCommand.d.ts +22 -18
  25. package/dist-types/commands/CreateModelCommand.d.ts +22 -0
  26. package/dist-types/commands/CreateOptimizationJobCommand.d.ts +124 -0
  27. package/dist-types/commands/CreatePresignedDomainUrlCommand.d.ts +15 -15
  28. package/dist-types/commands/CreateProcessingJobCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateUserProfileCommand.d.ts +6 -6
  30. package/dist-types/commands/DeleteOptimizationJobCommand.d.ts +61 -0
  31. package/dist-types/commands/DeleteStudioLifecycleConfigCommand.d.ts +4 -1
  32. package/dist-types/commands/DeleteUserProfileCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeDomainCommand.d.ts +4 -0
  34. package/dist-types/commands/DescribeModelCardExportJobCommand.d.ts +2 -1
  35. package/dist-types/commands/DescribeModelCommand.d.ts +22 -0
  36. package/dist-types/commands/DescribeModelExplainabilityJobDefinitionCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeModelPackageCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeModelPackageGroupCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeModelQualityJobDefinitionCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeMonitoringScheduleCommand.d.ts +1 -2
  41. package/dist-types/commands/DescribeOptimizationJobCommand.d.ts +119 -0
  42. package/dist-types/commands/ListModelMetadataCommand.d.ts +1 -1
  43. package/dist-types/commands/ListModelPackageGroupsCommand.d.ts +1 -1
  44. package/dist-types/commands/ListModelPackagesCommand.d.ts +1 -1
  45. package/dist-types/commands/ListModelQualityJobDefinitionsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListModelsCommand.d.ts +1 -2
  47. package/dist-types/commands/ListOptimizationJobsCommand.d.ts +85 -0
  48. package/dist-types/commands/ListStudioLifecycleConfigsCommand.d.ts +2 -1
  49. package/dist-types/commands/SearchCommand.d.ts +32 -0
  50. package/dist-types/commands/StopOptimizationJobCommand.d.ts +61 -0
  51. package/dist-types/commands/UpdateDomainCommand.d.ts +4 -0
  52. package/dist-types/commands/index.d.ts +5 -0
  53. package/dist-types/models/models_0.d.ts +69 -61
  54. package/dist-types/models/models_1.d.ts +421 -442
  55. package/dist-types/models/models_2.d.ts +436 -556
  56. package/dist-types/models/models_3.d.ts +5535 -5371
  57. package/dist-types/models/models_4.d.ts +740 -38
  58. package/dist-types/pagination/ListOptimizationJobsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/index.d.ts +1 -0
  60. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  61. package/dist-types/ts3.4/SageMaker.d.ts +86 -0
  62. package/dist-types/ts3.4/SageMakerClient.d.ts +30 -0
  63. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -4
  64. package/dist-types/ts3.4/commands/CreateCodeRepositoryCommand.d.ts +4 -2
  65. package/dist-types/ts3.4/commands/CreateOptimizationJobCommand.d.ts +40 -0
  66. package/dist-types/ts3.4/commands/CreateProcessingJobCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DeleteOptimizationJobCommand.d.ts +35 -0
  68. package/dist-types/ts3.4/commands/DescribeModelCardExportJobCommand.d.ts +2 -4
  69. package/dist-types/ts3.4/commands/DescribeModelExplainabilityJobDefinitionCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/DescribeModelPackageCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/DescribeModelPackageGroupCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DescribeModelQualityJobDefinitionCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/DescribeMonitoringScheduleCommand.d.ts +4 -2
  74. package/dist-types/ts3.4/commands/DescribeOptimizationJobCommand.d.ts +40 -0
  75. package/dist-types/ts3.4/commands/ListModelMetadataCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListModelPackageGroupsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListModelPackagesCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ListModelQualityJobDefinitionsCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +1 -2
  80. package/dist-types/ts3.4/commands/ListOptimizationJobsCommand.d.ts +40 -0
  81. package/dist-types/ts3.4/commands/StopOptimizationJobCommand.d.ts +35 -0
  82. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  83. package/dist-types/ts3.4/models/models_0.d.ts +14 -13
  84. package/dist-types/ts3.4/models/models_1.d.ts +109 -71
  85. package/dist-types/ts3.4/models/models_2.d.ts +81 -142
  86. package/dist-types/ts3.4/models/models_3.d.ts +192 -125
  87. package/dist-types/ts3.4/models/models_4.d.ts +170 -9
  88. package/dist-types/ts3.4/pagination/ListOptimizationJobsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  90. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  91. package/package.json +36 -36
@@ -293,6 +293,12 @@ export const se_CreateNotebookInstanceLifecycleConfigCommand = async (input, con
293
293
  body = JSON.stringify(_json(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
+ export const se_CreateOptimizationJobCommand = async (input, context) => {
297
+ const headers = sharedHeaders("CreateOptimizationJob");
298
+ let body;
299
+ body = JSON.stringify(_json(input));
300
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
+ };
296
302
  export const se_CreatePipelineCommand = async (input, context) => {
297
303
  const headers = sharedHeaders("CreatePipeline");
298
304
  let body;
@@ -629,6 +635,12 @@ export const se_DeleteNotebookInstanceLifecycleConfigCommand = async (input, con
629
635
  body = JSON.stringify(_json(input));
630
636
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
631
637
  };
638
+ export const se_DeleteOptimizationJobCommand = async (input, context) => {
639
+ const headers = sharedHeaders("DeleteOptimizationJob");
640
+ let body;
641
+ body = JSON.stringify(_json(input));
642
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
643
+ };
632
644
  export const se_DeletePipelineCommand = async (input, context) => {
633
645
  const headers = sharedHeaders("DeletePipeline");
634
646
  let body;
@@ -977,6 +989,12 @@ export const se_DescribeNotebookInstanceLifecycleConfigCommand = async (input, c
977
989
  body = JSON.stringify(_json(input));
978
990
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
979
991
  };
992
+ export const se_DescribeOptimizationJobCommand = async (input, context) => {
993
+ const headers = sharedHeaders("DescribeOptimizationJob");
994
+ let body;
995
+ body = JSON.stringify(_json(input));
996
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
997
+ };
980
998
  export const se_DescribePipelineCommand = async (input, context) => {
981
999
  const headers = sharedHeaders("DescribePipeline");
982
1000
  let body;
@@ -1463,6 +1481,12 @@ export const se_ListNotebookInstancesCommand = async (input, context) => {
1463
1481
  body = JSON.stringify(se_ListNotebookInstancesInput(input, context));
1464
1482
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1465
1483
  };
1484
+ export const se_ListOptimizationJobsCommand = async (input, context) => {
1485
+ const headers = sharedHeaders("ListOptimizationJobs");
1486
+ let body;
1487
+ body = JSON.stringify(se_ListOptimizationJobsRequest(input, context));
1488
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1489
+ };
1466
1490
  export const se_ListPipelineExecutionsCommand = async (input, context) => {
1467
1491
  const headers = sharedHeaders("ListPipelineExecutions");
1468
1492
  let body;
@@ -1733,6 +1757,12 @@ export const se_StopNotebookInstanceCommand = async (input, context) => {
1733
1757
  body = JSON.stringify(_json(input));
1734
1758
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1735
1759
  };
1760
+ export const se_StopOptimizationJobCommand = async (input, context) => {
1761
+ const headers = sharedHeaders("StopOptimizationJob");
1762
+ let body;
1763
+ body = JSON.stringify(_json(input));
1764
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1765
+ };
1736
1766
  export const se_StopPipelineExecutionCommand = async (input, context) => {
1737
1767
  const headers = sharedHeaders("StopPipelineExecution");
1738
1768
  let body;
@@ -2600,6 +2630,19 @@ export const de_CreateNotebookInstanceLifecycleConfigCommand = async (output, co
2600
2630
  };
2601
2631
  return response;
2602
2632
  };
2633
+ export const de_CreateOptimizationJobCommand = async (output, context) => {
2634
+ if (output.statusCode >= 300) {
2635
+ return de_CommandError(output, context);
2636
+ }
2637
+ const data = await parseBody(output.body, context);
2638
+ let contents = {};
2639
+ contents = de_CreateOptimizationJobResponse(data, context);
2640
+ const response = {
2641
+ $metadata: deserializeMetadata(output),
2642
+ ...contents,
2643
+ };
2644
+ return response;
2645
+ };
2603
2646
  export const de_CreatePipelineCommand = async (output, context) => {
2604
2647
  if (output.statusCode >= 300) {
2605
2648
  return de_CommandError(output, context);
@@ -3241,6 +3284,16 @@ export const de_DeleteNotebookInstanceLifecycleConfigCommand = async (output, co
3241
3284
  };
3242
3285
  return response;
3243
3286
  };
3287
+ export const de_DeleteOptimizationJobCommand = async (output, context) => {
3288
+ if (output.statusCode >= 300) {
3289
+ return de_CommandError(output, context);
3290
+ }
3291
+ await collectBody(output.body, context);
3292
+ const response = {
3293
+ $metadata: deserializeMetadata(output),
3294
+ };
3295
+ return response;
3296
+ };
3244
3297
  export const de_DeletePipelineCommand = async (output, context) => {
3245
3298
  if (output.statusCode >= 300) {
3246
3299
  return de_CommandError(output, context);
@@ -3980,6 +4033,19 @@ export const de_DescribeNotebookInstanceLifecycleConfigCommand = async (output,
3980
4033
  };
3981
4034
  return response;
3982
4035
  };
4036
+ export const de_DescribeOptimizationJobCommand = async (output, context) => {
4037
+ if (output.statusCode >= 300) {
4038
+ return de_CommandError(output, context);
4039
+ }
4040
+ const data = await parseBody(output.body, context);
4041
+ let contents = {};
4042
+ contents = de_DescribeOptimizationJobResponse(data, context);
4043
+ const response = {
4044
+ $metadata: deserializeMetadata(output),
4045
+ ...contents,
4046
+ };
4047
+ return response;
4048
+ };
3983
4049
  export const de_DescribePipelineCommand = async (output, context) => {
3984
4050
  if (output.statusCode >= 300) {
3985
4051
  return de_CommandError(output, context);
@@ -5033,6 +5099,19 @@ export const de_ListNotebookInstancesCommand = async (output, context) => {
5033
5099
  };
5034
5100
  return response;
5035
5101
  };
5102
+ export const de_ListOptimizationJobsCommand = async (output, context) => {
5103
+ if (output.statusCode >= 300) {
5104
+ return de_CommandError(output, context);
5105
+ }
5106
+ const data = await parseBody(output.body, context);
5107
+ let contents = {};
5108
+ contents = de_ListOptimizationJobsResponse(data, context);
5109
+ const response = {
5110
+ $metadata: deserializeMetadata(output),
5111
+ ...contents,
5112
+ };
5113
+ return response;
5114
+ };
5036
5115
  export const de_ListPipelineExecutionsCommand = async (output, context) => {
5037
5116
  if (output.statusCode >= 300) {
5038
5117
  return de_CommandError(output, context);
@@ -5579,6 +5658,16 @@ export const de_StopNotebookInstanceCommand = async (output, context) => {
5579
5658
  };
5580
5659
  return response;
5581
5660
  };
5661
+ export const de_StopOptimizationJobCommand = async (output, context) => {
5662
+ if (output.statusCode >= 300) {
5663
+ return de_CommandError(output, context);
5664
+ }
5665
+ await collectBody(output.body, context);
5666
+ const response = {
5667
+ $metadata: deserializeMetadata(output),
5668
+ };
5669
+ return response;
5670
+ };
5582
5671
  export const de_StopPipelineExecutionCommand = async (output, context) => {
5583
5672
  if (output.statusCode >= 300) {
5584
5673
  return de_CommandError(output, context);
@@ -7143,6 +7232,21 @@ const se_ListNotebookInstancesInput = (input, context) => {
7143
7232
  StatusEquals: [],
7144
7233
  });
7145
7234
  };
7235
+ const se_ListOptimizationJobsRequest = (input, context) => {
7236
+ return take(input, {
7237
+ CreationTimeAfter: (_) => _.getTime() / 1000,
7238
+ CreationTimeBefore: (_) => _.getTime() / 1000,
7239
+ LastModifiedTimeAfter: (_) => _.getTime() / 1000,
7240
+ LastModifiedTimeBefore: (_) => _.getTime() / 1000,
7241
+ MaxResults: [],
7242
+ NameContains: [],
7243
+ NextToken: [],
7244
+ OptimizationContains: [],
7245
+ SortBy: [],
7246
+ SortOrder: [],
7247
+ StatusEquals: [],
7248
+ });
7249
+ };
7146
7250
  const se_ListPipelineExecutionsRequest = (input, context) => {
7147
7251
  return take(input, {
7148
7252
  CreatedAfter: (_) => _.getTime() / 1000,
@@ -7562,6 +7666,20 @@ const de_AdditionalInferenceSpecifications = (output, context) => {
7562
7666
  });
7563
7667
  return retVal;
7564
7668
  };
7669
+ const de_AdditionalModelDataSource = (output, context) => {
7670
+ return take(output, {
7671
+ ChannelName: __expectString,
7672
+ S3DataSource: (_) => de_S3ModelDataSource(_, context),
7673
+ });
7674
+ };
7675
+ const de_AdditionalModelDataSources = (output, context) => {
7676
+ const retVal = (output || [])
7677
+ .filter((e) => e != null)
7678
+ .map((entry) => {
7679
+ return de_AdditionalModelDataSource(entry, context);
7680
+ });
7681
+ return retVal;
7682
+ };
7565
7683
  const de_AdditionalS3DataSource = (output, context) => {
7566
7684
  return take(output, {
7567
7685
  CompressionType: __expectString,
@@ -7681,6 +7799,12 @@ const de_AlgorithmValidationSpecification = (output, context) => {
7681
7799
  ValidationRole: __expectString,
7682
7800
  });
7683
7801
  };
7802
+ const de_AmazonQSettings = (output, context) => {
7803
+ return take(output, {
7804
+ QProfileArn: __expectString,
7805
+ Status: __expectString,
7806
+ });
7807
+ };
7684
7808
  const de_AnnotationConsolidationConfig = (output, context) => {
7685
7809
  return take(output, {
7686
7810
  AnnotationConsolidationLambdaArn: __expectString,
@@ -8708,6 +8832,7 @@ const de_ContainerConfig = (output, context) => {
8708
8832
  };
8709
8833
  const de_ContainerDefinition = (output, context) => {
8710
8834
  return take(output, {
8835
+ AdditionalModelDataSources: (_) => de_AdditionalModelDataSources(_, context),
8711
8836
  ContainerHostname: __expectString,
8712
8837
  Environment: (_) => de_EnvironmentMap(_, context),
8713
8838
  Image: __expectString,
@@ -9011,6 +9136,11 @@ const de_CreateNotebookInstanceOutput = (output, context) => {
9011
9136
  NotebookInstanceArn: __expectString,
9012
9137
  });
9013
9138
  };
9139
+ const de_CreateOptimizationJobResponse = (output, context) => {
9140
+ return take(output, {
9141
+ OptimizationJobArn: __expectString,
9142
+ });
9143
+ };
9014
9144
  const de_CreatePipelineResponse = (output, context) => {
9015
9145
  return take(output, {
9016
9146
  PipelineArn: __expectString,
@@ -10227,6 +10357,27 @@ const de_DescribeNotebookInstanceOutput = (output, context) => {
10227
10357
  VolumeSizeInGB: __expectInt32,
10228
10358
  });
10229
10359
  };
10360
+ const de_DescribeOptimizationJobResponse = (output, context) => {
10361
+ return take(output, {
10362
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10363
+ DeploymentInstanceType: __expectString,
10364
+ FailureReason: __expectString,
10365
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10366
+ ModelSource: (_) => de_OptimizationJobModelSource(_, context),
10367
+ OptimizationConfigs: (_) => de_OptimizationConfigs(_, context),
10368
+ OptimizationEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10369
+ OptimizationEnvironment: (_) => de_OptimizationJobEnvironmentVariables(_, context),
10370
+ OptimizationJobArn: __expectString,
10371
+ OptimizationJobName: __expectString,
10372
+ OptimizationJobStatus: __expectString,
10373
+ OptimizationOutput: (_) => de_OptimizationOutput(_, context),
10374
+ OptimizationStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
10375
+ OutputConfig: (_) => de_OptimizationJobOutputConfig(_, context),
10376
+ RoleArn: __expectString,
10377
+ StoppingCondition: (_) => de_StoppingCondition(_, context),
10378
+ VpcConfig: (_) => de_OptimizationVpcConfig(_, context),
10379
+ });
10380
+ };
10230
10381
  const de_DescribePipelineDefinitionForExecutionResponse = (output, context) => {
10231
10382
  return take(output, {
10232
10383
  CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -10603,6 +10754,7 @@ const de_DomainSecurityGroupIds = (output, context) => {
10603
10754
  };
10604
10755
  const de_DomainSettings = (output, context) => {
10605
10756
  return take(output, {
10757
+ AmazonQSettings: (_) => de_AmazonQSettings(_, context),
10606
10758
  DockerSettings: (_) => de_DockerSettings(_, context),
10607
10759
  ExecutionRoleIdentityConfig: __expectString,
10608
10760
  RStudioServerProDomainSettings: (_) => de_RStudioServerProDomainSettings(_, context),
@@ -12588,6 +12740,12 @@ const de_ListNotebookInstancesOutput = (output, context) => {
12588
12740
  NotebookInstances: (_) => de_NotebookInstanceSummaryList(_, context),
12589
12741
  });
12590
12742
  };
12743
+ const de_ListOptimizationJobsResponse = (output, context) => {
12744
+ return take(output, {
12745
+ NextToken: __expectString,
12746
+ OptimizationJobSummaries: (_) => de_OptimizationJobSummaries(_, context),
12747
+ });
12748
+ };
12591
12749
  const de_ListPipelineExecutionsResponse = (output, context) => {
12592
12750
  return take(output, {
12593
12751
  NextToken: __expectString,
@@ -12925,6 +13083,12 @@ const de_ModelClientConfig = (output, context) => {
12925
13083
  InvocationsTimeoutInSeconds: __expectInt32,
12926
13084
  });
12927
13085
  };
13086
+ const de_ModelCompilationConfig = (output, context) => {
13087
+ return take(output, {
13088
+ Image: __expectString,
13089
+ OverrideEnvironment: (_) => de_OptimizationJobEnvironmentVariables(_, context),
13090
+ });
13091
+ };
12928
13092
  const de_ModelConfiguration = (output, context) => {
12929
13093
  return take(output, {
12930
13094
  CompilationJobName: __expectString,
@@ -13296,6 +13460,12 @@ const de_ModelQualityJobInput = (output, context) => {
13296
13460
  GroundTruthS3Input: (_) => de_MonitoringGroundTruthS3Input(_, context),
13297
13461
  });
13298
13462
  };
13463
+ const de_ModelQuantizationConfig = (output, context) => {
13464
+ return take(output, {
13465
+ Image: __expectString,
13466
+ OverrideEnvironment: (_) => de_OptimizationJobEnvironmentVariables(_, context),
13467
+ });
13468
+ };
13299
13469
  const de_ModelRegisterSettings = (output, context) => {
13300
13470
  return take(output, {
13301
13471
  CrossAccountModelRegisterRoleArn: __expectString,
@@ -13763,6 +13933,114 @@ const de_OnlineStoreSecurityConfig = (output, context) => {
13763
13933
  KmsKeyId: __expectString,
13764
13934
  });
13765
13935
  };
13936
+ const de_OptimizationConfig = (output, context) => {
13937
+ if (output.ModelCompilationConfig != null) {
13938
+ return {
13939
+ ModelCompilationConfig: de_ModelCompilationConfig(output.ModelCompilationConfig, context),
13940
+ };
13941
+ }
13942
+ if (output.ModelQuantizationConfig != null) {
13943
+ return {
13944
+ ModelQuantizationConfig: de_ModelQuantizationConfig(output.ModelQuantizationConfig, context),
13945
+ };
13946
+ }
13947
+ return { $unknown: Object.entries(output)[0] };
13948
+ };
13949
+ const de_OptimizationConfigs = (output, context) => {
13950
+ const retVal = (output || [])
13951
+ .filter((e) => e != null)
13952
+ .map((entry) => {
13953
+ return de_OptimizationConfig(__expectUnion(entry), context);
13954
+ });
13955
+ return retVal;
13956
+ };
13957
+ const de_OptimizationJobEnvironmentVariables = (output, context) => {
13958
+ return Object.entries(output).reduce((acc, [key, value]) => {
13959
+ if (value === null) {
13960
+ return acc;
13961
+ }
13962
+ acc[key] = __expectString(value);
13963
+ return acc;
13964
+ }, {});
13965
+ };
13966
+ const de_OptimizationJobModelSource = (output, context) => {
13967
+ return take(output, {
13968
+ S3: (_) => de_OptimizationJobModelSourceS3(_, context),
13969
+ });
13970
+ };
13971
+ const de_OptimizationJobModelSourceS3 = (output, context) => {
13972
+ return take(output, {
13973
+ ModelAccessConfig: (_) => de_OptimizationModelAccessConfig(_, context),
13974
+ S3Uri: __expectString,
13975
+ });
13976
+ };
13977
+ const de_OptimizationJobOutputConfig = (output, context) => {
13978
+ return take(output, {
13979
+ KmsKeyId: __expectString,
13980
+ S3OutputLocation: __expectString,
13981
+ });
13982
+ };
13983
+ const de_OptimizationJobSummaries = (output, context) => {
13984
+ const retVal = (output || [])
13985
+ .filter((e) => e != null)
13986
+ .map((entry) => {
13987
+ return de_OptimizationJobSummary(entry, context);
13988
+ });
13989
+ return retVal;
13990
+ };
13991
+ const de_OptimizationJobSummary = (output, context) => {
13992
+ return take(output, {
13993
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
13994
+ DeploymentInstanceType: __expectString,
13995
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
13996
+ OptimizationEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
13997
+ OptimizationJobArn: __expectString,
13998
+ OptimizationJobName: __expectString,
13999
+ OptimizationJobStatus: __expectString,
14000
+ OptimizationStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
14001
+ OptimizationTypes: (_) => de_OptimizationTypes(_, context),
14002
+ });
14003
+ };
14004
+ const de_OptimizationModelAccessConfig = (output, context) => {
14005
+ return take(output, {
14006
+ AcceptEula: __expectBoolean,
14007
+ });
14008
+ };
14009
+ const de_OptimizationOutput = (output, context) => {
14010
+ return take(output, {
14011
+ RecommendedInferenceImage: __expectString,
14012
+ });
14013
+ };
14014
+ const de_OptimizationTypes = (output, context) => {
14015
+ const retVal = (output || [])
14016
+ .filter((e) => e != null)
14017
+ .map((entry) => {
14018
+ return __expectString(entry);
14019
+ });
14020
+ return retVal;
14021
+ };
14022
+ const de_OptimizationVpcConfig = (output, context) => {
14023
+ return take(output, {
14024
+ SecurityGroupIds: (_) => de_OptimizationVpcSecurityGroupIds(_, context),
14025
+ Subnets: (_) => de_OptimizationVpcSubnets(_, context),
14026
+ });
14027
+ };
14028
+ const de_OptimizationVpcSecurityGroupIds = (output, context) => {
14029
+ const retVal = (output || [])
14030
+ .filter((e) => e != null)
14031
+ .map((entry) => {
14032
+ return __expectString(entry);
14033
+ });
14034
+ return retVal;
14035
+ };
14036
+ const de_OptimizationVpcSubnets = (output, context) => {
14037
+ const retVal = (output || [])
14038
+ .filter((e) => e != null)
14039
+ .map((entry) => {
14040
+ return __expectString(entry);
14041
+ });
14042
+ return retVal;
14043
+ };
13766
14044
  const de_OutputConfig = (output, context) => {
13767
14045
  return take(output, {
13768
14046
  CompilerOptions: __expectString,
@@ -47,6 +47,7 @@ import { CreateModelQualityJobDefinitionCommandInput, CreateModelQualityJobDefin
47
47
  import { CreateMonitoringScheduleCommandInput, CreateMonitoringScheduleCommandOutput } from "./commands/CreateMonitoringScheduleCommand";
48
48
  import { CreateNotebookInstanceCommandInput, CreateNotebookInstanceCommandOutput } from "./commands/CreateNotebookInstanceCommand";
49
49
  import { CreateNotebookInstanceLifecycleConfigCommandInput, CreateNotebookInstanceLifecycleConfigCommandOutput } from "./commands/CreateNotebookInstanceLifecycleConfigCommand";
50
+ import { CreateOptimizationJobCommandInput, CreateOptimizationJobCommandOutput } from "./commands/CreateOptimizationJobCommand";
50
51
  import { CreatePipelineCommandInput, CreatePipelineCommandOutput } from "./commands/CreatePipelineCommand";
51
52
  import { CreatePresignedDomainUrlCommandInput, CreatePresignedDomainUrlCommandOutput } from "./commands/CreatePresignedDomainUrlCommand";
52
53
  import { CreatePresignedMlflowTrackingServerUrlCommandInput, CreatePresignedMlflowTrackingServerUrlCommandOutput } from "./commands/CreatePresignedMlflowTrackingServerUrlCommand";
@@ -103,6 +104,7 @@ import { DeleteModelQualityJobDefinitionCommandInput, DeleteModelQualityJobDefin
103
104
  import { DeleteMonitoringScheduleCommandInput, DeleteMonitoringScheduleCommandOutput } from "./commands/DeleteMonitoringScheduleCommand";
104
105
  import { DeleteNotebookInstanceCommandInput, DeleteNotebookInstanceCommandOutput } from "./commands/DeleteNotebookInstanceCommand";
105
106
  import { DeleteNotebookInstanceLifecycleConfigCommandInput, DeleteNotebookInstanceLifecycleConfigCommandOutput } from "./commands/DeleteNotebookInstanceLifecycleConfigCommand";
107
+ import { DeleteOptimizationJobCommandInput, DeleteOptimizationJobCommandOutput } from "./commands/DeleteOptimizationJobCommand";
106
108
  import { DeletePipelineCommandInput, DeletePipelineCommandOutput } from "./commands/DeletePipelineCommand";
107
109
  import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
108
110
  import { DeleteSpaceCommandInput, DeleteSpaceCommandOutput } from "./commands/DeleteSpaceCommand";
@@ -161,6 +163,7 @@ import { DescribeModelQualityJobDefinitionCommandInput, DescribeModelQualityJobD
161
163
  import { DescribeMonitoringScheduleCommandInput, DescribeMonitoringScheduleCommandOutput } from "./commands/DescribeMonitoringScheduleCommand";
162
164
  import { DescribeNotebookInstanceCommandInput, DescribeNotebookInstanceCommandOutput } from "./commands/DescribeNotebookInstanceCommand";
163
165
  import { DescribeNotebookInstanceLifecycleConfigCommandInput, DescribeNotebookInstanceLifecycleConfigCommandOutput } from "./commands/DescribeNotebookInstanceLifecycleConfigCommand";
166
+ import { DescribeOptimizationJobCommandInput, DescribeOptimizationJobCommandOutput } from "./commands/DescribeOptimizationJobCommand";
164
167
  import { DescribePipelineCommandInput, DescribePipelineCommandOutput } from "./commands/DescribePipelineCommand";
165
168
  import { DescribePipelineDefinitionForExecutionCommandInput, DescribePipelineDefinitionForExecutionCommandOutput } from "./commands/DescribePipelineDefinitionForExecutionCommand";
166
169
  import { DescribePipelineExecutionCommandInput, DescribePipelineExecutionCommandOutput } from "./commands/DescribePipelineExecutionCommand";
@@ -242,6 +245,7 @@ import { ListMonitoringExecutionsCommandInput, ListMonitoringExecutionsCommandOu
242
245
  import { ListMonitoringSchedulesCommandInput, ListMonitoringSchedulesCommandOutput } from "./commands/ListMonitoringSchedulesCommand";
243
246
  import { ListNotebookInstanceLifecycleConfigsCommandInput, ListNotebookInstanceLifecycleConfigsCommandOutput } from "./commands/ListNotebookInstanceLifecycleConfigsCommand";
244
247
  import { ListNotebookInstancesCommandInput, ListNotebookInstancesCommandOutput } from "./commands/ListNotebookInstancesCommand";
248
+ import { ListOptimizationJobsCommandInput, ListOptimizationJobsCommandOutput } from "./commands/ListOptimizationJobsCommand";
245
249
  import { ListPipelineExecutionsCommandInput, ListPipelineExecutionsCommandOutput } from "./commands/ListPipelineExecutionsCommand";
246
250
  import { ListPipelineExecutionStepsCommandInput, ListPipelineExecutionStepsCommandOutput } from "./commands/ListPipelineExecutionStepsCommand";
247
251
  import { ListPipelineParametersForExecutionCommandInput, ListPipelineParametersForExecutionCommandOutput } from "./commands/ListPipelineParametersForExecutionCommand";
@@ -287,6 +291,7 @@ import { StopLabelingJobCommandInput, StopLabelingJobCommandOutput } from "./com
287
291
  import { StopMlflowTrackingServerCommandInput, StopMlflowTrackingServerCommandOutput } from "./commands/StopMlflowTrackingServerCommand";
288
292
  import { StopMonitoringScheduleCommandInput, StopMonitoringScheduleCommandOutput } from "./commands/StopMonitoringScheduleCommand";
289
293
  import { StopNotebookInstanceCommandInput, StopNotebookInstanceCommandOutput } from "./commands/StopNotebookInstanceCommand";
294
+ import { StopOptimizationJobCommandInput, StopOptimizationJobCommandOutput } from "./commands/StopOptimizationJobCommand";
290
295
  import { StopPipelineExecutionCommandInput, StopPipelineExecutionCommandOutput } from "./commands/StopPipelineExecutionCommand";
291
296
  import { StopProcessingJobCommandInput, StopProcessingJobCommandOutput } from "./commands/StopProcessingJobCommand";
292
297
  import { StopTrainingJobCommandInput, StopTrainingJobCommandOutput } from "./commands/StopTrainingJobCommand";
@@ -620,6 +625,12 @@ export interface SageMaker {
620
625
  createNotebookInstanceLifecycleConfig(args: CreateNotebookInstanceLifecycleConfigCommandInput, options?: __HttpHandlerOptions): Promise<CreateNotebookInstanceLifecycleConfigCommandOutput>;
621
626
  createNotebookInstanceLifecycleConfig(args: CreateNotebookInstanceLifecycleConfigCommandInput, cb: (err: any, data?: CreateNotebookInstanceLifecycleConfigCommandOutput) => void): void;
622
627
  createNotebookInstanceLifecycleConfig(args: CreateNotebookInstanceLifecycleConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNotebookInstanceLifecycleConfigCommandOutput) => void): void;
628
+ /**
629
+ * @see {@link CreateOptimizationJobCommand}
630
+ */
631
+ createOptimizationJob(args: CreateOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateOptimizationJobCommandOutput>;
632
+ createOptimizationJob(args: CreateOptimizationJobCommandInput, cb: (err: any, data?: CreateOptimizationJobCommandOutput) => void): void;
633
+ createOptimizationJob(args: CreateOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOptimizationJobCommandOutput) => void): void;
623
634
  /**
624
635
  * @see {@link CreatePipelineCommand}
625
636
  */
@@ -957,6 +968,12 @@ export interface SageMaker {
957
968
  deleteNotebookInstanceLifecycleConfig(args: DeleteNotebookInstanceLifecycleConfigCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNotebookInstanceLifecycleConfigCommandOutput>;
958
969
  deleteNotebookInstanceLifecycleConfig(args: DeleteNotebookInstanceLifecycleConfigCommandInput, cb: (err: any, data?: DeleteNotebookInstanceLifecycleConfigCommandOutput) => void): void;
959
970
  deleteNotebookInstanceLifecycleConfig(args: DeleteNotebookInstanceLifecycleConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNotebookInstanceLifecycleConfigCommandOutput) => void): void;
971
+ /**
972
+ * @see {@link DeleteOptimizationJobCommand}
973
+ */
974
+ deleteOptimizationJob(args: DeleteOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<DeleteOptimizationJobCommandOutput>;
975
+ deleteOptimizationJob(args: DeleteOptimizationJobCommandInput, cb: (err: any, data?: DeleteOptimizationJobCommandOutput) => void): void;
976
+ deleteOptimizationJob(args: DeleteOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOptimizationJobCommandOutput) => void): void;
960
977
  /**
961
978
  * @see {@link DeletePipelineCommand}
962
979
  */
@@ -1305,6 +1322,12 @@ export interface SageMaker {
1305
1322
  describeNotebookInstanceLifecycleConfig(args: DescribeNotebookInstanceLifecycleConfigCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNotebookInstanceLifecycleConfigCommandOutput>;
1306
1323
  describeNotebookInstanceLifecycleConfig(args: DescribeNotebookInstanceLifecycleConfigCommandInput, cb: (err: any, data?: DescribeNotebookInstanceLifecycleConfigCommandOutput) => void): void;
1307
1324
  describeNotebookInstanceLifecycleConfig(args: DescribeNotebookInstanceLifecycleConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNotebookInstanceLifecycleConfigCommandOutput) => void): void;
1325
+ /**
1326
+ * @see {@link DescribeOptimizationJobCommand}
1327
+ */
1328
+ describeOptimizationJob(args: DescribeOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeOptimizationJobCommandOutput>;
1329
+ describeOptimizationJob(args: DescribeOptimizationJobCommandInput, cb: (err: any, data?: DescribeOptimizationJobCommandOutput) => void): void;
1330
+ describeOptimizationJob(args: DescribeOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeOptimizationJobCommandOutput) => void): void;
1308
1331
  /**
1309
1332
  * @see {@link DescribePipelineCommand}
1310
1333
  */
@@ -1839,6 +1862,13 @@ export interface SageMaker {
1839
1862
  listNotebookInstances(args: ListNotebookInstancesCommandInput, options?: __HttpHandlerOptions): Promise<ListNotebookInstancesCommandOutput>;
1840
1863
  listNotebookInstances(args: ListNotebookInstancesCommandInput, cb: (err: any, data?: ListNotebookInstancesCommandOutput) => void): void;
1841
1864
  listNotebookInstances(args: ListNotebookInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotebookInstancesCommandOutput) => void): void;
1865
+ /**
1866
+ * @see {@link ListOptimizationJobsCommand}
1867
+ */
1868
+ listOptimizationJobs(): Promise<ListOptimizationJobsCommandOutput>;
1869
+ listOptimizationJobs(args: ListOptimizationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListOptimizationJobsCommandOutput>;
1870
+ listOptimizationJobs(args: ListOptimizationJobsCommandInput, cb: (err: any, data?: ListOptimizationJobsCommandOutput) => void): void;
1871
+ listOptimizationJobs(args: ListOptimizationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOptimizationJobsCommandOutput) => void): void;
1842
1872
  /**
1843
1873
  * @see {@link ListPipelineExecutionsCommand}
1844
1874
  */
@@ -2125,6 +2155,12 @@ export interface SageMaker {
2125
2155
  stopNotebookInstance(args: StopNotebookInstanceCommandInput, options?: __HttpHandlerOptions): Promise<StopNotebookInstanceCommandOutput>;
2126
2156
  stopNotebookInstance(args: StopNotebookInstanceCommandInput, cb: (err: any, data?: StopNotebookInstanceCommandOutput) => void): void;
2127
2157
  stopNotebookInstance(args: StopNotebookInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopNotebookInstanceCommandOutput) => void): void;
2158
+ /**
2159
+ * @see {@link StopOptimizationJobCommand}
2160
+ */
2161
+ stopOptimizationJob(args: StopOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopOptimizationJobCommandOutput>;
2162
+ stopOptimizationJob(args: StopOptimizationJobCommandInput, cb: (err: any, data?: StopOptimizationJobCommandOutput) => void): void;
2163
+ stopOptimizationJob(args: StopOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopOptimizationJobCommandOutput) => void): void;
2128
2164
  /**
2129
2165
  * @see {@link StopPipelineExecutionCommand}
2130
2166
  */