aws-sdk-sagemaker 1.201.0 → 1.202.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5b6fea3265b9752cfc962e3781266f9c10766078e0e980578db85301c38089b
4
- data.tar.gz: 14f39ff7c90f92a283ae22ad8fb06bfdc240faf1516354d6a971f841346185b7
3
+ metadata.gz: 20447a1093ec62eddc28f9ba37e3c9e30df3384af011d2d49a49be70a65ec6f6
4
+ data.tar.gz: 19d9212fdeaaccbf50e1239a7d5ef527d4f02dcda19aa64e1da88bb3d4c5ca89
5
5
  SHA512:
6
- metadata.gz: 65a11118f5f73e2ee8fc3c290d446d7b330d136c0b8fff942e5fe8b3e9cd26ff68958ba686588565c0f8163767d6facfc45a3c1f8a13020155d77b2d3646e903
7
- data.tar.gz: 06c0ee3f3802aaac5323376cc422a2744e8322e59348ab89ad69f94096021166487b034cc493e7e30642ca85ee678b0700ef98da0f4e9d940730f28645026d89
6
+ metadata.gz: bed0f6fa8acb414c51c6ae9a730509b24a5528e22e5b1248e4ad6613826d0a734f3ba0966e0d4c8fd6c0e45707c3b02b48bcf9af7ff10b7db4f174757a9bdc0e
7
+ data.tar.gz: 3895b91eb914ad77ad5630383dac5d16879587685de544e820de1fecea84e43a8963c832942d898ea5b5ff148a76eed70b7d64bae3934eef7052ef8081f5b62b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.202.0 (2023-08-02)
5
+ ------------------
6
+
7
+ * Feature - SageMaker Inference Recommender introduces a new API GetScalingConfigurationRecommendation to recommend auto scaling policies based on completed Inference Recommender jobs.
8
+
4
9
  1.201.0 (2023-08-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.201.0
1
+ 1.202.0
@@ -14876,6 +14876,90 @@ module Aws::SageMaker
14876
14876
  req.send_request(options)
14877
14877
  end
14878
14878
 
14879
+ # Starts an Amazon SageMaker Inference Recommender autoscaling
14880
+ # recommendation job. Returns recommendations for autoscaling policies
14881
+ # that you can apply to your SageMaker endpoint.
14882
+ #
14883
+ # @option params [required, String] :inference_recommendations_job_name
14884
+ # The name of a previously completed Inference Recommender job.
14885
+ #
14886
+ # @option params [String] :recommendation_id
14887
+ # The recommendation ID of a previously completed inference
14888
+ # recommendation. This ID should come from one of the recommendations
14889
+ # returned by the job specified in the `InferenceRecommendationsJobName`
14890
+ # field.
14891
+ #
14892
+ # Specify either this field or the `EndpointName` field.
14893
+ #
14894
+ # @option params [String] :endpoint_name
14895
+ # The name of an endpoint benchmarked during a previously completed
14896
+ # inference recommendation job. This name should come from one of the
14897
+ # recommendations returned by the job specified in the
14898
+ # `InferenceRecommendationsJobName` field.
14899
+ #
14900
+ # Specify either this field or the `RecommendationId` field.
14901
+ #
14902
+ # @option params [Integer] :target_cpu_utilization_per_core
14903
+ # The percentage of how much utilization you want an instance to use
14904
+ # before autoscaling. The default value is 50%.
14905
+ #
14906
+ # @option params [Types::ScalingPolicyObjective] :scaling_policy_objective
14907
+ # An object where you specify the anticipated traffic pattern for an
14908
+ # endpoint.
14909
+ #
14910
+ # @return [Types::GetScalingConfigurationRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
14911
+ #
14912
+ # * {Types::GetScalingConfigurationRecommendationResponse#inference_recommendations_job_name #inference_recommendations_job_name} => String
14913
+ # * {Types::GetScalingConfigurationRecommendationResponse#recommendation_id #recommendation_id} => String
14914
+ # * {Types::GetScalingConfigurationRecommendationResponse#endpoint_name #endpoint_name} => String
14915
+ # * {Types::GetScalingConfigurationRecommendationResponse#target_cpu_utilization_per_core #target_cpu_utilization_per_core} => Integer
14916
+ # * {Types::GetScalingConfigurationRecommendationResponse#scaling_policy_objective #scaling_policy_objective} => Types::ScalingPolicyObjective
14917
+ # * {Types::GetScalingConfigurationRecommendationResponse#metric #metric} => Types::ScalingPolicyMetric
14918
+ # * {Types::GetScalingConfigurationRecommendationResponse#dynamic_scaling_configuration #dynamic_scaling_configuration} => Types::DynamicScalingConfiguration
14919
+ #
14920
+ # @example Request syntax with placeholder values
14921
+ #
14922
+ # resp = client.get_scaling_configuration_recommendation({
14923
+ # inference_recommendations_job_name: "RecommendationJobName", # required
14924
+ # recommendation_id: "String",
14925
+ # endpoint_name: "EndpointName",
14926
+ # target_cpu_utilization_per_core: 1,
14927
+ # scaling_policy_objective: {
14928
+ # min_invocations_per_minute: 1,
14929
+ # max_invocations_per_minute: 1,
14930
+ # },
14931
+ # })
14932
+ #
14933
+ # @example Response structure
14934
+ #
14935
+ # resp.inference_recommendations_job_name #=> String
14936
+ # resp.recommendation_id #=> String
14937
+ # resp.endpoint_name #=> String
14938
+ # resp.target_cpu_utilization_per_core #=> Integer
14939
+ # resp.scaling_policy_objective.min_invocations_per_minute #=> Integer
14940
+ # resp.scaling_policy_objective.max_invocations_per_minute #=> Integer
14941
+ # resp.metric.invocations_per_instance #=> Integer
14942
+ # resp.metric.model_latency #=> Integer
14943
+ # resp.dynamic_scaling_configuration.min_capacity #=> Integer
14944
+ # resp.dynamic_scaling_configuration.max_capacity #=> Integer
14945
+ # resp.dynamic_scaling_configuration.scale_in_cooldown #=> Integer
14946
+ # resp.dynamic_scaling_configuration.scale_out_cooldown #=> Integer
14947
+ # resp.dynamic_scaling_configuration.scaling_policies #=> Array
14948
+ # resp.dynamic_scaling_configuration.scaling_policies[0].target_tracking.metric_specification.predefined.predefined_metric_type #=> String
14949
+ # resp.dynamic_scaling_configuration.scaling_policies[0].target_tracking.metric_specification.customized.metric_name #=> String
14950
+ # resp.dynamic_scaling_configuration.scaling_policies[0].target_tracking.metric_specification.customized.namespace #=> String
14951
+ # resp.dynamic_scaling_configuration.scaling_policies[0].target_tracking.metric_specification.customized.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
14952
+ # resp.dynamic_scaling_configuration.scaling_policies[0].target_tracking.target_value #=> Float
14953
+ #
14954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetScalingConfigurationRecommendation AWS API Documentation
14955
+ #
14956
+ # @overload get_scaling_configuration_recommendation(params = {})
14957
+ # @param [Hash] params ({})
14958
+ def get_scaling_configuration_recommendation(params = {}, options = {})
14959
+ req = build_request(:get_scaling_configuration_recommendation, params)
14960
+ req.send_request(options)
14961
+ end
14962
+
14879
14963
  # An auto-complete API for the search functionality in the SageMaker
14880
14964
  # console. It returns suggestions of possible matches for the property
14881
14965
  # name to use in `Search` queries. Provides suggestions for
@@ -24007,7 +24091,7 @@ module Aws::SageMaker
24007
24091
  params: params,
24008
24092
  config: config)
