diff --git a/clients/client-sagemaker/src/commands/CreateInferenceRecommendationsJobCommand.ts b/clients/client-sagemaker/src/commands/CreateInferenceRecommendationsJobCommand.ts index 418794f8ec73..ecbf2e55ce8f 100644 --- a/clients/client-sagemaker/src/commands/CreateInferenceRecommendationsJobCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateInferenceRecommendationsJobCommand.ts @@ -60,7 +60,7 @@ export interface CreateInferenceRecommendationsJobCommandOutput * ModelPackageVersionArn: "STRING_VALUE", * JobDurationInSeconds: Number("int"), * TrafficPattern: { // TrafficPattern - * TrafficType: "PHASES", + * TrafficType: "PHASES" || "STAIRS", * Phases: [ // Phases * { // Phase * InitialNumberOfUsers: Number("int"), @@ -68,6 +68,11 @@ export interface CreateInferenceRecommendationsJobCommandOutput * DurationInSeconds: Number("int"), * }, * ], + * Stairs: { // Stairs + * DurationInSeconds: Number("int"), + * NumberOfSteps: Number("int"), + * UsersPerStep: Number("int"), + * }, * }, * ResourceLimit: { // RecommendationJobResourceLimit * MaxNumberOfTests: Number("int"), @@ -137,6 +142,7 @@ export interface CreateInferenceRecommendationsJobCommandOutput * ValueInMilliseconds: Number("int"), * }, * ], + * FlatInvocations: "Continue" || "Stop", * }, * OutputConfig: { // RecommendationJobOutputConfig * KmsKeyId: "STRING_VALUE", diff --git a/clients/client-sagemaker/src/commands/DeleteHubCommand.ts b/clients/client-sagemaker/src/commands/DeleteHubCommand.ts index 2e1ef5e9e7df..8b2205f6ca36 100644 --- a/clients/client-sagemaker/src/commands/DeleteHubCommand.ts +++ b/clients/client-sagemaker/src/commands/DeleteHubCommand.ts @@ -13,7 +13,7 @@ import { SerdeContext as __SerdeContext, } from "@smithy/types"; -import { DeleteHubRequest } from "../models/models_1"; +import { DeleteHubRequest } from "../models/models_2"; import { de_DeleteHubCommand, se_DeleteHubCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/commands/DescribeInferenceRecommendationsJobCommand.ts b/clients/client-sagemaker/src/commands/DescribeInferenceRecommendationsJobCommand.ts index 92856acd21d7..5e8773f927bf 100644 --- a/clients/client-sagemaker/src/commands/DescribeInferenceRecommendationsJobCommand.ts +++ b/clients/client-sagemaker/src/commands/DescribeInferenceRecommendationsJobCommand.ts @@ -72,7 +72,7 @@ export interface DescribeInferenceRecommendationsJobCommandOutput * // ModelPackageVersionArn: "STRING_VALUE", * // JobDurationInSeconds: Number("int"), * // TrafficPattern: { // TrafficPattern - * // TrafficType: "PHASES", + * // TrafficType: "PHASES" || "STAIRS", * // Phases: [ // Phases * // { // Phase * // InitialNumberOfUsers: Number("int"), @@ -80,6 +80,11 @@ export interface DescribeInferenceRecommendationsJobCommandOutput * // DurationInSeconds: Number("int"), * // }, * // ], + * // Stairs: { // Stairs + * // DurationInSeconds: Number("int"), + * // NumberOfSteps: Number("int"), + * // UsersPerStep: Number("int"), + * // }, * // }, * // ResourceLimit: { // RecommendationJobResourceLimit * // MaxNumberOfTests: Number("int"), @@ -148,6 +153,7 @@ export interface DescribeInferenceRecommendationsJobCommandOutput * // ValueInMilliseconds: Number("int"), * // }, * // ], + * // FlatInvocations: "Continue" || "Stop", * // }, * // InferenceRecommendations: [ // InferenceRecommendations * // { // InferenceRecommendation diff --git a/clients/client-sagemaker/src/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts b/clients/client-sagemaker/src/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts index 35a194606b97..e6bcad0c59c7 100644 --- a/clients/client-sagemaker/src/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts +++ b/clients/client-sagemaker/src/commands/GetSagemakerServicecatalogPortfolioStatusCommand.ts @@ -13,8 +13,10 @@ import { SerdeContext as __SerdeContext, } from "@smithy/types"; -import { GetSagemakerServicecatalogPortfolioStatusInput } from "../models/models_2"; -import { GetSagemakerServicecatalogPortfolioStatusOutput } from "../models/models_3"; +import { + GetSagemakerServicecatalogPortfolioStatusInput, + GetSagemakerServicecatalogPortfolioStatusOutput, +} from "../models/models_3"; import { de_GetSagemakerServicecatalogPortfolioStatusCommand, se_GetSagemakerServicecatalogPortfolioStatusCommand, diff --git a/clients/client-sagemaker/src/commands/RenderUiTemplateCommand.ts b/clients/client-sagemaker/src/commands/RenderUiTemplateCommand.ts index ccc1ea0b013b..d5aa97959250 100644 --- a/clients/client-sagemaker/src/commands/RenderUiTemplateCommand.ts +++ b/clients/client-sagemaker/src/commands/RenderUiTemplateCommand.ts @@ -13,7 +13,8 @@ import { SerdeContext as __SerdeContext, } from "@smithy/types"; -import { RenderUiTemplateRequest, RenderUiTemplateResponse } from "../models/models_3"; +import { RenderUiTemplateRequest } from "../models/models_3"; +import { RenderUiTemplateResponse } from "../models/models_4"; import { de_RenderUiTemplateCommand, se_RenderUiTemplateCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/endpoint/ruleset.ts b/clients/client-sagemaker/src/endpoint/ruleset.ts index b29184648544..d861759cbc87 100644 --- a/clients/client-sagemaker/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker/src/endpoint/ruleset.ts @@ -29,5 +29,5 @@ p={"url":"https://api-fips.sagemaker.{Region}.amazonaws.com","properties":{},"he q=[j], r=[k], s=[{[w]:"Region"}]; -const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[u]:a,[v]:[i]}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{type:b,rules:[{conditions:[{[u]:a,[v]:s}],type:b,rules:[{conditions:[{[u]:"aws.partition",[v]:s,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[u]:f,[v]:["aws",o]}],endpoint:p,type:d},{conditions:[{[u]:f,[v]:["aws-us-gov",o]}],endpoint:p,type:d},{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]}; +const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[u]:a,[v]:[i]}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]},{conditions:[{[u]:a,[v]:s}],type:b,rules:[{conditions:[{[u]:"aws.partition",[v]:s,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[m],type:b,rules:[{conditions:[{[u]:f,[v]:["aws",o]}],endpoint:p,type:d},{conditions:[{[u]:f,[v]:["aws-us-gov",o]}],endpoint:p,type:d},{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker/src/models/models_0.ts b/clients/client-sagemaker/src/models/models_0.ts index bd99cc4974f5..68c2558b9133 100644 --- a/clients/client-sagemaker/src/models/models_0.ts +++ b/clients/client-sagemaker/src/models/models_0.ts @@ -6864,7 +6864,7 @@ export interface BatchTransformInput { /** * @public - *

If specified, monitoring jobs substract this time from the end time. For information + *

If specified, monitoring jobs subtract this time from the end time. For information * about using offsets for scheduling monitoring jobs, see Schedule Model * Quality Monitoring Jobs.

*/ diff --git a/clients/client-sagemaker/src/models/models_1.ts b/clients/client-sagemaker/src/models/models_1.ts index 4fa89b8cd95b..da702eb76b5a 100644 --- a/clients/client-sagemaker/src/models/models_1.ts +++ b/clients/client-sagemaker/src/models/models_1.ts @@ -4476,7 +4476,7 @@ export interface RecommendationJobResourceLimit { export interface Phase { /** * @public - *

Specifies how many concurrent users to start with.

+ *

Specifies how many concurrent users to start with. The value should be between 1 and 3.

*/ InitialNumberOfUsers?: number; @@ -4488,17 +4488,45 @@ export interface Phase { /** * @public - *

Specifies how long traffic phase should be.

+ *

Specifies how long a traffic phase should be. For custom load tests, the value should be between 120 and 3600. + * This value should not exceed JobDurationInSeconds.

*/ DurationInSeconds?: number; } +/** + * @public + *

Defines the stairs traffic pattern for an Inference Recommender load test. This pattern + * type consists of multiple steps where the number of users increases at each step.

+ *

Specify either the stairs or phases traffic pattern.

+ */ +export interface Stairs { + /** + * @public + *

Defines how long each traffic step should be.

+ */ + DurationInSeconds?: number; + + /** + * @public + *

Specifies how many steps to perform during traffic.

+ */ + NumberOfSteps?: number; + + /** + * @public + *

Specifies how many new users to spawn in each step.

+ */ + UsersPerStep?: number; +} + /** * @public * @enum */ export const TrafficType = { PHASES: "PHASES", + STAIRS: "STAIRS", } as const; /** @@ -4513,7 +4541,7 @@ export type TrafficType = (typeof TrafficType)[keyof typeof TrafficType]; export interface TrafficPattern { /** * @public - *

Defines the traffic patterns.

+ *

Defines the traffic patterns. Choose either PHASES or STAIRS.

*/ TrafficType?: TrafficType | string; @@ -4522,6 +4550,12 @@ export interface TrafficPattern { *

Defines the phases traffic specification.

*/ Phases?: Phase[]; + + /** + * @public + *

Defines the stairs traffic pattern.

+ */ + Stairs?: Stairs; } /** @@ -4556,7 +4590,7 @@ export interface RecommendationJobInputConfig { /** * @public - *

Specifies the maximum duration of the job, in seconds.>

+ *

Specifies the maximum duration of the job, in seconds. The maximum value is 7200.

*/ JobDurationInSeconds?: number; @@ -4725,6 +4759,20 @@ export interface RecommendationJobOutputConfig { CompiledOutputConfig?: RecommendationJobCompiledOutputConfig; } +/** + * @public + * @enum + */ +export const FlatInvocations = { + CONTINUE: "Continue", + STOP: "Stop", +} as const; + +/** + * @public + */ +export type FlatInvocations = (typeof FlatInvocations)[keyof typeof FlatInvocations]; + /** * @public *

The model latency threshold.

@@ -4732,7 +4780,7 @@ export interface RecommendationJobOutputConfig { export interface ModelLatencyThreshold { /** * @public - *

The model latency percentile threshold.

+ *

The model latency percentile threshold. For custom load tests, specify the value as P95.

*/ Percentile?: string; @@ -4763,6 +4811,14 @@ export interface RecommendationJobStoppingConditions { * complete the inference in the container.

*/ ModelLatencyThresholds?: ModelLatencyThreshold[]; + + /** + * @public + *

Stops a load test when the number of invocations (TPS) peaks and flattens, + * which means that the instance has reached capacity. The default value is Stop. + * If you want the load test to continue after invocations have flattened, set the value to Continue.

+ */ + FlatInvocations?: FlatInvocations | string; } /** @@ -11645,31 +11701,6 @@ export interface DeleteFlowDefinitionRequest { */ export interface DeleteFlowDefinitionResponse {} -/** - * @public - */ -export interface DeleteHubRequest { - /** - * @public - *

The name of the hub to delete.

- */ - HubName: string | undefined; -} - -/** - * @public - * @enum - */ -export const HubContentType = { - MODEL: "Model", - NOTEBOOK: "Notebook", -} as const; - -/** - * @public - */ -export type HubContentType = (typeof HubContentType)[keyof typeof HubContentType]; - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index 3388ee627e5a..a7bb9812a81f 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -102,7 +102,6 @@ import { FeatureDefinition, FeatureType, FlowDefinitionOutputConfig, - HubContentType, HubS3StorageConfig, HumanLoopActivationConfig, HumanLoopConfig, @@ -177,6 +176,31 @@ import { VendorGuidance, } from "./models_1"; +/** + * @public + */ +export interface DeleteHubRequest { + /** + * @public + *

The name of the hub to delete.

+ */ + HubName: string | undefined; +} + +/** + * @public + * @enum + */ +export const HubContentType = { + MODEL: "Model", + NOTEBOOK: "Notebook", +} as const; + +/** + * @public + */ +export type HubContentType = (typeof HubContentType)[keyof typeof HubContentType]; + /** * @public */ @@ -2956,6 +2980,13 @@ export interface DescribeEndpointOutput { * the FailureReason value returned by DescribeEndpoint for information about the failure. DeleteEndpoint is the only operation that can be performed on a * failed endpoint.

* + *
  • + *

    + * UpdateRollbackFailed: Both the rolling deployment and auto-rollback failed. Your endpoint + * is in service with a mix of the old and new endpoint configurations. For information about how to remedy + * this issue and restore the endpoint's status to InService, see + * Rolling Deployments.

    + *
  • * */ EndpointStatus: EndpointStatus | string | undefined; @@ -11340,26 +11371,6 @@ export interface GetModelPackageGroupPolicyOutput { ResourcePolicy: string | undefined; } -/** - * @public - */ -export interface GetSagemakerServicecatalogPortfolioStatusInput {} - -/** - * @public - * @enum - */ -export const SagemakerServicecatalogStatus = { - DISABLED: "Disabled", - ENABLED: "Enabled", -} as const; - -/** - * @public - */ -export type SagemakerServicecatalogStatus = - (typeof SagemakerServicecatalogStatus)[keyof typeof SagemakerServicecatalogStatus]; - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index 18d66033b29a..252ee80d25e9 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -51,7 +51,6 @@ import { DataProcessing, DriftCheckBaselines, ExperimentConfig, - HubContentType, HyperParameterTrainingJobDefinition, HyperParameterTuningJobConfig, HyperParameterTuningJobStrategyType, @@ -111,6 +110,7 @@ import { Filter, FlowDefinitionSummary, HubContentStatus, + HubContentType, HubStatus, HyperParameterTrainingJobSummary, HyperParameterTuningJobCompletionDetails, @@ -138,7 +138,6 @@ import { ProjectStatus, RecommendationJobStatus, RecommendationMetrics, - SagemakerServicecatalogStatus, ScheduleStatus, SelectiveExecutionConfig, ServiceCatalogProvisionedProductDetails, @@ -156,6 +155,26 @@ import { Workteam, } from "./models_2"; +/** + * @public + */ +export interface GetSagemakerServicecatalogPortfolioStatusInput {} + +/** + * @public + * @enum + */ +export const SagemakerServicecatalogStatus = { + DISABLED: "Disabled", + ENABLED: "Enabled", +} as const; + +/** + * @public + */ +export type SagemakerServicecatalogStatus = + (typeof SagemakerServicecatalogStatus)[keyof typeof SagemakerServicecatalogStatus]; + /** * @public */ @@ -10886,38 +10905,6 @@ export interface RenderUiTemplateRequest { HumanTaskUiArn?: string; } -/** - * @public - */ -export interface RenderUiTemplateResponse { - /** - * @public - *

    A Liquid template that renders the HTML for the worker UI.

    - */ - RenderedContent: string | undefined; - - /** - * @public - *

    A list of one or more RenderingError objects if any were encountered - * while rendering the template. If there were no errors, the list is empty.

    - */ - Errors: RenderingError[] | undefined; -} - -/** - * @public - *

    The ResourceConfig to update KeepAlivePeriodInSeconds. Other - * fields in the ResourceConfig cannot be updated.

    - */ -export interface ResourceConfigForUpdate { - /** - * @public - *

    The KeepAlivePeriodInSeconds value specified in the - * ResourceConfig to update.

    - */ - KeepAlivePeriodInSeconds: number | undefined; -} - /** * @internal */ diff --git a/clients/client-sagemaker/src/models/models_4.ts b/clients/client-sagemaker/src/models/models_4.ts index b2a79200d53a..d04148b0b631 100644 --- a/clients/client-sagemaker/src/models/models_4.ts +++ b/clients/client-sagemaker/src/models/models_4.ts @@ -104,11 +104,43 @@ import { ProcessingJob, ProfilerConfigForUpdate, Project, - ResourceConfigForUpdate, + RenderingError, ResourceType, TransformJob, } from "./models_3"; +/** + * @public + */ +export interface RenderUiTemplateResponse { + /** + * @public + *

    A Liquid template that renders the HTML for the worker UI.

    + */ + RenderedContent: string | undefined; + + /** + * @public + *

    A list of one or more RenderingError objects if any were encountered + * while rendering the template. If there were no errors, the list is empty.

    + */ + Errors: RenderingError[] | undefined; +} + +/** + * @public + *

    The ResourceConfig to update KeepAlivePeriodInSeconds. Other + * fields in the ResourceConfig cannot be updated.

    + */ +export interface ResourceConfigForUpdate { + /** + * @public + *

    The KeepAlivePeriodInSeconds value specified in the + * ResourceConfig to update.

    + */ + KeepAlivePeriodInSeconds: number | undefined; +} + /** * @public */ diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index 7716498bb589..c8ef4a3ed707 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -1045,7 +1045,6 @@ import { DeleteExperimentRequest, DeleteFeatureGroupRequest, DeleteFlowDefinitionRequest, - DeleteHubRequest, DeploymentConfig, DeploymentStage, DeviceSelectionConfig, @@ -1177,6 +1176,7 @@ import { SourceAlgorithmSpecification, SourceIpConfig, SpaceSettings, + Stairs, TensorBoardAppSettings, TensorBoardOutputConfig, TrafficPattern, @@ -1193,6 +1193,7 @@ import { } from "../models/models_1"; import { DeleteHubContentRequest, + DeleteHubRequest, DeleteHumanTaskUiRequest, DeleteImageRequest, DeleteImageVersionRequest, @@ -1366,7 +1367,6 @@ import { GetDeviceFleetReportResponse, GetLineageGroupPolicyRequest, GetModelPackageGroupPolicyInput, - GetSagemakerServicecatalogPortfolioStatusInput, HyperParameterTrainingJobSummary, HyperParameterTuningJobCompletionDetails, InferenceRecommendation, @@ -1389,6 +1389,7 @@ import { Workteam, } from "../models/models_2"; import { + GetSagemakerServicecatalogPortfolioStatusInput, GetSearchSuggestionsRequest, GitConfigForUpdate, HubContentInfo, @@ -1590,7 +1591,6 @@ import { RenderableTask, RenderUiTemplateRequest, ResourceCatalog, - ResourceConfigForUpdate, SpaceDetails, StudioLifecycleConfigDetails, SuggestionQuery, @@ -1602,6 +1602,7 @@ import { UserProfileDetails, } from "../models/models_3"; import { + ResourceConfigForUpdate, RetryPipelineExecutionRequest, SearchExpression, SearchRecord, @@ -21811,6 +21812,8 @@ const se_SendPipelineExecutionStepSuccessRequest = ( // se_SpaceSettings omitted. +// se_Stairs omitted. + // se_StartEdgeDeploymentStageRequest omitted. // se_StartInferenceExperimentRequest omitted. @@ -27774,6 +27777,8 @@ const de_SpaceList = (output: any, context: __SerdeContext): SpaceDetails[] => { // de_SpaceSettings omitted. +// de_Stairs omitted. + // de_StartInferenceExperimentResponse omitted. // de_StartPipelineExecutionResponse omitted.