Skip to content

Commit 032d94c

Browse files
author
awstools
committed
feat(client-sagemaker): Removed deprecated enum values and updated API documentation.
1 parent b7bcec5 commit 032d94c

File tree

5 files changed

+22
-36
lines changed

5 files changed

+22
-36
lines changed

clients/client-sagemaker/src/commands/CreateFlowDefinitionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface CreateFlowDefinitionCommandOutput extends CreateFlowDefinitionR
3737
* const input = { // CreateFlowDefinitionRequest
3838
* FlowDefinitionName: "STRING_VALUE", // required
3939
* HumanLoopRequestSource: { // HumanLoopRequestSource
40-
* AwsManagedHumanLoopRequestSource: "AWS/Rekognition/DetectModerationLabels/Image/V3" || "AWS/Textract/AnalyzeDocument/Forms/V1" || "AWS/Textract/AnalyzeExpense" || "AWS/Handshake/VerifyIdentity" || "AWS/Bedrock/ModelEvaluation", // required
40+
* AwsManagedHumanLoopRequestSource: "AWS/Rekognition/DetectModerationLabels/Image/V3" || "AWS/Textract/AnalyzeDocument/Forms/V1", // required
4141
* },
4242
* HumanLoopActivationConfig: { // HumanLoopActivationConfig
4343
* HumanLoopActivationConditionsConfig: { // HumanLoopActivationConditionsConfig

clients/client-sagemaker/src/commands/DescribeFlowDefinitionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface DescribeFlowDefinitionCommandOutput extends DescribeFlowDefinit
4545
* // FlowDefinitionStatus: "Initializing" || "Active" || "Failed" || "Deleting", // required
4646
* // CreationTime: new Date("TIMESTAMP"), // required
4747
* // HumanLoopRequestSource: { // HumanLoopRequestSource
48-
* // AwsManagedHumanLoopRequestSource: "AWS/Rekognition/DetectModerationLabels/Image/V3" || "AWS/Textract/AnalyzeDocument/Forms/V1" || "AWS/Textract/AnalyzeExpense" || "AWS/Handshake/VerifyIdentity" || "AWS/Bedrock/ModelEvaluation", // required
48+
* // AwsManagedHumanLoopRequestSource: "AWS/Rekognition/DetectModerationLabels/Image/V3" || "AWS/Textract/AnalyzeDocument/Forms/V1", // required
4949
* // },
5050
* // HumanLoopActivationConfig: { // HumanLoopActivationConfig
5151
* // HumanLoopActivationConditionsConfig: { // HumanLoopActivationConditionsConfig

clients/client-sagemaker/src/models/models_0.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7206,11 +7206,8 @@ export interface Autotune {
72067206
* @enum
72077207
*/
72087208
export const AwsManagedHumanLoopRequestSource = {
7209-
BEDROCK_MODEL_EVALUATION: "AWS/Bedrock/ModelEvaluation",
7210-
HANDSHAKE_VERIFY_IDENTITY: "AWS/Handshake/VerifyIdentity",
72117209
REKOGNITION_DETECT_MODERATION_LABELS_IMAGE_V3: "AWS/Rekognition/DetectModerationLabels/Image/V3",
72127210
TEXTRACT_ANALYZE_DOCUMENT_FORMS_V1: "AWS/Textract/AnalyzeDocument/Forms/V1",
7213-
TEXTRACT_ANALYZE_EXPENSE: "AWS/Textract/AnalyzeExpense",
72147211
} as const;
72157212

72167213
/**
@@ -8810,19 +8807,26 @@ export const ClusterInstanceType = {
88108807
export type ClusterInstanceType = (typeof ClusterInstanceType)[keyof typeof ClusterInstanceType];
88118808

88128809
/**
8813-
* <p>The LifeCycle configuration for a SageMaker HyperPod cluster.</p>
8810+
* <p>The lifecycle configuration for a SageMaker HyperPod cluster.</p>
88148811
* @public
88158812
*/
88168813
export interface ClusterLifeCycleConfig {
88178814
/**
8818-
* <p>An Amazon S3 bucket path where your LifeCycle scripts are stored.</p>
8815+
* <p>An Amazon S3 bucket path where your lifecycle scripts are stored.</p>
8816+
* <important>
8817+
* <p>Make sure that the S3 bucket path starts with <code>s3://sagemaker-</code>. The
8818+
* <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod">IAM role for SageMaker HyperPod</a> has the managed <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html">
8819+
* <code>AmazonSageMakerClusterInstanceRolePolicy</code>
8820+
* </a> attached, which
8821+
* allows access to S3 buckets with the specific prefix <code>sagemaker-</code>.</p>
8822+
* </important>
88198823
* @public
88208824
*/
88218825
SourceS3Uri: string | undefined;
88228826

88238827
/**
8824-
* <p>The directory of the LifeCycle script under <code>SourceS3Uri</code>. This LifeCycle
8825-
* script runs during cluster creation.</p>
8828+
* <p>The file name of the entrypoint script of lifecycle scripts under
8829+
* <code>SourceS3Uri</code>. This entrypoint script runs during cluster creation.</p>
88268830
* @public
88278831
*/
88288832
OnCreate: string | undefined;

clients/client-sagemaker/src/models/models_1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,7 +2816,7 @@ export interface FeatureDefinition {
28162816
* <p>The name:</p>
28172817
* <ul>
28182818
* <li>
2819-
* <p>Must start and end with an alphanumeric character.</p>
2819+
* <p>Must start with an alphanumeric character.</p>
28202820
* </li>
28212821
* <li>
28222822
* <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not
@@ -3233,7 +3233,7 @@ export interface CreateFeatureGroupRequest {
32333233
* <p>The name:</p>
32343234
* <ul>
32353235
* <li>
3236-
* <p>Must start and end with an alphanumeric character.</p>
3236+
* <p>Must start with an alphanumeric character.</p>
32373237
* </li>
32383238
* <li>
32393239
* <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not
@@ -3255,7 +3255,7 @@ export interface CreateFeatureGroupRequest {
32553255
* <p>This name:</p>
32563256
* <ul>
32573257
* <li>
3258-
* <p>Must start and end with an alphanumeric character.</p>
3258+
* <p>Must start with an alphanumeric character.</p>
32593259
* </li>
32603260
* <li>
32613261
* <p>Can only contains alphanumeric characters, hyphens, underscores. Spaces are not

codegen/sdk-codegen/aws-models/sagemaker.json

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4356,24 +4356,6 @@
43564356
"traits": {
43574357
"smithy.api#enumValue": "AWS/Textract/AnalyzeDocument/Forms/V1"
43584358
}
4359-
},
4360-
"TEXTRACT_ANALYZE_EXPENSE": {
4361-
"target": "smithy.api#Unit",
4362-
"traits": {
4363-
"smithy.api#enumValue": "AWS/Textract/AnalyzeExpense"
4364-
}
4365-
},
4366-
"HANDSHAKE_VERIFY_IDENTITY": {
4367-
"target": "smithy.api#Unit",
4368-
"traits": {
4369-
"smithy.api#enumValue": "AWS/Handshake/VerifyIdentity"
4370-
}
4371-
},
4372-
"BEDROCK_MODEL_EVALUATION": {
4373-
"target": "smithy.api#Unit",
4374-
"traits": {
4375-
"smithy.api#enumValue": "AWS/Bedrock/ModelEvaluation"
4376-
}
43774359
}
43784360
}
43794361
},
@@ -6814,21 +6796,21 @@
68146796
"target": "com.amazonaws.sagemaker#S3Uri",
68156797
"traits": {
68166798
"smithy.api#clientOptional": {},
6817-
"smithy.api#documentation": "<p>An Amazon S3 bucket path where your LifeCycle scripts are stored.</p>",
6799+
"smithy.api#documentation": "<p>An Amazon S3 bucket path where your lifecycle scripts are stored.</p>\n <important>\n <p>Make sure that the S3 bucket path starts with <code>s3://sagemaker-</code>. The\n <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-prerequisites.html#sagemaker-hyperpod-prerequisites-iam-role-for-hyperpod\">IAM role for SageMaker HyperPod</a> has the managed <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/security-iam-awsmanpol-cluster.html\">\n <code>AmazonSageMakerClusterInstanceRolePolicy</code>\n </a> attached, which\n allows access to S3 buckets with the specific prefix <code>sagemaker-</code>.</p>\n </important>",
68186800
"smithy.api#required": {}
68196801
}
68206802
},
68216803
"OnCreate": {
68226804
"target": "com.amazonaws.sagemaker#ClusterLifeCycleConfigFileName",
68236805
"traits": {
68246806
"smithy.api#clientOptional": {},
6825-
"smithy.api#documentation": "<p>The directory of the LifeCycle script under <code>SourceS3Uri</code>. This LifeCycle\n script runs during cluster creation.</p>",
6807+
"smithy.api#documentation": "<p>The file name of the entrypoint script of lifecycle scripts under\n <code>SourceS3Uri</code>. This entrypoint script runs during cluster creation.</p>",
68266808
"smithy.api#required": {}
68276809
}
68286810
}
68296811
},
68306812
"traits": {
6831-
"smithy.api#documentation": "<p>The LifeCycle configuration for a SageMaker HyperPod cluster.</p>"
6813+
"smithy.api#documentation": "<p>The lifecycle configuration for a SageMaker HyperPod cluster.</p>"
68326814
}
68336815
},
68346816
"com.amazonaws.sagemaker#ClusterLifeCycleConfigFileName": {
@@ -9899,15 +9881,15 @@
98999881
"target": "com.amazonaws.sagemaker#FeatureGroupName",
99009882
"traits": {
99019883
"smithy.api#clientOptional": {},
9902-
"smithy.api#documentation": "<p>The name of the <code>FeatureGroup</code>. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.</p>\n <p>The name:</p>\n <ul>\n <li>\n <p>Must start and end with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not\n allowed.</p>\n </li>\n </ul>",
9884+
"smithy.api#documentation": "<p>The name of the <code>FeatureGroup</code>. The name must be unique within an Amazon Web Services Region in an Amazon Web Services account.</p>\n <p>The name:</p>\n <ul>\n <li>\n <p>Must start with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not\n allowed.</p>\n </li>\n </ul>",
99039885
"smithy.api#required": {}
99049886
}
99059887
},
99069888
"RecordIdentifierFeatureName": {
99079889
"target": "com.amazonaws.sagemaker#FeatureName",
99089890
"traits": {
99099891
"smithy.api#clientOptional": {},
9910-
"smithy.api#documentation": "<p>The name of the <code>Feature</code> whose value uniquely identifies a\n <code>Record</code> defined in the <code>FeatureStore</code>. Only the latest record per\n identifier value will be stored in the <code>OnlineStore</code>.\n <code>RecordIdentifierFeatureName</code> must be one of feature definitions'\n names.</p>\n <p>You use the <code>RecordIdentifierFeatureName</code> to access data in a\n <code>FeatureStore</code>.</p>\n <p>This name:</p>\n <ul>\n <li>\n <p>Must start and end with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only contains alphanumeric characters, hyphens, underscores. Spaces are not\n allowed. </p>\n </li>\n </ul>",
9892+
"smithy.api#documentation": "<p>The name of the <code>Feature</code> whose value uniquely identifies a\n <code>Record</code> defined in the <code>FeatureStore</code>. Only the latest record per\n identifier value will be stored in the <code>OnlineStore</code>.\n <code>RecordIdentifierFeatureName</code> must be one of feature definitions'\n names.</p>\n <p>You use the <code>RecordIdentifierFeatureName</code> to access data in a\n <code>FeatureStore</code>.</p>\n <p>This name:</p>\n <ul>\n <li>\n <p>Must start with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only contains alphanumeric characters, hyphens, underscores. Spaces are not\n allowed. </p>\n </li>\n </ul>",
99119893
"smithy.api#required": {}
99129894
}
99139895
},
@@ -27115,7 +27097,7 @@
2711527097
"target": "com.amazonaws.sagemaker#FeatureName",
2711627098
"traits": {
2711727099
"smithy.api#clientOptional": {},
27118-
"smithy.api#documentation": "<p>The name of a feature. The type must be a string. <code>FeatureName</code> cannot be any\n of the following: <code>is_deleted</code>, <code>write_time</code>,\n <code>api_invocation_time</code>.</p>\n <p>The name:</p>\n <ul>\n <li>\n <p>Must start and end with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not\n allowed.</p>\n </li>\n </ul>",
27100+
"smithy.api#documentation": "<p>The name of a feature. The type must be a string. <code>FeatureName</code> cannot be any\n of the following: <code>is_deleted</code>, <code>write_time</code>,\n <code>api_invocation_time</code>.</p>\n <p>The name:</p>\n <ul>\n <li>\n <p>Must start with an alphanumeric character.</p>\n </li>\n <li>\n <p>Can only include alphanumeric characters, underscores, and hyphens. Spaces are not\n allowed.</p>\n </li>\n </ul>",
2711927101
"smithy.api#required": {}
2712027102
}
2712127103
},

0 commit comments

Comments
 (0)