24009
24093
  context[:gem_name] = 'aws-sdk-sagemaker'
24010
- context[:gem_version] = '1.201.0'
24094
+ context[:gem_version] = '1.202.0'
24011
24095
  Seahorse::Client::Request.new(handlers, context)
24012
24096
  end
24013
24097
 
@@ -410,6 +410,7 @@ module Aws::SageMaker
410
410
  CustomerMetadataKeyList = Shapes::ListShape.new(name: 'CustomerMetadataKeyList')
411
411
  CustomerMetadataMap = Shapes::MapShape.new(name: 'CustomerMetadataMap')
412
412
  CustomerMetadataValue = Shapes::StringShape.new(name: 'CustomerMetadataValue')
413
+ CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
413
414
  DataCaptureConfig = Shapes::StructureShape.new(name: 'DataCaptureConfig')
414
415
  DataCaptureConfigSummary = Shapes::StructureShape.new(name: 'DataCaptureConfigSummary')
415
416
  DataCatalogConfig = Shapes::StructureShape.new(name: 'DataCatalogConfig')
@@ -667,12 +668,14 @@ module Aws::SageMaker
667
668
  DomainSettings = Shapes::StructureShape.new(name: 'DomainSettings')
668
669
  DomainSettingsForUpdate = Shapes::StructureShape.new(name: 'DomainSettingsForUpdate')
669
670
  DomainStatus = Shapes::StringShape.new(name: 'DomainStatus')
671
+ Double = Shapes::FloatShape.new(name: 'Double')
670
672
  DoubleParameterValue = Shapes::FloatShape.new(name: 'DoubleParameterValue')
671
673
  DriftCheckBaselines = Shapes::StructureShape.new(name: 'DriftCheckBaselines')
672
674
  DriftCheckBias = Shapes::StructureShape.new(name: 'DriftCheckBias')
673
675
  DriftCheckExplainability = Shapes::StructureShape.new(name: 'DriftCheckExplainability')
674
676
  DriftCheckModelDataQuality = Shapes::StructureShape.new(name: 'DriftCheckModelDataQuality')
675
677
  DriftCheckModelQuality = Shapes::StructureShape.new(name: 'DriftCheckModelQuality')
678
+ DynamicScalingConfiguration = Shapes::StructureShape.new(name: 'DynamicScalingConfiguration')
676
679
  EMRStepMetadata = Shapes::StructureShape.new(name: 'EMRStepMetadata')
677
680
  Edge = Shapes::StructureShape.new(name: 'Edge')
678
681
  EdgeDeploymentConfig = Shapes::StructureShape.new(name: 'EdgeDeploymentConfig')
@@ -826,6 +829,8 @@ module Aws::SageMaker
826
829
  GetModelPackageGroupPolicyOutput = Shapes::StructureShape.new(name: 'GetModelPackageGroupPolicyOutput')
827
830
  GetSagemakerServicecatalogPortfolioStatusInput = Shapes::StructureShape.new(name: 'GetSagemakerServicecatalogPortfolioStatusInput')
828
831
  GetSagemakerServicecatalogPortfolioStatusOutput = Shapes::StructureShape.new(name: 'GetSagemakerServicecatalogPortfolioStatusOutput')
832
+ GetScalingConfigurationRecommendationRequest = Shapes::StructureShape.new(name: 'GetScalingConfigurationRecommendationRequest')
833
+ GetScalingConfigurationRecommendationResponse = Shapes::StructureShape.new(name: 'GetScalingConfigurationRecommendationResponse')
829
834
  GetSearchSuggestionsRequest = Shapes::StructureShape.new(name: 'GetSearchSuggestionsRequest')
