@aws-sdk/client-sagemaker 3.600.0 → 3.602.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 (64) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +121 -23
  3. package/dist-es/SageMaker.js +4 -0
  4. package/dist-es/commands/CreateHubContentReferenceCommand.js +24 -0
  5. package/dist-es/commands/DeleteHubContentReferenceCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_2.js +5 -15
  8. package/dist-es/models/models_3.js +15 -4
  9. package/dist-es/models/models_4.js +4 -0
  10. package/dist-es/protocols/Aws_json1_1.js +53 -0
  11. package/dist-types/SageMaker.d.ts +14 -0
  12. package/dist-types/SageMakerClient.d.ts +4 -2
  13. package/dist-types/commands/BatchDescribeModelPackageCommand.d.ts +3 -0
  14. package/dist-types/commands/CreateAlgorithmCommand.d.ts +3 -0
  15. package/dist-types/commands/CreateCodeRepositoryCommand.d.ts +2 -1
  16. package/dist-types/commands/CreateHubCommand.d.ts +0 -3
  17. package/dist-types/commands/CreateHubContentReferenceCommand.d.ts +80 -0
  18. package/dist-types/commands/CreateModelCommand.d.ts +6 -0
  19. package/dist-types/commands/CreateModelPackageCommand.d.ts +9 -0
  20. package/dist-types/commands/DeleteHubCommand.d.ts +0 -3
  21. package/dist-types/commands/DeleteHubContentCommand.d.ts +1 -4
  22. package/dist-types/commands/DeleteHubContentReferenceCommand.d.ts +63 -0
  23. package/dist-types/commands/DescribeAlgorithmCommand.d.ts +3 -0
  24. package/dist-types/commands/DescribeHubCommand.d.ts +1 -4
  25. package/dist-types/commands/DescribeHubContentCommand.d.ts +5 -5
  26. package/dist-types/commands/DescribeInferenceRecommendationsJobCommand.d.ts +4 -4
  27. package/dist-types/commands/DescribeModelCommand.d.ts +6 -0
  28. package/dist-types/commands/DescribeModelPackageCommand.d.ts +9 -0
  29. package/dist-types/commands/DescribeMonitoringScheduleCommand.d.ts +2 -1
  30. package/dist-types/commands/DescribeNotebookInstanceCommand.d.ts +1 -1
  31. package/dist-types/commands/ImportHubContentCommand.d.ts +1 -4
  32. package/dist-types/commands/ListHubContentVersionsCommand.d.ts +5 -5
  33. package/dist-types/commands/ListHubContentsCommand.d.ts +5 -5
  34. package/dist-types/commands/ListHubsCommand.d.ts +0 -3
  35. package/dist-types/commands/ListInferenceRecommendationsJobStepsCommand.d.ts +4 -4
  36. package/dist-types/commands/ListMonitoringAlertHistoryCommand.d.ts +1 -1
  37. package/dist-types/commands/ListMonitoringAlertsCommand.d.ts +1 -2
  38. package/dist-types/commands/SearchCommand.d.ts +9 -0
  39. package/dist-types/commands/UpdateHubCommand.d.ts +0 -3
  40. package/dist-types/commands/UpdateModelPackageCommand.d.ts +6 -0
  41. package/dist-types/commands/index.d.ts +2 -0
  42. package/dist-types/models/models_0.d.ts +16 -10
  43. package/dist-types/models/models_1.d.ts +55 -36
  44. package/dist-types/models/models_2.d.ts +90 -272
  45. package/dist-types/models/models_3.d.ts +283 -133
  46. package/dist-types/models/models_4.d.ts +133 -2
  47. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  48. package/dist-types/ts3.4/SageMaker.d.ts +34 -0
  49. package/dist-types/ts3.4/SageMakerClient.d.ts +12 -0
  50. package/dist-types/ts3.4/commands/CreateCodeRepositoryCommand.d.ts +2 -4
  51. package/dist-types/ts3.4/commands/CreateHubContentReferenceCommand.d.ts +40 -0
  52. package/dist-types/ts3.4/commands/DeleteHubContentReferenceCommand.d.ts +36 -0
  53. package/dist-types/ts3.4/commands/DescribeMonitoringScheduleCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/DescribeNotebookInstanceCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/ListMonitoringAlertHistoryCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/ListMonitoringAlertsCommand.d.ts +4 -2
  57. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +4 -3
  59. package/dist-types/ts3.4/models/models_1.d.ts +14 -9
  60. package/dist-types/ts3.4/models/models_2.d.ts +29 -72
  61. package/dist-types/ts3.4/models/models_3.d.ts +68 -34
  62. package/dist-types/ts3.4/models/models_4.d.ts +35 -3
  63. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  64. package/package.json +1 -1