830
835
  GetSearchSuggestionsResponse = Shapes::StructureShape.new(name: 'GetSearchSuggestionsResponse')
831
836
  GitConfig = Shapes::StructureShape.new(name: 'GitConfig')
@@ -1233,6 +1238,7 @@ module Aws::SageMaker
1233
1238
  MetricName = Shapes::StringShape.new(name: 'MetricName')
1234
1239
  MetricRegex = Shapes::StringShape.new(name: 'MetricRegex')
1235
1240
  MetricSetSource = Shapes::StringShape.new(name: 'MetricSetSource')
1241
+ MetricSpecification = Shapes::UnionShape.new(name: 'MetricSpecification')
1236
1242
  MetricValue = Shapes::FloatShape.new(name: 'MetricValue')
1237
1243
  MetricsSource = Shapes::StructureShape.new(name: 'MetricsSource')
1238
1244
  MinimumInstanceMetadataServiceVersion = Shapes::StringShape.new(name: 'MinimumInstanceMetadataServiceVersion')
@@ -1504,6 +1510,7 @@ module Aws::SageMaker
1504
1510
  PipelineSummaryList = Shapes::ListShape.new(name: 'PipelineSummaryList')
1505
1511
  PlatformIdentifier = Shapes::StringShape.new(name: 'PlatformIdentifier')
1506
1512
  PolicyString = Shapes::StringShape.new(name: 'PolicyString')
1513
+ PredefinedMetricSpecification = Shapes::StructureShape.new(name: 'PredefinedMetricSpecification')
1507
1514
  PresignedDomainUrl = Shapes::StringShape.new(name: 'PresignedDomainUrl')
1508
1515
  ProbabilityThresholdAttribute = Shapes::FloatShape.new(name: 'ProbabilityThresholdAttribute')
1509
1516
  ProblemType = Shapes::StringShape.new(name: 'ProblemType')
@@ -1703,6 +1710,10 @@ module Aws::SageMaker
1703
1710
  SagemakerServicecatalogStatus = Shapes::StringShape.new(name: 'SagemakerServicecatalogStatus')
1704
1711
  SampleWeightAttributeName = Shapes::StringShape.new(name: 'SampleWeightAttributeName')
1705
1712
  SamplingPercentage = Shapes::IntegerShape.new(name: 'SamplingPercentage')
1713
+ ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
1714
+ ScalingPolicy = Shapes::UnionShape.new(name: 'ScalingPolicy')
1715
+ ScalingPolicyMetric = Shapes::StructureShape.new(name: 'ScalingPolicyMetric')
1716
+ ScalingPolicyObjective = Shapes::StructureShape.new(name: 'ScalingPolicyObjective')
1706
1717
  ScheduleConfig = Shapes::StructureShape.new(name: 'ScheduleConfig')
1707
1718
  ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
1708
1719
  ScheduleStatus = Shapes::StringShape.new(name: 'ScheduleStatus')
@@ -1780,6 +1791,7 @@ module Aws::SageMaker
1780
1791
  StartNotebookInstanceInput = Shapes::StructureShape.new(name: 'StartNotebookInstanceInput')
1781
1792
  StartPipelineExecutionRequest = Shapes::StructureShape.new(name: 'StartPipelineExecutionRequest')
1782
1793
  StartPipelineExecutionResponse = Shapes::StructureShape.new(name: 'StartPipelineExecutionResponse')
1794
+ Statistic = Shapes::StringShape.new(name: 'Statistic')
1783
1795
  StatusDetails = Shapes::StringShape.new(name: 'StatusDetails')
1784
1796
  StatusMessage = Shapes::StringShape.new(name: 'StatusMessage')
1785
1797
  StepDescription = Shapes::StringShape.new(name: 'StepDescription')
@@ -1844,6 +1856,7 @@ module Aws::SageMaker
1844
1856
  TargetPlatformAccelerator = Shapes::StringShape.new(name: 'TargetPlatformAccelerator')
1845
1857
  TargetPlatformArch = Shapes::StringShape.new(name: 'TargetPlatformArch')
1846
1858
  TargetPlatformOs = Shapes::StringShape.new(name: 'TargetPlatformOs')
1859
+ TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
1847
1860
  TaskAvailabilityLifetimeInSeconds = Shapes::IntegerShape.new(name: 'TaskAvailabilityLifetimeInSeconds')
1848
1861
  TaskCount = Shapes::IntegerShape.new(name: 'TaskCount')
1849
1862
  TaskDescription = Shapes::StringShape.new(name: 'TaskDescription')
@@ -2032,6 +2045,7 @@ module Aws::SageMaker
2032
2045
  UserSettings = Shapes::StructureShape.new(name: 'UserSettings')
2033
2046
  UsersPerStep = Shapes::IntegerShape.new(name: 'UsersPerStep')
2034
2047
  UtilizationMetric = Shapes::FloatShape.new(name: 'UtilizationMetric')
2048
+ UtilizationPercentagePerCore = Shapes::IntegerShape.new(name: 'UtilizationPercentagePerCore')
2035
2049
  ValidationFraction = Shapes::FloatShape.new(name: 'ValidationFraction')
2036
2050
  VariantName = Shapes::StringShape.new(name: 'VariantName')
2037
2051
  VariantProperty = Shapes::StructureShape.new(name: 'VariantProperty')
@@ -3400,6 +3414,11 @@ module Aws::SageMaker
3400
3414
  CustomerMetadataMap.key = Shapes::ShapeRef.new(shape: CustomerMetadataKey)
3401
3415
  CustomerMetadataMap.value = Shapes::ShapeRef.new(shape: CustomerMetadataValue)
3402
3416
 
3417
+ CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: String, location_name: "MetricName"))
3418
+ CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: String, location_name: "Namespace"))
3419
+ CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
3420
+ CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
3421
+
3403
3422
  DataCaptureConfig.add_member(:enable_capture, Shapes::ShapeRef.new(shape: EnableCapture, location_name: "EnableCapture"))
3404
3423
  DataCaptureConfig.add_member(:initial_sampling_percentage, Shapes::ShapeRef.new(shape: SamplingPercentage, required: true, location_name: "InitialSamplingPercentage"))
3405
3424
  DataCaptureConfig.add_member(:destination_s3_uri, Shapes::ShapeRef.new(shape: DestinationS3Uri, required: true, location_name: "DestinationS3Uri"))
@@ -4858,6 +4877,13 @@ module Aws::SageMaker
4858
4877
  DriftCheckModelQuality.add_member(:constraints, Shapes::ShapeRef.new(shape: MetricsSource, location_name: "Constraints"))
4859
4878
  DriftCheckModelQuality.struct_class = Types::DriftCheckModelQuality
4860
4879
 
4880
+ DynamicScalingConfiguration.add_member(:min_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinCapacity"))
4881
+ DynamicScalingConfiguration.add_member(:max_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxCapacity"))
4882
+ DynamicScalingConfiguration.add_member(:scale_in_cooldown, Shapes::ShapeRef.new(shape: Integer, location_name: "ScaleInCooldown"))
4883
+ DynamicScalingConfiguration.add_member(:scale_out_cooldown, Shapes::ShapeRef.new(shape: Integer, location_name: "ScaleOutCooldown"))
4884
+ DynamicScalingConfiguration.add_member(:scaling_policies, Shapes::ShapeRef.new(shape: ScalingPolicies, location_name: "ScalingPolicies"))
4885
+ DynamicScalingConfiguration.struct_class = Types::DynamicScalingConfiguration
4886
+
4861
4887
  EMRStepMetadata.add_member(:cluster_id, Shapes::ShapeRef.new(shape: String256, location_name: "ClusterId"))
4862
4888
  EMRStepMetadata.add_member(:step_id, Shapes::ShapeRef.new(shape: String256, location_name: "StepId"))
4863
4889
  EMRStepMetadata.add_member(:step_name, Shapes::ShapeRef.new(shape: String256, location_name: "StepName"))
@@ -5225,6 +5251,22 @@ module Aws::SageMaker
5225
5251
  GetSagemakerServicecatalogPortfolioStatusOutput.add_member(:status, Shapes::ShapeRef.new(shape: SagemakerServicecatalogStatus, location_name: "Status"))
5226
5252
  GetSagemakerServicecatalogPortfolioStatusOutput.struct_class = Types::GetSagemakerServicecatalogPortfolioStatusOutput
5227
5253
 
5254
+ GetScalingConfigurationRecommendationRequest.add_member(:inference_recommendations_job_name, Shapes::ShapeRef.new(shape: RecommendationJobName, required: true, location_name: "InferenceRecommendationsJobName"))
5255
+ GetScalingConfigurationRecommendationRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: String, location_name: "RecommendationId"))
5256
+ GetScalingConfigurationRecommendationRequest.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "EndpointName"))
5257
+ GetScalingConfigurationRecommendationRequest.add_member(:target_cpu_utilization_per_core, Shapes::ShapeRef.new(shape: UtilizationPercentagePerCore, location_name: "TargetCpuUtilizationPerCore"))
5258
+ GetScalingConfigurationRecommendationRequest.add_member(:scaling_policy_objective, Shapes::ShapeRef.new(shape: ScalingPolicyObjective, location_name: "ScalingPolicyObjective"))
5259
+ GetScalingConfigurationRecommendationRequest.struct_class = Types::GetScalingConfigurationRecommendationRequest
5260
+
5261
+ GetScalingConfigurationRecommendationResponse.add_member(:inference_recommendations_job_name, Shapes::ShapeRef.new(shape: RecommendationJobName, location_name: "InferenceRecommendationsJobName"))
5262
+ GetScalingConfigurationRecommendationResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: String, location_name: "RecommendationId"))
5263
+ GetScalingConfigurationRecommendationResponse.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, location_name: "EndpointName"))
5264
+ GetScalingConfigurationRecommendationResponse.add_member(:target_cpu_utilization_per_core, Shapes::ShapeRef.new(shape: UtilizationPercentagePerCore, location_name: "TargetCpuUtilizationPerCore"))
5265
+ GetScalingConfigurationRecommendationResponse.add_member(:scaling_policy_objective, Shapes::ShapeRef.new(shape: ScalingPolicyObjective, location_name: "ScalingPolicyObjective"))
5266
+ GetScalingConfigurationRecommendationResponse.add_member(:metric, Shapes::ShapeRef.new(shape: ScalingPolicyMetric, location_name: "Metric"))
5267
+ GetScalingConfigurationRecommendationResponse.add_member(:dynamic_scaling_configuration, Shapes::ShapeRef.new(shape: DynamicScalingConfiguration, location_name: "DynamicScalingConfiguration"))
5268
+ GetScalingConfigurationRecommendationResponse.struct_class = Types::GetScalingConfigurationRecommendationResponse
5269
+
5228
5270
  GetSearchSuggestionsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "Resource"))