@@ -28,9 +28,6 @@ declare const ListHubContentVersionsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>List hub content versions.</p>
31
- * <note>
32
- * <p>Hub APIs are only callable through SageMaker Studio.</p>
33
- * </note>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -39,7 +36,7 @@ declare const ListHubContentVersionsCommand_base: {
39
36
  * const client = new SageMakerClient(config);
40
37
  * const input = { // ListHubContentVersionsRequest
41
38
  * HubName: "STRING_VALUE", // required
42
- * HubContentType: "Model" || "Notebook", // required
39
+ * HubContentType: "Model" || "Notebook" || "ModelReference", // required
43
40
  * HubContentName: "STRING_VALUE", // required
44
41
  * MinVersion: "STRING_VALUE",
45
42
  * MaxSchemaVersion: "STRING_VALUE",
@@ -57,16 +54,19 @@ declare const ListHubContentVersionsCommand_base: {
57
54
  * // { // HubContentInfo
58
55
  * // HubContentName: "STRING_VALUE", // required
59
56
  * // HubContentArn: "STRING_VALUE", // required
57
+ * // SageMakerPublicHubContentArn: "STRING_VALUE",
60
58
  * // HubContentVersion: "STRING_VALUE", // required
61
- * // HubContentType: "Model" || "Notebook", // required
59
+ * // HubContentType: "Model" || "Notebook" || "ModelReference", // required
62
60
  * // DocumentSchemaVersion: "STRING_VALUE", // required
63
61
  * // HubContentDisplayName: "STRING_VALUE",
64
62
  * // HubContentDescription: "STRING_VALUE",
63
+ * // SupportStatus: "Supported" || "Deprecated",
65
64
  * // HubContentSearchKeywords: [ // HubContentSearchKeywordList
66
65
  * // "STRING_VALUE",
67
66
  * // ],
68
67
  * // HubContentStatus: "Available" || "Importing" || "Deleting" || "ImportFailed" || "DeleteFailed", // required
69
68
  * // CreationTime: new Date("TIMESTAMP"), // required
69
+ * // OriginalCreationTime: new Date("TIMESTAMP"),
70
70
  * // },
71
71
  * // ],
72
72
  * // NextToken: "STRING_VALUE",
@@ -28,9 +28,6 @@ declare const ListHubContentsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>List the contents of a hub.</p>
31
- * <note>
32
- * <p>Hub APIs are only callable through SageMaker Studio.</p>
33
- * </note>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -39,7 +36,7 @@ declare const ListHubContentsCommand_base: {
39
36
  * const client = new SageMakerClient(config);
40
37
  * const input = { // ListHubContentsRequest
41
38
  * HubName: "STRING_VALUE", // required
42
- * HubContentType: "Model" || "Notebook", // required
39
+ * HubContentType: "Model" || "Notebook" || "ModelReference", // required
43
40
  * NameContains: "STRING_VALUE",
44
41
  * MaxSchemaVersion: "STRING_VALUE",
45
42
  * CreationTimeBefore: new Date("TIMESTAMP"),
@@ -56,16 +53,19 @@ declare const ListHubContentsCommand_base: {
56
53
  * // { // HubContentInfo
57
54
  * // HubContentName: "STRING_VALUE", // required
58
55
  * // HubContentArn: "STRING_VALUE", // required
56
+ * // SageMakerPublicHubContentArn: "STRING_VALUE",
59
57
  * // HubContentVersion: "STRING_VALUE", // required
60
- * // HubContentType: "Model" || "Notebook", // required
58
+ * // HubContentType: "Model" || "Notebook" || "ModelReference", // required
61
59
  * // DocumentSchemaVersion: "STRING_VALUE", // required
62
60
  * // HubContentDisplayName: "STRING_VALUE",
63
61
  * // HubContentDescription: "STRING_VALUE",
62
+ * // SupportStatus: "Supported" || "Deprecated",
64
63
  * // HubContentSearchKeywords: [ // HubContentSearchKeywordList
65
64
  * // "STRING_VALUE",
66
65
  * // ],
67
66
  * // HubContentStatus: "Available" || "Importing" || "Deleting" || "ImportFailed" || "DeleteFailed", // required
68
67
  * // CreationTime: new Date("TIMESTAMP"), // required
68
+ * // OriginalCreationTime: new Date("TIMESTAMP"),
69
69
  * // },
70
70
  * // ],
71
71
  * // NextToken: "STRING_VALUE",
@@ -28,9 +28,6 @@ declare const ListHubsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>List all existing hubs.</p>
31
- * <note>
32
- * <p>Hub APIs are only callable through SageMaker Studio.</p>
33
- * </note>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -52,10 +52,10 @@ declare const ListInferenceRecommendationsJobStepsCommand_base: {
52
52
  * // Status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING" || "DELETED", // required
53
53
  * // InferenceBenchmark: { // RecommendationJobInferenceBenchmark
54
54
  * // Metrics: { // RecommendationMetrics
55
- * // CostPerHour: Number("float"), // required
56
- * // CostPerInference: Number("float"), // required
57
- * // MaxInvocations: Number("int"), // required
58
- * // ModelLatency: Number("int"), // required
55
+ * // CostPerHour: Number("float"),
56
+ * // CostPerInference: Number("float"),
57
+ * // MaxInvocations: Number("int"),
58
+ * // ModelLatency: Number("int"),
59
59
  * // CpuUtilization: Number("float"),
60
60
  * // MemoryUtilization: Number("float"),
61
61
  * // ModelSetupTime: Number("int"),
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListMonitoringAlertHistoryRequest, ListMonitoringAlertHistoryResponse } from "../models/models_3";
3
+ import { ListMonitoringAlertHistoryRequest, ListMonitoringAlertHistoryResponse } from "../models/models_4";
4
4
  import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
5
5
  /**
6
6
  * @public
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListMonitoringAlertsRequest } from "../models/models_3";
4
- import { ListMonitoringAlertsResponse } from "../models/models_4";
3
+ import { ListMonitoringAlertsRequest, ListMonitoringAlertsResponse } from "../models/models_4";
5
4
  import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
6
5
  /**
7
6
  * @public
@@ -1095,6 +1095,9 @@ declare const SearchCommand_base: {
1095
1095
  * // ModelAccessConfig: { // ModelAccessConfig
1096
1096
  * // AcceptEula: true || false, // required
1097
1097
  * // },
1098
+ * // HubAccessConfig: { // InferenceHubAccessConfig
1099
+ * // HubContentArn: "STRING_VALUE", // required
1100
+ * // },
1098
1101
  * // },
1099
1102
  * // },
1100
1103
  * // ProductId: "STRING_VALUE",
@@ -1139,6 +1142,9 @@ declare const SearchCommand_base: {
1139
1142
  * // ModelAccessConfig: {
1140
1143
  * // AcceptEula: true || false, // required
1141
1144
  * // },
1145
+ * // HubAccessConfig: {
1146
+ * // HubContentArn: "STRING_VALUE", // required
1147
+ * // },
1142
1148
  * // },
1143
1149
  * // },
1144
1150
  * // AlgorithmName: "STRING_VALUE", // required
@@ -1271,6 +1277,9 @@ declare const SearchCommand_base: {
1271
1277
  * // ModelAccessConfig: {
1272
1278
  * // AcceptEula: true || false, // required
1273
1279
  * // },
1280
+ * // HubAccessConfig: {
1281
+ * // HubContentArn: "STRING_VALUE", // required
1282
+ * // },
1274
1283
  * // },
1275
1284
  * // },
1276
1285
  * // ProductId: "STRING_VALUE",
@@ -28,9 +28,6 @@ declare const UpdateHubCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Update a hub.</p>
31
- * <note>
32
- * <p>Hub APIs are only callable through SageMaker Studio.</p>
33
- * </note>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -62,6 +62,9 @@ declare const UpdateModelPackageCommand_base: {
62
62
  * ModelAccessConfig: { // ModelAccessConfig
63
63
  * AcceptEula: true || false, // required
64
64
  * },
65
+ * HubAccessConfig: { // InferenceHubAccessConfig
66
+ * HubContentArn: "STRING_VALUE", // required
67
+ * },
65
68
  * },
66
69
  * },
67
70
  * ProductId: "STRING_VALUE",
@@ -110,6 +113,9 @@ declare const UpdateModelPackageCommand_base: {
110
113
  * ModelAccessConfig: {
111
114
  * AcceptEula: true || false, // required
112
115
  * },
116
+ * HubAccessConfig: {
117
+ * HubContentArn: "STRING_VALUE", // required
118
+ * },
113
119
  * },
114
120
  * },
115
121
  * ProductId: "STRING_VALUE",
@@ -25,6 +25,7 @@ export * from "./CreateExperimentCommand";
25
25
  export * from "./CreateFeatureGroupCommand";
26
26
  export * from "./CreateFlowDefinitionCommand";
27
27
  export * from "./CreateHubCommand";
28
+ export * from "./CreateHubContentReferenceCommand";
28
29
  export * from "./CreateHumanTaskUiCommand";
29
30
  export * from "./CreateHyperParameterTuningJobCommand";
30
31
  export * from "./CreateImageCommand";
@@ -82,6 +83,7 @@ export * from "./DeleteFeatureGroupCommand";
82
83
  export * from "./DeleteFlowDefinitionCommand";
83
84
  export * from "./DeleteHubCommand";
84
85
  export * from "./DeleteHubContentCommand";
86
+ export * from "./DeleteHubContentReferenceCommand";
85
87
  export * from "./DeleteHumanTaskUiCommand";
86
88
  export * from "./DeleteHyperParameterTuningJobCommand";
87
89
  export * from "./DeleteImageCommand";
@@ -239,6 +239,17 @@ export declare const ModelCompressionType: {
239
239
  * @public
240
240
  */
241
241
  export type ModelCompressionType = (typeof ModelCompressionType)[keyof typeof ModelCompressionType];
242
+ /**
243
+ * <p>Configuration information specifying which hub contents have accessible deployment options.</p>
244
+ * @public
245
+ */
246
+ export interface InferenceHubAccessConfig {
247
+ /**
248
+ * <p>The ARN of the hub content for which deployment access is allowed.</p>
249
+ * @public
250
+ */
251
+ HubContentArn: string | undefined;
252
+ }
242
253
  /**
243
254
  * <p>The access configuration file to control access to the ML model. You can explicitly accept the model
244
255
  * end-user license agreement (EULA) within the <code>ModelAccessConfig</code>.</p>
@@ -378,6 +389,11 @@ export interface S3ModelDataSource {
378
389
  * @public
379
390
  */
380
391
  ModelAccessConfig?: ModelAccessConfig;
392
+ /**
393
+ * <p>Configuration information for hub access.</p>
394
+ * @public
395
+ */
396
+ HubAccessConfig?: InferenceHubAccessConfig;
381
397
  }
382
398
  /**
383
399
  * <p>Specifies the location of ML model data to deploy. If specified, you must specify one
@@ -10357,13 +10373,3 @@ export interface CreateCodeRepositoryInput {
10357
10373
  */
10358
10374
  Tags?: Tag[];
10359
10375
  }
10360
- /**
10361
- * @public
10362
- */
10363
- export interface CreateCodeRepositoryOutput {
10364
- /**
10365
- * <p>The Amazon Resource Name (ARN) of the new repository.</p>
10366
- * @public
10367
- */
10368
- CodeRepositoryArn: string | undefined;
10369
- }
@@ -1,5 +1,15 @@
1
1
  import { LazyJsonString as __LazyJsonString } from "@smithy/smithy-client";
2
2
  import { AdditionalInferenceSpecificationDefinition, AnnotationConsolidationConfig, AppNetworkAccessType, AppSecurityGroupManagement, AppSpecification, AsyncInferenceConfig, AthenaDatasetDefinition, AuthMode, AutoParameter, AutoRollbackConfig, Autotune, AwsManagedHumanLoopRequestSource, BatchTransformInput, BestObjectiveNotImproving, Bias, BlueGreenUpdatePolicy, CanvasAppSettings, CapacitySize, CaptureContentTypeHeader, CaptureOption, CategoricalParameter, CategoricalParameterRange, Channel, CheckpointConfig, ClarifyExplainerConfig, CodeEditorAppSettings, CodeRepository, CollectionConfig, CollectionType, ContainerDefinition, ContentClassifier, ContextSource, ContinuousParameterRange, ConvergenceDetected, CustomImage, FeatureStatus, HyperParameterScalingType, HyperParameterTuningJobObjective, InferenceSpecification, MetadataProperties, MetricDefinition, MetricsSource, ModelApprovalStatus, ModelDataSource, OutputDataConfig, ProcessingS3DataDistributionType, ProcessingS3InputMode, ProductionVariantInstanceType, ResourceConfig, ResourceSpec, StoppingCondition, Tag, TargetDevice, TargetPlatformAccelerator, TargetPlatformArch, TargetPlatformOs, TrainingInputMode, TrainingInstanceType, TransformJobDefinition, VpcConfig } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface CreateCodeRepositoryOutput {
7
+ /**
8
+ * <p>The Amazon Resource Name (ARN) of the new repository.</p>
9
+ * @public
10
+ */
11
+ CodeRepositoryArn: string | undefined;
12
+ }
3
13
  /**
4
14
  * @public
5
15
  * @enum
@@ -4385,6 +4395,51 @@ export interface CreateHubResponse {
4385
4395
  */
4386
4396
  HubArn: string | undefined;
4387
4397
  }
4398
+ /**
4399
+ * @public
4400
+ */
4401
+ export interface CreateHubContentReferenceRequest {
4402
+ /**
4403
+ * <p>The name of the hub to add the hub content reference to.</p>
4404
+ * @public
4405
+ */
4406
+ HubName: string | undefined;
4407
+ /**
4408
+ * <p>The ARN of the public hub content to reference.</p>
4409
+ * @public
4410
+ */
4411
+ SageMakerPublicHubContentArn: string | undefined;
4412
+ /**
4413
+ * <p>The name of the hub content to reference.</p>
4414
+ * @public
4415
+ */
4416
+ HubContentName?: string;
4417
+ /**
4418
+ * <p>The minimum version of the hub content to reference.</p>
4419
+ * @public
4420
+ */
4421
+ MinVersion?: string;
4422
+ /**
4423
+ * <p>Any tags associated with the hub content to reference.</p>
4424
+ * @public
4425
+ */
4426
+ Tags?: Tag[];
4427
+ }
4428
+ /**
4429
+ * @public
4430
+ */
4431
+ export interface CreateHubContentReferenceResponse {
4432
+ /**
4433
+ * <p>The ARN of the hub that the hub content reference was added to.</p>
4434
+ * @public
4435
+ */
4436
+ HubArn: string | undefined;
4437
+ /**
4438
+ * <p>The ARN of the hub content.</p>
4439
+ * @public
4440
+ */
4441
+ HubContentArn: string | undefined;
4442
+ }
4388
4443
  /**
4389
4444
  * <p>The Liquid template for the worker user interface.</p>
4390
4445
  * @public
@@ -11609,42 +11664,6 @@ export interface CreateProjectOutput {
11609
11664
  */
11610
11665
  ProjectId: string | undefined;
11611
11666
  }
11612
- /**
11613
- * <p>The collection of ownership settings for a space.</p>
11614
- * @public
11615
- */
11616
- export interface OwnershipSettings {
11617
- /**
11618
- * <p>The user profile who is the owner of the space.</p>
11619
- * @public
11620
- */
11621
- OwnerUserProfileName: string | undefined;
11622
- }
11623
- /**
11624
- * <p>The application settings for a Code Editor space.</p>
11625
- * @public
11626
- */
11627
- export interface SpaceCodeEditorAppSettings {
11628
- /**
11629
- * <p>Specifies the ARN's of a SageMaker image and SageMaker image version, and the instance type that
11630
- * the version runs on.</p>
11631
- * @public
11632
- */
11633
- DefaultResourceSpec?: ResourceSpec;
11634
- }
11635
- /**
11636
- * <p>A file system, created by you in Amazon EFS, that you assign to a user profile
11637
- * or space for an Amazon SageMaker Domain. Permitted users can access this file
11638
- * system in Amazon SageMaker Studio.</p>
11639
- * @public
11640
- */
11641
- export interface EFSFileSystem {
11642
- /**
11643
- * <p>The ID of your Amazon EFS file system.</p>
11644
- * @public
11645
- */
11646
- FileSystemId: string | undefined;
11647
- }
11648
11667
  /**
11649
11668
  * @internal
11650
11669
  */