5229
5271
  GetSearchSuggestionsRequest.add_member(:suggestion_query, Shapes::ShapeRef.new(shape: SuggestionQuery, location_name: "SuggestionQuery"))
5230
5272
  GetSearchSuggestionsRequest.struct_class = Types::GetSearchSuggestionsRequest
@@ -6786,6 +6828,14 @@ module Aws::SageMaker
6786
6828
 
6787
6829
  MetricDefinitionList.member = Shapes::ShapeRef.new(shape: MetricDefinition)
6788
6830
 
6831
+ MetricSpecification.add_member(:predefined, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "Predefined"))
6832
+ MetricSpecification.add_member(:customized, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "Customized"))
6833
+ MetricSpecification.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
6834
+ MetricSpecification.add_member_subclass(:predefined, Types::MetricSpecification::Predefined)
6835
+ MetricSpecification.add_member_subclass(:customized, Types::MetricSpecification::Customized)
6836
+ MetricSpecification.add_member_subclass(:unknown, Types::MetricSpecification::Unknown)
6837
+ MetricSpecification.struct_class = Types::MetricSpecification
6838
+
6789
6839
  MetricsSource.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, required: true, location_name: "ContentType"))
6790
6840
  MetricsSource.add_member(:content_digest, Shapes::ShapeRef.new(shape: ContentDigest, location_name: "ContentDigest"))
6791
6841
  MetricsSource.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
@@ -7590,6 +7640,9 @@ module Aws::SageMaker
7590
7640
 
7591
7641
  PipelineSummaryList.member = Shapes::ShapeRef.new(shape: PipelineSummary)
7592
7642
 
7643
+ PredefinedMetricSpecification.add_member(:predefined_metric_type, Shapes::ShapeRef.new(shape: String, location_name: "PredefinedMetricType"))
7644
+ PredefinedMetricSpecification.struct_class = Types::PredefinedMetricSpecification
7645
+
7593
7646
  ProcessingClusterConfig.add_member(:instance_count, Shapes::ShapeRef.new(shape: ProcessingInstanceCount, required: true, location_name: "InstanceCount"))
7594
7647
  ProcessingClusterConfig.add_member(:instance_type, Shapes::ShapeRef.new(shape: ProcessingInstanceType, required: true, location_name: "InstanceType"))
7595
7648
  ProcessingClusterConfig.add_member(:volume_size_in_gb, Shapes::ShapeRef.new(shape: ProcessingVolumeSizeInGB, required: true, location_name: "VolumeSizeInGB"))
@@ -8093,6 +8146,22 @@ module Aws::SageMaker
8093
8146
 
8094
8147
  SageMakerImageVersionAliases.member = Shapes::ShapeRef.new(shape: SageMakerImageVersionAlias)
8095
8148
 
8149
+ ScalingPolicies.member = Shapes::ShapeRef.new(shape: ScalingPolicy)
8150
+
8151
+ ScalingPolicy.add_member(:target_tracking, Shapes::ShapeRef.new(shape: TargetTrackingScalingPolicyConfiguration, location_name: "TargetTracking"))
8152
+ ScalingPolicy.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
8153
+ ScalingPolicy.add_member_subclass(:target_tracking, Types::ScalingPolicy::TargetTracking)
8154
+ ScalingPolicy.add_member_subclass(:unknown, Types::ScalingPolicy::Unknown)
8155
+ ScalingPolicy.struct_class = Types::ScalingPolicy
8156
+
8157
+ ScalingPolicyMetric.add_member(:invocations_per_instance, Shapes::ShapeRef.new(shape: Integer, location_name: "InvocationsPerInstance"))
8158
+ ScalingPolicyMetric.add_member(:model_latency, Shapes::ShapeRef.new(shape: Integer, location_name: "ModelLatency"))
8159
+ ScalingPolicyMetric.struct_class = Types::ScalingPolicyMetric
8160
+
8161
+ ScalingPolicyObjective.add_member(:min_invocations_per_minute, Shapes::ShapeRef.new(shape: Integer, location_name: "MinInvocationsPerMinute"))
8162
+ ScalingPolicyObjective.add_member(:max_invocations_per_minute, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxInvocationsPerMinute"))
8163
+ ScalingPolicyObjective.struct_class = Types::ScalingPolicyObjective
8164
+
8096
8165
  ScheduleConfig.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, required: true, location_name: "ScheduleExpression"))
8097
8166
  ScheduleConfig.struct_class = Types::ScheduleConfig
8098
8167
 
@@ -8371,6 +8440,10 @@ module Aws::SageMaker
8371
8440
  TargetPlatform.add_member(:accelerator, Shapes::ShapeRef.new(shape: TargetPlatformAccelerator, location_name: "Accelerator"))
8372
8441
  TargetPlatform.struct_class = Types::TargetPlatform
8373
8442
 
8443
+ TargetTrackingScalingPolicyConfiguration.add_member(:metric_specification, Shapes::ShapeRef.new(shape: MetricSpecification, location_name: "MetricSpecification"))
8444
+ TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: Double, location_name: "TargetValue"))
8445
+ TargetTrackingScalingPolicyConfiguration.struct_class = Types::TargetTrackingScalingPolicyConfiguration
8446
+
8374
8447
  TaskKeywords.member = Shapes::ShapeRef.new(shape: TaskKeyword)
8375
8448
 
8376
8449
  TensorBoardAppSettings.add_member(:default_resource_spec, Shapes::ShapeRef.new(shape: ResourceSpec, location_name: "DefaultResourceSpec"))
@@ -10697,6 +10770,15 @@ module Aws::SageMaker
10697
10770
  o.output = Shapes::ShapeRef.new(shape: GetSagemakerServicecatalogPortfolioStatusOutput)
10698
10771
  end)
10699
10772
 
10773
+ api.add_operation(:get_scaling_configuration_recommendation, Seahorse::Model::Operation.new.tap do |o|
10774
+ o.name = "GetScalingConfigurationRecommendation"
10775
+ o.http_method = "POST"
10776
+ o.http_request_uri = "/"
10777
+ o.input = Shapes::ShapeRef.new(shape: GetScalingConfigurationRecommendationRequest)
10778
+ o.output = Shapes::ShapeRef.new(shape: GetScalingConfigurationRecommendationResponse)
10779
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
10780
+ end)
10781
+
10700
10782
  api.add_operation(:get_search_suggestions, Seahorse::Model::Operation.new.tap do |o|
10701
10783
  o.name = "GetSearchSuggestions"
10702
10784
  o.http_method = "POST"
@@ -2378,6 +2378,20 @@ module Aws::SageMaker
2378
2378
  end
2379
2379
  end
2380
2380
 
2381
+ class GetScalingConfigurationRecommendation
2382
+ def self.build(context)
2383
+ unless context.config.regional_endpoint
2384
+ endpoint = context.config.endpoint.to_s
2385
+ end
2386
+ Aws::SageMaker::EndpointParameters.new(
2387
+ region: context.config.region,
2388
+ use_dual_stack: context.config.use_dualstack_endpoint,
2389
+ use_fips: context.config.use_fips_endpoint,
2390
+ endpoint: endpoint,
2391
+ )
2392
+ end
2393
+ end
2394
+
2381
2395
  class GetSearchSuggestions
2382
2396
  def self.build(context)
2383
2397
  unless context.config.regional_endpoint
@@ -394,6 +394,8 @@ module Aws::SageMaker
394
394
  Aws::SageMaker::Endpoints::GetModelPackageGroupPolicy.build(context)
395
395
  when :get_sagemaker_servicecatalog_portfolio_status
396
396
  Aws::SageMaker::Endpoints::GetSagemakerServicecatalogPortfolioStatus.build(context)
397
+ when :get_scaling_configuration_recommendation
398
+ Aws::SageMaker::Endpoints::GetScalingConfigurationRecommendation.build(context)
397
399
  when :get_search_suggestions
398
400
  Aws::SageMaker::Endpoints::GetSearchSuggestions.build(context)
399
401
  when :import_hub_content
@@ -8837,6 +8837,30 @@ module Aws::SageMaker
8837
8837
  include Aws::Structure
8838
8838
  end
8839
8839
 
8840
+ # A customized metric.
8841
+ #
8842
+ # @!attribute [rw] metric_name
8843
+ # The name of the customized metric.
8844
+ # @return [String]
8845
+ #
8846
+ # @!attribute [rw] namespace
8847
+ # The namespace of the customized metric.
8848
+ # @return [String]
8849
+ #
8850
+ # @!attribute [rw] statistic
8851
+ # The statistic of the customized metric.
8852
+ # @return [String]
8853
+ #
8854
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CustomizedMetricSpecification AWS API Documentation
8855
+ #
8856
+ class CustomizedMetricSpecification < Struct.new(
8857
+ :metric_name,
8858
+ :namespace,
8859
+ :statistic)
8860
+ SENSITIVE = []
8861
+ include Aws::Structure
8862
+ end
8863
+
8840
8864
  # Configuration to control how SageMaker captures inference data.
8841
8865
  #
8842
8866
  # @!attribute [rw] enable_capture
@@ -16495,6 +16519,43 @@ module Aws::SageMaker
16495
16519
  include Aws::Structure
16496
16520
  end
16497
16521
 
16522
+ # An object with the recommended values for you to specify when creating
16523
+ # an autoscaling policy.
16524
+ #
16525
+ # @!attribute [rw] min_capacity
16526
+ # The recommended minimum capacity to specify for your autoscaling
16527
+ # policy.
16528
+ # @return [Integer]
16529
+ #
16530
+ # @!attribute [rw] max_capacity
16531
+ # The recommended maximum capacity to specify for your autoscaling
16532
+ # policy.
16533
+ # @return [Integer]
16534
+ #
16535
+ # @!attribute [rw] scale_in_cooldown
16536
+ # The recommended scale in cooldown time for your autoscaling policy.
16537
+ # @return [Integer]
16538
+ #
16539
+ # @!attribute [rw] scale_out_cooldown
16540
+ # The recommended scale out cooldown time for your autoscaling policy.
16541
+ # @return [Integer]
16542
+ #
16543
+ # @!attribute [rw] scaling_policies
16544
+ # An object of the scaling policies for each metric.
16545
+ # @return [Array<Types::ScalingPolicy>]
16546
+ #
16547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DynamicScalingConfiguration AWS API Documentation
16548
+ #
16549
+ class DynamicScalingConfiguration < Struct.new(
16550
+ :min_capacity,
16551
+ :max_capacity,
16552
+ :scale_in_cooldown,
16553
+ :scale_out_cooldown,
16554
+ :scaling_policies)
16555
+ SENSITIVE = []
16556
+ include Aws::Structure
16557
+ end
16558
+
16498
16559
  # The configurations and outcomes of an Amazon EMR step execution.
16499
16560
  #
16500
16561
  # @!attribute [rw] cluster_id
@@ -18387,6 +18448,99 @@ module Aws::SageMaker
18387
18448
  include Aws::Structure
18388
18449
  end
18389
18450
 
18451
+ # @!attribute [rw] inference_recommendations_job_name
18452
+ # The name of a previously completed Inference Recommender job.
18453
+ # @return [String]
18454
+ #
18455
+ # @!attribute [rw] recommendation_id
18456
+ # The recommendation ID of a previously completed inference
18457
+ # recommendation. This ID should come from one of the recommendations
18458
+ # returned by the job specified in the
18459
+ # `InferenceRecommendationsJobName` field.
18460
+ #
18461
+ # Specify either this field or the `EndpointName` field.
18462
+ # @return [String]
18463
+ #
18464
+ # @!attribute [rw] endpoint_name
18465
+ # The name of an endpoint benchmarked during a previously completed
18466
+ # inference recommendation job. This name should come from one of the
18467
+ # recommendations returned by the job specified in the
18468
+ # `InferenceRecommendationsJobName` field.
18469
+ #
18470
+ # Specify either this field or the `RecommendationId` field.
18471
+ # @return [String]
18472
+ #
18473
+ # @!attribute [rw] target_cpu_utilization_per_core
18474
+ # The percentage of how much utilization you want an instance to use
18475
+ # before autoscaling. The default value is 50%.
18476
+ # @return [Integer]
18477
+ #
18478
+ # @!attribute [rw] scaling_policy_objective
18479
+ # An object where you specify the anticipated traffic pattern for an
18480
+ # endpoint.
18481
+ # @return [Types::ScalingPolicyObjective]
18482
+ #
18483
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetScalingConfigurationRecommendationRequest AWS API Documentation
18484
+ #
18485
+ class GetScalingConfigurationRecommendationRequest < Struct.new(
18486
+ :inference_recommendations_job_name,
18487
+ :recommendation_id,
18488
+ :endpoint_name,
18489
+ :target_cpu_utilization_per_core,
18490
+ :scaling_policy_objective)
18491
+ SENSITIVE = []
18492
+ include Aws::Structure
18493
+ end
18494
+
18495
+ # @!attribute [rw] inference_recommendations_job_name
18496
+ # The name of a previously completed Inference Recommender job.
18497
+ # @return [String]
18498
+ #
18499
+ # @!attribute [rw] recommendation_id
18500
+ # The recommendation ID of a previously completed inference
18501
+ # recommendation.
18502
+ # @return [String]
18503
+ #
18504
+ # @!attribute [rw] endpoint_name
18505
+ # The name of an endpoint benchmarked during a previously completed
18506
+ # Inference Recommender job.
18507
+ # @return [String]
18508
+ #
18509
+ # @!attribute [rw] target_cpu_utilization_per_core
18510
+ # The percentage of how much utilization you want an instance to use
18511
+ # before autoscaling, which you specified in the request. The default
18512
+ # value is 50%.
18513
+ # @return [Integer]
18514
+ #
18515
+ # @!attribute [rw] scaling_policy_objective
18516
+ # An object representing the anticipated traffic pattern for an
18517
+ # endpoint that you specified in the request.
18518
+ # @return [Types::ScalingPolicyObjective]
18519
+ #
18520
+ # @!attribute [rw] metric
18521
+ # An object with a list of metrics that were benchmarked during the
18522
+ # previously completed Inference Recommender job.
18523
+ # @return [Types::ScalingPolicyMetric]
18524
+ #
18525
+ # @!attribute [rw] dynamic_scaling_configuration
18526
+ # An object with the recommended values for you to specify when
18527
+ # creating an autoscaling policy.
18528
+ # @return [Types::DynamicScalingConfiguration]
18529
+ #
18530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetScalingConfigurationRecommendationResponse AWS API Documentation
18531
+ #
18532
+ class GetScalingConfigurationRecommendationResponse < Struct.new(
18533
+ :inference_recommendations_job_name,
18534
+ :recommendation_id,
18535
+ :endpoint_name,
18536
+ :target_cpu_utilization_per_core,
18537
+ :scaling_policy_objective,
18538
+ :metric,
18539
+ :dynamic_scaling_configuration)
18540
+ SENSITIVE = []
18541
+ include Aws::Structure
18542
+ end
18543
+
18390
18544
  # @!attribute [rw] resource
18391
18545
  # The name of the SageMaker resource to search for.
18392
18546
  # @return [String]
@@ -27846,6 +28000,33 @@ module Aws::SageMaker
27846
28000
  include Aws::Structure
27847
28001
  end
27848
28002
 
28003
+ # An object containing information about a metric.
28004
+ #
28005
+ # @note MetricSpecification is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of MetricSpecification corresponding to the set member.
28006
+ #
28007
+ # @!attribute [rw] predefined
28008
+ # Information about a predefined metric.
28009
+ # @return [Types::PredefinedMetricSpecification]
28010
+ #
28011
+ # @!attribute [rw] customized
28012
+ # Information about a customized metric.
28013
+ # @return [Types::CustomizedMetricSpecification]
28014
+ #
28015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MetricSpecification AWS API Documentation
28016
+ #
28017
+ class MetricSpecification < Struct.new(
28018
+ :predefined,
28019
+ :customized,
28020
+ :unknown)
28021
+ SENSITIVE = []
28022
+ include Aws::Structure
28023
+ include Aws::Structure::Union
28024
+
28025
+ class Predefined < MetricSpecification; end
28026
+ class Customized < MetricSpecification; end
28027
+ class Unknown < MetricSpecification; end
28028
+ end
28029
+
27849
28030
  # Details about the metrics source.
27850
28031
  #
27851
28032
  # @!attribute [rw] content_type
@@ -32268,6 +32449,21 @@ module Aws::SageMaker
32268
32449
  include Aws::Structure
32269
32450
  end
32270
32451
 
32452
+ # A specification for a predefined metric.
32453
+ #
32454
+ # @!attribute [rw] predefined_metric_type
32455
+ # The metric type. You can only apply SageMaker metric types to
32456
+ # SageMaker endpoints.
32457
+ # @return [String]
32458
+ #
32459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/PredefinedMetricSpecification AWS API Documentation
32460
+ #
32461
+ class PredefinedMetricSpecification < Struct.new(
32462
+ :predefined_metric_type)
32463
+ SENSITIVE = []
32464
+ include Aws::Structure
32465
+ end
32466
+
32271
32467
  # Configuration for the cluster used to run a processing job.
32272
32468
  #
32273
32469
  # @!attribute [rw] instance_count
@@ -35470,6 +35666,75 @@ module Aws::SageMaker
35470
35666
  include Aws::Structure
35471
35667
  end
35472
35668
 
35669
+ # An object containing a recommended scaling policy.
35670
+ #
35671
+ # @note ScalingPolicy is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ScalingPolicy corresponding to the set member.
35672
+ #
35673
+ # @!attribute [rw] target_tracking
35674
+ # A target tracking scaling policy. Includes support for predefined or
35675
+ # customized metrics.
35676
+ # @return [Types::TargetTrackingScalingPolicyConfiguration]
35677
+ #
35678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ScalingPolicy AWS API Documentation
35679
+ #
35680
+ class ScalingPolicy < Struct.new(
35681
+ :target_tracking,
35682
+ :unknown)
35683
+ SENSITIVE = []
35684
+ include Aws::Structure
35685
+ include Aws::Structure::Union
35686
+
35687
+ class TargetTracking < ScalingPolicy; end
35688
+ class Unknown < ScalingPolicy; end
35689
+ end
35690
+
35691
+ # The metric for a scaling policy.
35692
+ #
35693
+ # @!attribute [rw] invocations_per_instance
35694
+ # The number of invocations sent to a model, normalized by
35695
+ # `InstanceCount` in each ProductionVariant. `1/numberOfInstances` is
35696
+ # sent as the value on each request, where `numberOfInstances` is the
35697
+ # number of active instances for the ProductionVariant behind the
35698
+ # endpoint at the time of the request.
35699
+ # @return [Integer]
35700
+ #
35701
+ # @!attribute [rw] model_latency
35702
+ # The interval of time taken by a model to respond as viewed from
35703
+ # SageMaker. This interval includes the local communication times
35704
+ # taken to send the request and to fetch the response from the
35705
+ # container of a model and the time taken to complete the inference in
35706
+ # the container.
35707
+ # @return [Integer]
35708
+ #
35709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ScalingPolicyMetric AWS API Documentation
35710
+ #
35711
+ class ScalingPolicyMetric < Struct.new(
35712
+ :invocations_per_instance,
35713
+ :model_latency)
35714
+ SENSITIVE = []
35715
+ include Aws::Structure
35716
+ end
35717
+
35718
+ # An object where you specify the anticipated traffic pattern for an
35719
+ # endpoint.
35720
+ #
35721
+ # @!attribute [rw] min_invocations_per_minute
35722
+ # The minimum number of expected requests to your endpoint per minute.
35723
+ # @return [Integer]
35724
+ #
35725
+ # @!attribute [rw] max_invocations_per_minute
35726
+ # The maximum number of expected requests to your endpoint per minute.
35727
+ # @return [Integer]
35728
+ #
35729
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ScalingPolicyObjective AWS API Documentation
35730
+ #
35731
+ class ScalingPolicyObjective < Struct.new(
35732
+ :min_invocations_per_minute,
35733
+ :max_invocations_per_minute)
35734
+ SENSITIVE = []
35735
+ include Aws::Structure
35736
+ end
35737
+
35473
35738
  # Configuration details about the monitoring schedule.
35474
35739
  #
35475
35740
  # @!attribute [rw] schedule_expression
@@ -37159,6 +37424,35 @@ module Aws::SageMaker
37159
37424
  include Aws::Structure
37160
37425
  end
37161
37426
 
37427
+ # A target tracking scaling policy. Includes support for predefined or
37428
+ # customized metrics.
37429
+ #
37430
+ # When using the [PutScalingPolicy][1] API, this parameter is required
37431
+ # when you are creating a policy with the policy type
37432
+ # `TargetTrackingScaling`.
37433
+ #
37434
+ #
37435
+ #
37436
+ # [1]: https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PutScalingPolicy.html
37437
+ #
37438
+ # @!attribute [rw] metric_specification
37439
+ # An object containing information about a metric.
37440
+ # @return [Types::MetricSpecification]
37441
+ #
37442
+ # @!attribute [rw] target_value
37443
+ # The recommended target value to specify for the metric when creating
37444
+ # a scaling policy.
37445
+ # @return [Float]
37446
+ #
37447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/TargetTrackingScalingPolicyConfiguration AWS API Documentation
37448
+ #
37449
+ class TargetTrackingScalingPolicyConfiguration < Struct.new(
37450
+ :metric_specification,
37451
+ :target_value)
37452
+ SENSITIVE = []
37453
+ include Aws::Structure
37454
+ end
37455
+
37162
37456
  # The TensorBoard app settings.
37163
37457
  #
37164
37458
  # @!attribute [rw] default_resource_spec
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-sagemaker/customizations'
53
53
  # @!group service
54
54
  module Aws::SageMaker
55
55
 
56
- GEM_VERSION = '1.201.0'
56
+ GEM_VERSION = '1.202.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sagemaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.201.0
4
+ version: 1.202.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core