aws-sdk-sagemaker 1.144.0 → 1.146.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2726,6 +2726,55 @@ module Aws::SageMaker
2726
2726
  include Aws::Structure
2727
2727
  end
2728
2728
 
2729
+ # Configuration to control how SageMaker captures inference data for
2730
+ # batch transform jobs.
2731
+ #
2732
+ # @note When making an API call, you may pass BatchDataCaptureConfig
2733
+ # data as a hash:
2734
+ #
2735
+ # {
2736
+ # destination_s3_uri: "S3Uri", # required
2737
+ # kms_key_id: "KmsKeyId",
2738
+ # generate_inference_id: false,
2739
+ # }
2740
+ #
2741
+ # @!attribute [rw] destination_s3_uri
2742
+ # The Amazon S3 location being used to capture the data.
2743
+ # @return [String]
2744
+ #
2745
+ # @!attribute [rw] kms_key_id
2746
+ # The Amazon Resource Name (ARN) of a Amazon Web Services Key
2747
+ # Management Service key that SageMaker uses to encrypt data on the
2748
+ # storage volume attached to the ML compute instance that hosts the
2749
+ # batch transform job.
2750
+ #
2751
+ # The KmsKeyId can be any of the following formats:
2752
+ #
2753
+ # * Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
2754
+ #
2755
+ # * Key ARN:
2756
+ # `arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
2757
+ #
2758
+ # * Alias name: `alias/ExampleAlias`
2759
+ #
2760
+ # * Alias name ARN:
2761
+ # `arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias`
2762
+ # @return [String]
2763
+ #
2764
+ # @!attribute [rw] generate_inference_id
2765
+ # Flag that indicates whether to append inference id to the output.
2766
+ # @return [Boolean]
2767
+ #
2768
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/BatchDataCaptureConfig AWS API Documentation
2769
+ #
2770
+ class BatchDataCaptureConfig < Struct.new(
2771
+ :destination_s3_uri,
2772
+ :kms_key_id,
2773
+ :generate_inference_id)
2774
+ SENSITIVE = []
2775
+ include Aws::Structure
2776
+ end
2777
+
2729
2778
  # The error code and error description associated with the resource.
2730
2779
  #
2731
2780
  # @!attribute [rw] error_code
@@ -2830,6 +2879,116 @@ module Aws::SageMaker
2830
2879
  include Aws::Structure
2831
2880
  end
2832
2881
 
2882
+ # Input object for the batch transform job.
2883
+ #
2884
+ # @note When making an API call, you may pass BatchTransformInput
2885
+ # data as a hash:
2886
+ #
2887
+ # {
2888
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
2889
+ # dataset_format: { # required
2890
+ # csv: {
2891
+ # header: false,
2892
+ # },
2893
+ # json: {
2894
+ # line: false,
2895
+ # },
2896
+ # parquet: {
2897
+ # },
2898
+ # },
2899
+ # local_path: "ProcessingLocalPath", # required
2900
+ # s3_input_mode: "Pipe", # accepts Pipe, File
2901
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
2902
+ # features_attribute: "String",
2903
+ # inference_attribute: "String",
2904
+ # probability_attribute: "String",
2905
+ # probability_threshold_attribute: 1.0,
2906
+ # start_time_offset: "MonitoringTimeOffsetString",
2907
+ # end_time_offset: "MonitoringTimeOffsetString",
2908
+ # }
2909
+ #
2910
+ # @!attribute [rw] data_captured_destination_s3_uri
2911
+ # The Amazon S3 location being used to capture the data.
2912
+ # @return [String]
2913
+ #
2914
+ # @!attribute [rw] dataset_format
2915
+ # The dataset format for your batch transform job.
2916
+ # @return [Types::MonitoringDatasetFormat]
2917
+ #
2918
+ # @!attribute [rw] local_path
2919
+ # Path to the filesystem where the batch transform data is available
2920
+ # to the container.
2921
+ # @return [String]
2922
+ #
2923
+ # @!attribute [rw] s3_input_mode
2924
+ # Whether the `Pipe` or `File` is used as the input mode for
2925
+ # transferring data for the monitoring job. `Pipe` mode is recommended
2926
+ # for large datasets. `File` mode is useful for small files that fit
2927
+ # in memory. Defaults to `File`.
2928
+ # @return [String]
2929
+ #
2930
+ # @!attribute [rw] s3_data_distribution_type
2931
+ # Whether input data distributed in Amazon S3 is fully replicated or
2932
+ # sharded by an S3 key. Defaults to `FullyReplicated`
2933
+ # @return [String]
2934
+ #
2935
+ # @!attribute [rw] features_attribute
2936
+ # The attributes of the input data that are the input features.
2937
+ # @return [String]
2938
+ #
2939
+ # @!attribute [rw] inference_attribute
2940
+ # The attribute of the input data that represents the ground truth
2941
+ # label.
2942
+ # @return [String]
2943
+ #
2944
+ # @!attribute [rw] probability_attribute
2945
+ # In a classification problem, the attribute that represents the class
2946
+ # probability.
2947
+ # @return [String]
2948
+ #
2949
+ # @!attribute [rw] probability_threshold_attribute
2950
+ # The threshold for the class probability to be evaluated as a
2951
+ # positive result.
2952
+ # @return [Float]
2953
+ #
2954
+ # @!attribute [rw] start_time_offset
2955
+ # If specified, monitoring jobs substract this time from the start
2956
+ # time. For information about using offsets for scheduling monitoring
2957
+ # jobs, see [Schedule Model Quality Monitoring Jobs][1].
2958
+ #
2959
+ #
2960
+ #
2961
+ # [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html
2962
+ # @return [String]
2963
+ #
2964
+ # @!attribute [rw] end_time_offset
2965
+ # If specified, monitoring jobs substract this time from the end time.
2966
+ # For information about using offsets for scheduling monitoring jobs,
2967
+ # see [Schedule Model Quality Monitoring Jobs][1].
2968
+ #
2969
+ #
2970
+ #
2971
+ # [1]: https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html
2972
+ # @return [String]
2973
+ #
2974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/BatchTransformInput AWS API Documentation
2975
+ #
2976
+ class BatchTransformInput < Struct.new(
2977
+ :data_captured_destination_s3_uri,
2978
+ :dataset_format,
2979
+ :local_path,
2980
+ :s3_input_mode,
2981
+ :s3_data_distribution_type,
2982
+ :features_attribute,
2983
+ :inference_attribute,
2984
+ :probability_attribute,
2985
+ :probability_threshold_attribute,
2986
+ :start_time_offset,
2987
+ :end_time_offset)
2988
+ SENSITIVE = []
2989
+ include Aws::Structure
2990
+ end
2991
+
2833
2992
  # Contains bias metrics for a model.
2834
2993
  #
2835
2994
  # @note When making an API call, you may pass Bias
@@ -5502,7 +5661,7 @@ module Aws::SageMaker
5502
5661
  # },
5503
5662
  # },
5504
5663
  # data_quality_job_input: { # required
5505
- # endpoint_input: { # required
5664
+ # endpoint_input: {
5506
5665
  # endpoint_name: "EndpointName", # required
5507
5666
  # local_path: "ProcessingLocalPath", # required
5508
5667
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -5514,6 +5673,28 @@ module Aws::SageMaker
5514
5673
  # start_time_offset: "MonitoringTimeOffsetString",
5515
5674
  # end_time_offset: "MonitoringTimeOffsetString",
5516
5675
  # },
5676
+ # batch_transform_input: {
5677
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
5678
+ # dataset_format: { # required
5679
+ # csv: {
5680
+ # header: false,
5681
+ # },
5682
+ # json: {
5683
+ # line: false,
5684
+ # },
5685
+ # parquet: {
5686
+ # },
5687
+ # },
5688
+ # local_path: "ProcessingLocalPath", # required
5689
+ # s3_input_mode: "Pipe", # accepts Pipe, File
5690
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
5691
+ # features_attribute: "String",
5692
+ # inference_attribute: "String",
5693
+ # probability_attribute: "String",
5694
+ # probability_threshold_attribute: 1.0,
5695
+ # start_time_offset: "MonitoringTimeOffsetString",
5696
+ # end_time_offset: "MonitoringTimeOffsetString",
5697
+ # },
5517
5698
  # },
5518
5699
  # data_quality_job_output_config: { # required
5519
5700
  # monitoring_outputs: [ # required
@@ -7372,6 +7553,11 @@ module Aws::SageMaker
7372
7553
  # nearest_model_name: "String",
7373
7554
  # supported_instance_types: ["String"],
7374
7555
  # },
7556
+ # endpoints: [
7557
+ # {
7558
+ # endpoint_name: "EndpointName", # required
7559
+ # },
7560
+ # ],
7375
7561
  # },
7376
7562
  # job_description: "RecommendationJobDescription",
7377
7563
  # stopping_conditions: {
@@ -7778,7 +7964,7 @@ module Aws::SageMaker
7778
7964
  # },
7779
7965
  # },
7780
7966
  # model_bias_job_input: { # required
7781
- # endpoint_input: { # required
7967
+ # endpoint_input: {
7782
7968
  # endpoint_name: "EndpointName", # required
7783
7969
  # local_path: "ProcessingLocalPath", # required
7784
7970
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -7790,6 +7976,28 @@ module Aws::SageMaker
7790
7976
  # start_time_offset: "MonitoringTimeOffsetString",
7791
7977
  # end_time_offset: "MonitoringTimeOffsetString",
7792
7978
  # },
7979
+ # batch_transform_input: {
7980
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
7981
+ # dataset_format: { # required
7982
+ # csv: {
7983
+ # header: false,
7984
+ # },
7985
+ # json: {
7986
+ # line: false,
7987
+ # },
7988
+ # parquet: {
7989
+ # },
7990
+ # },
7991
+ # local_path: "ProcessingLocalPath", # required
7992
+ # s3_input_mode: "Pipe", # accepts Pipe, File
7993
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
7994
+ # features_attribute: "String",
7995
+ # inference_attribute: "String",
7996
+ # probability_attribute: "String",
7997
+ # probability_threshold_attribute: 1.0,
7998
+ # start_time_offset: "MonitoringTimeOffsetString",
7999
+ # end_time_offset: "MonitoringTimeOffsetString",
8000
+ # },
7793
8001
  # ground_truth_s3_input: { # required
7794
8002
  # s3_uri: "MonitoringS3Uri",
7795
8003
  # },
@@ -7932,7 +8140,7 @@ module Aws::SageMaker
7932
8140
  # },
7933
8141
  # },
7934
8142
  # model_explainability_job_input: { # required
7935
- # endpoint_input: { # required
8143
+ # endpoint_input: {
7936
8144
  # endpoint_name: "EndpointName", # required
7937
8145
  # local_path: "ProcessingLocalPath", # required
7938
8146
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -7944,6 +8152,28 @@ module Aws::SageMaker
7944
8152
  # start_time_offset: "MonitoringTimeOffsetString",
7945
8153
  # end_time_offset: "MonitoringTimeOffsetString",
7946
8154
  # },
8155
+ # batch_transform_input: {
8156
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
8157
+ # dataset_format: { # required
8158
+ # csv: {
8159
+ # header: false,
8160
+ # },
8161
+ # json: {
8162
+ # line: false,
8163
+ # },
8164
+ # parquet: {
8165
+ # },
8166
+ # },
8167
+ # local_path: "ProcessingLocalPath", # required
8168
+ # s3_input_mode: "Pipe", # accepts Pipe, File
8169
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
8170
+ # features_attribute: "String",
8171
+ # inference_attribute: "String",
8172
+ # probability_attribute: "String",
8173
+ # probability_threshold_attribute: 1.0,
8174
+ # start_time_offset: "MonitoringTimeOffsetString",
8175
+ # end_time_offset: "MonitoringTimeOffsetString",
8176
+ # },
7947
8177
  # },
7948
8178
  # model_explainability_job_output_config: { # required
7949
8179
  # monitoring_outputs: [ # required
@@ -8703,7 +8933,7 @@ module Aws::SageMaker
8703
8933
  # },
8704
8934
  # },
8705
8935
  # model_quality_job_input: { # required
8706
- # endpoint_input: { # required
8936
+ # endpoint_input: {
8707
8937
  # endpoint_name: "EndpointName", # required
8708
8938
  # local_path: "ProcessingLocalPath", # required
8709
8939
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -8715,6 +8945,28 @@ module Aws::SageMaker
8715
8945
  # start_time_offset: "MonitoringTimeOffsetString",
8716
8946
  # end_time_offset: "MonitoringTimeOffsetString",
8717
8947
  # },
8948
+ # batch_transform_input: {
8949
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
8950
+ # dataset_format: { # required
8951
+ # csv: {
8952
+ # header: false,
8953
+ # },
8954
+ # json: {
8955
+ # line: false,
8956
+ # },
8957
+ # parquet: {
8958
+ # },
8959
+ # },
8960
+ # local_path: "ProcessingLocalPath", # required
8961
+ # s3_input_mode: "Pipe", # accepts Pipe, File
8962
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
8963
+ # features_attribute: "String",
8964
+ # inference_attribute: "String",
8965
+ # probability_attribute: "String",
8966
+ # probability_threshold_attribute: 1.0,
8967
+ # start_time_offset: "MonitoringTimeOffsetString",
8968
+ # end_time_offset: "MonitoringTimeOffsetString",
8969
+ # },
8718
8970
  # ground_truth_s3_input: { # required
8719
8971
  # s3_uri: "MonitoringS3Uri",
8720
8972
  # },
@@ -8858,7 +9110,7 @@ module Aws::SageMaker
8858
9110
  # },
8859
9111
  # monitoring_inputs: [ # required
8860
9112
  # {
8861
- # endpoint_input: { # required
9113
+ # endpoint_input: {
8862
9114
  # endpoint_name: "EndpointName", # required
8863
9115
  # local_path: "ProcessingLocalPath", # required
8864
9116
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -8870,6 +9122,28 @@ module Aws::SageMaker
8870
9122
  # start_time_offset: "MonitoringTimeOffsetString",
8871
9123
  # end_time_offset: "MonitoringTimeOffsetString",
8872
9124
  # },
9125
+ # batch_transform_input: {
9126
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
9127
+ # dataset_format: { # required
9128
+ # csv: {
9129
+ # header: false,
9130
+ # },
9131
+ # json: {
9132
+ # line: false,
9133
+ # },
9134
+ # parquet: {
9135
+ # },
9136
+ # },
9137
+ # local_path: "ProcessingLocalPath", # required
9138
+ # s3_input_mode: "Pipe", # accepts Pipe, File
9139
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
9140
+ # features_attribute: "String",
9141
+ # inference_attribute: "String",
9142
+ # probability_attribute: "String",
9143
+ # probability_threshold_attribute: 1.0,
9144
+ # start_time_offset: "MonitoringTimeOffsetString",
9145
+ # end_time_offset: "MonitoringTimeOffsetString",
9146
+ # },
8873
9147
  # },
8874
9148
  # ],
8875
9149
  # monitoring_output_config: { # required
@@ -10219,6 +10493,11 @@ module Aws::SageMaker
10219
10493
  # assemble_with: "None", # accepts None, Line
10220
10494
  # kms_key_id: "KmsKeyId",
10221
10495
  # },
10496
+ # data_capture_config: {
10497
+ # destination_s3_uri: "S3Uri", # required
10498
+ # kms_key_id: "KmsKeyId",
10499
+ # generate_inference_id: false,
10500
+ # },
10222
10501
  # transform_resources: { # required
10223
10502
  # instance_type: "ml.m4.xlarge", # required, accepts ml.m4.xlarge, ml.m4.2xlarge, ml.m4.4xlarge, ml.m4.10xlarge, ml.m4.16xlarge, ml.c4.xlarge, ml.c4.2xlarge, ml.c4.4xlarge, ml.c4.8xlarge, ml.p2.xlarge, ml.p2.8xlarge, ml.p2.16xlarge, ml.p3.2xlarge, ml.p3.8xlarge, ml.p3.16xlarge, ml.c5.xlarge, ml.c5.2xlarge, ml.c5.4xlarge, ml.c5.9xlarge, ml.c5.18xlarge, ml.m5.large, ml.m5.xlarge, ml.m5.2xlarge, ml.m5.4xlarge, ml.m5.12xlarge, ml.m5.24xlarge, ml.g4dn.xlarge, ml.g4dn.2xlarge, ml.g4dn.4xlarge, ml.g4dn.8xlarge, ml.g4dn.12xlarge, ml.g4dn.16xlarge
10224
10503
  # instance_count: 1, # required
@@ -10326,6 +10605,10 @@ module Aws::SageMaker
10326
10605
  # Describes the results of the transform job.
10327
10606
  # @return [Types::TransformOutput]
10328
10607
  #
10608
+ # @!attribute [rw] data_capture_config
10609
+ # Configuration to control how SageMaker captures inference data.
10610
+ # @return [Types::BatchDataCaptureConfig]
10611
+ #
10329
10612
  # @!attribute [rw] transform_resources
10330
10613
  # Describes the resources, including ML instance types and ML instance
10331
10614
  # count, to use for the transform job.
@@ -10379,6 +10662,7 @@ module Aws::SageMaker
10379
10662
  :environment,
10380
10663
  :transform_input,
10381
10664
  :transform_output,
10665
+ :data_capture_config,
10382
10666
  :transform_resources,
10383
10667
  :data_processing,
10384
10668
  :tags,
@@ -11339,7 +11623,7 @@ module Aws::SageMaker
11339
11623
  # data as a hash:
11340
11624
  #
11341
11625
  # {
11342
- # endpoint_input: { # required
11626
+ # endpoint_input: {
11343
11627
  # endpoint_name: "EndpointName", # required
11344
11628
  # local_path: "ProcessingLocalPath", # required
11345
11629
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -11351,16 +11635,43 @@ module Aws::SageMaker
11351
11635
  # start_time_offset: "MonitoringTimeOffsetString",
11352
11636
  # end_time_offset: "MonitoringTimeOffsetString",
11353
11637
  # },
11638
+ # batch_transform_input: {
11639
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
11640
+ # dataset_format: { # required
11641
+ # csv: {
11642
+ # header: false,
11643
+ # },
11644
+ # json: {
11645
+ # line: false,
11646
+ # },
11647
+ # parquet: {
11648
+ # },
11649
+ # },
11650
+ # local_path: "ProcessingLocalPath", # required
11651
+ # s3_input_mode: "Pipe", # accepts Pipe, File
11652
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
11653
+ # features_attribute: "String",
11654
+ # inference_attribute: "String",
11655
+ # probability_attribute: "String",
11656
+ # probability_threshold_attribute: 1.0,
11657
+ # start_time_offset: "MonitoringTimeOffsetString",
11658
+ # end_time_offset: "MonitoringTimeOffsetString",
11659
+ # },
11354
11660
  # }
11355
11661
  #
11356
11662
  # @!attribute [rw] endpoint_input
11357
11663
  # Input object for the endpoint
11358
11664
  # @return [Types::EndpointInput]
11359
11665
  #
11666
+ # @!attribute [rw] batch_transform_input
11667
+ # Input object for the batch transform job.
11668
+ # @return [Types::BatchTransformInput]
11669
+ #
11360
11670
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DataQualityJobInput AWS API Documentation
11361
11671
  #
11362
11672
  class DataQualityJobInput < Struct.new(
11363
- :endpoint_input)
11673
+ :endpoint_input,
11674
+ :batch_transform_input)
11364
11675
  SENSITIVE = []
11365
11676
  include Aws::Structure
11366
11677
  end
@@ -15229,6 +15540,11 @@ module Aws::SageMaker
15229
15540
  # The recommendations made by Inference Recommender.
15230
15541
  # @return [Array<Types::InferenceRecommendation>]
15231
15542
  #
15543
+ # @!attribute [rw] endpoint_performances
15544
+ # The performance results from running an Inference Recommender job on
15545
+ # an existing endpoint.
15546
+ # @return [Array<Types::EndpointPerformance>]
15547
+ #
15232
15548
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeInferenceRecommendationsJobResponse AWS API Documentation
15233
15549
  #
15234
15550
  class DescribeInferenceRecommendationsJobResponse < Struct.new(
@@ -15244,7 +15560,8 @@ module Aws::SageMaker
15244
15560
  :failure_reason,
15245
15561
  :input_config,
15246
15562
  :stopping_conditions,
15247
- :inference_recommendations)
15563
+ :inference_recommendations,
15564
+ :endpoint_performances)
15248
15565
  SENSITIVE = []
15249
15566
  include Aws::Structure
15250
15567
  end
@@ -17424,6 +17741,10 @@ module Aws::SageMaker
17424
17741
  # save the results from the transform job.
17425
17742
  # @return [Types::TransformOutput]
17426
17743
  #
17744
+ # @!attribute [rw] data_capture_config
17745
+ # Configuration to control how SageMaker captures inference data.
17746
+ # @return [Types::BatchDataCaptureConfig]
17747
+ #
17427
17748
  # @!attribute [rw] transform_resources
17428
17749
  # Describes the resources, including ML instance types and ML instance
17429
17750
  # count, to use for the transform job.
@@ -17495,6 +17816,7 @@ module Aws::SageMaker
17495
17816
  :environment,
17496
17817
  :transform_input,
17497
17818
  :transform_output,
17819
+ :data_capture_config,
17498
17820
  :transform_resources,
17499
17821
  :creation_time,
17500
17822
  :transform_start_time,
@@ -19140,6 +19462,28 @@ module Aws::SageMaker
19140
19462
  include Aws::Structure
19141
19463
  end
19142
19464
 
19465
+ # Details about a customer endpoint that was compared in an Inference
19466
+ # Recommender job.
19467
+ #
19468
+ # @note When making an API call, you may pass EndpointInfo
19469
+ # data as a hash:
19470
+ #
19471
+ # {
19472
+ # endpoint_name: "EndpointName", # required
19473
+ # }
19474
+ #
19475
+ # @!attribute [rw] endpoint_name
19476
+ # The name of a customer's endpoint.
19477
+ # @return [String]
19478
+ #
19479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/EndpointInfo AWS API Documentation
19480
+ #
19481
+ class EndpointInfo < Struct.new(
19482
+ :endpoint_name)
19483
+ SENSITIVE = []
19484
+ include Aws::Structure
19485
+ end
19486
+
19143
19487
  # Input object for the endpoint
19144
19488
  #
19145
19489
  # @note When making an API call, you may pass EndpointInput
@@ -19308,6 +19652,27 @@ module Aws::SageMaker
19308
19652
  include Aws::Structure
19309
19653
  end
19310
19654
 
19655
+ # The performance results from running an Inference Recommender job on
19656
+ # an existing endpoint.
19657
+ #
19658
+ # @!attribute [rw] metrics
19659
+ # The metrics for an existing endpoint.
19660
+ # @return [Types::InferenceMetrics]
19661
+ #
19662
+ # @!attribute [rw] endpoint_info
19663
+ # Details about a customer endpoint that was compared in an Inference
19664
+ # Recommender job.
19665
+ # @return [Types::EndpointInfo]
19666
+ #
19667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/EndpointPerformance AWS API Documentation
19668
+ #
19669
+ class EndpointPerformance < Struct.new(
19670
+ :metrics,
19671
+ :endpoint_info)
19672
+ SENSITIVE = []
19673
+ include Aws::Structure
19674
+ end
19675
+
19311
19676
  # Provides summary information for an endpoint.
19312
19677
  #
19313
19678
  # @!attribute [rw] endpoint_name
@@ -23263,6 +23628,27 @@ module Aws::SageMaker
23263
23628
  include Aws::Structure
23264
23629
  end
23265
23630
 
23631
+ # The metrics for an existing endpoint compared in an Inference
23632
+ # Recommender job.
23633
+ #
23634
+ # @!attribute [rw] max_invocations
23635
+ # The expected maximum number of requests per minute for the instance.
23636
+ # @return [Integer]
23637
+ #
23638
+ # @!attribute [rw] model_latency
23639
+ # The expected model latency at maximum invocations per minute for the
23640
+ # instance.
23641
+ # @return [Integer]
23642
+ #
23643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/InferenceMetrics AWS API Documentation
23644
+ #
23645
+ class InferenceMetrics < Struct.new(
23646
+ :max_invocations,
23647
+ :model_latency)
23648
+ SENSITIVE = []
23649
+ include Aws::Structure
23650
+ end
23651
+
23266
23652
  # A list of recommendations made by Amazon SageMaker Inference
23267
23653
  # Recommender.
23268
23654
  #
@@ -30005,7 +30391,7 @@ module Aws::SageMaker
30005
30391
  # data as a hash:
30006
30392
  #
30007
30393
  # {
30008
- # endpoint_input: { # required
30394
+ # endpoint_input: {
30009
30395
  # endpoint_name: "EndpointName", # required
30010
30396
  # local_path: "ProcessingLocalPath", # required
30011
30397
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -30017,6 +30403,28 @@ module Aws::SageMaker
30017
30403
  # start_time_offset: "MonitoringTimeOffsetString",
30018
30404
  # end_time_offset: "MonitoringTimeOffsetString",
30019
30405
  # },
30406
+ # batch_transform_input: {
30407
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
30408
+ # dataset_format: { # required
30409
+ # csv: {
30410
+ # header: false,
30411
+ # },
30412
+ # json: {
30413
+ # line: false,
30414
+ # },
30415
+ # parquet: {
30416
+ # },
30417
+ # },
30418
+ # local_path: "ProcessingLocalPath", # required
30419
+ # s3_input_mode: "Pipe", # accepts Pipe, File
30420
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
30421
+ # features_attribute: "String",
30422
+ # inference_attribute: "String",
30423
+ # probability_attribute: "String",
30424
+ # probability_threshold_attribute: 1.0,
30425
+ # start_time_offset: "MonitoringTimeOffsetString",
30426
+ # end_time_offset: "MonitoringTimeOffsetString",
30427
+ # },
30020
30428
  # ground_truth_s3_input: { # required
30021
30429
  # s3_uri: "MonitoringS3Uri",
30022
30430
  # },
@@ -30026,6 +30434,10 @@ module Aws::SageMaker
30026
30434
  # Input object for the endpoint
30027
30435
  # @return [Types::EndpointInput]
30028
30436
  #
30437
+ # @!attribute [rw] batch_transform_input
30438
+ # Input object for the batch transform job.
30439
+ # @return [Types::BatchTransformInput]
30440
+ #
30029
30441
  # @!attribute [rw] ground_truth_s3_input
30030
30442
  # Location of ground truth labels to use in model bias job.
30031
30443
  # @return [Types::MonitoringGroundTruthS3Input]
@@ -30034,6 +30446,7 @@ module Aws::SageMaker
30034
30446
  #
30035
30447
  class ModelBiasJobInput < Struct.new(
30036
30448
  :endpoint_input,
30449
+ :batch_transform_input,
30037
30450
  :ground_truth_s3_input)
30038
30451
  SENSITIVE = []
30039
30452
  include Aws::Structure
@@ -30278,7 +30691,7 @@ module Aws::SageMaker
30278
30691
  # data as a hash:
30279
30692
  #
30280
30693
  # {
30281
- # endpoint_input: { # required
30694
+ # endpoint_input: {
30282
30695
  # endpoint_name: "EndpointName", # required
30283
30696
  # local_path: "ProcessingLocalPath", # required
30284
30697
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -30290,16 +30703,43 @@ module Aws::SageMaker
30290
30703
  # start_time_offset: "MonitoringTimeOffsetString",
30291
30704
  # end_time_offset: "MonitoringTimeOffsetString",
30292
30705
  # },
30706
+ # batch_transform_input: {
30707
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
30708
+ # dataset_format: { # required
30709
+ # csv: {
30710
+ # header: false,
30711
+ # },
30712
+ # json: {
30713
+ # line: false,
30714
+ # },
30715
+ # parquet: {
30716
+ # },
30717
+ # },
30718
+ # local_path: "ProcessingLocalPath", # required
30719
+ # s3_input_mode: "Pipe", # accepts Pipe, File
30720
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
30721
+ # features_attribute: "String",
30722
+ # inference_attribute: "String",
30723
+ # probability_attribute: "String",
30724
+ # probability_threshold_attribute: 1.0,
30725
+ # start_time_offset: "MonitoringTimeOffsetString",
30726
+ # end_time_offset: "MonitoringTimeOffsetString",
30727
+ # },
30293
30728
  # }
30294
30729
  #
30295
30730
  # @!attribute [rw] endpoint_input
30296
30731
  # Input object for the endpoint
30297
30732
  # @return [Types::EndpointInput]
30298
30733
  #
30734
+ # @!attribute [rw] batch_transform_input
30735
+ # Input object for the batch transform job.
30736
+ # @return [Types::BatchTransformInput]
30737
+ #
30299
30738
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ModelExplainabilityJobInput AWS API Documentation
30300
30739
  #
30301
30740
  class ModelExplainabilityJobInput < Struct.new(
30302
- :endpoint_input)
30741
+ :endpoint_input,
30742
+ :batch_transform_input)
30303
30743
  SENSITIVE = []
30304
30744
  include Aws::Structure
30305
30745
  end
@@ -31283,7 +31723,7 @@ module Aws::SageMaker
31283
31723
  # data as a hash:
31284
31724
  #
31285
31725
  # {
31286
- # endpoint_input: { # required
31726
+ # endpoint_input: {
31287
31727
  # endpoint_name: "EndpointName", # required
31288
31728
  # local_path: "ProcessingLocalPath", # required
31289
31729
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -31295,6 +31735,28 @@ module Aws::SageMaker
31295
31735
  # start_time_offset: "MonitoringTimeOffsetString",
31296
31736
  # end_time_offset: "MonitoringTimeOffsetString",
31297
31737
  # },
31738
+ # batch_transform_input: {
31739
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
31740
+ # dataset_format: { # required
31741
+ # csv: {
31742
+ # header: false,
31743
+ # },
31744
+ # json: {
31745
+ # line: false,
31746
+ # },
31747
+ # parquet: {
31748
+ # },
31749
+ # },
31750
+ # local_path: "ProcessingLocalPath", # required
31751
+ # s3_input_mode: "Pipe", # accepts Pipe, File
31752
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
31753
+ # features_attribute: "String",
31754
+ # inference_attribute: "String",
31755
+ # probability_attribute: "String",
31756
+ # probability_threshold_attribute: 1.0,
31757
+ # start_time_offset: "MonitoringTimeOffsetString",
31758
+ # end_time_offset: "MonitoringTimeOffsetString",
31759
+ # },
31298
31760
  # ground_truth_s3_input: { # required
31299
31761
  # s3_uri: "MonitoringS3Uri",
31300
31762
  # },
@@ -31304,6 +31766,10 @@ module Aws::SageMaker
31304
31766
  # Input object for the endpoint
31305
31767
  # @return [Types::EndpointInput]
31306
31768
  #
31769
+ # @!attribute [rw] batch_transform_input
31770
+ # Input object for the batch transform job.
31771
+ # @return [Types::BatchTransformInput]
31772
+ #
31307
31773
  # @!attribute [rw] ground_truth_s3_input
31308
31774
  # The ground truth label provided for the model.
31309
31775
  # @return [Types::MonitoringGroundTruthS3Input]
@@ -31312,6 +31778,7 @@ module Aws::SageMaker
31312
31778
  #
31313
31779
  class ModelQualityJobInput < Struct.new(
31314
31780
  :endpoint_input,
31781
+ :batch_transform_input,
31315
31782
  :ground_truth_s3_input)
31316
31783
  SENSITIVE = []
31317
31784
  include Aws::Structure
@@ -31515,6 +31982,65 @@ module Aws::SageMaker
31515
31982
  include Aws::Structure
31516
31983
  end
31517
31984
 
31985
+ # Represents the CSV dataset format used when running a monitoring job.
31986
+ #
31987
+ # @note When making an API call, you may pass MonitoringCsvDatasetFormat
31988
+ # data as a hash:
31989
+ #
31990
+ # {
31991
+ # header: false,
31992
+ # }
31993
+ #
31994
+ # @!attribute [rw] header
31995
+ # Indicates if the CSV data has a header.
31996
+ # @return [Boolean]
31997
+ #
31998
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringCsvDatasetFormat AWS API Documentation
31999
+ #
32000
+ class MonitoringCsvDatasetFormat < Struct.new(
32001
+ :header)
32002
+ SENSITIVE = []
32003
+ include Aws::Structure
32004
+ end
32005
+
32006
+ # Represents the dataset format used when running a monitoring job.
32007
+ #
32008
+ # @note When making an API call, you may pass MonitoringDatasetFormat
32009
+ # data as a hash:
32010
+ #
32011
+ # {
32012
+ # csv: {
32013
+ # header: false,
32014
+ # },
32015
+ # json: {
32016
+ # line: false,
32017
+ # },
32018
+ # parquet: {
32019
+ # },
32020
+ # }
32021
+ #
32022
+ # @!attribute [rw] csv
32023
+ # The CSV dataset used in the monitoring job.
32024
+ # @return [Types::MonitoringCsvDatasetFormat]
32025
+ #
32026
+ # @!attribute [rw] json
32027
+ # The JSON dataset used in the monitoring job
32028
+ # @return [Types::MonitoringJsonDatasetFormat]
32029
+ #
32030
+ # @!attribute [rw] parquet
32031
+ # The Parquet dataset used in the monitoring job
32032
+ # @return [Types::MonitoringParquetDatasetFormat]
32033
+ #
32034
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringDatasetFormat AWS API Documentation
32035
+ #
32036
+ class MonitoringDatasetFormat < Struct.new(
32037
+ :csv,
32038
+ :json,
32039
+ :parquet)
32040
+ SENSITIVE = []
32041
+ include Aws::Structure
32042
+ end
32043
+
31518
32044
  # Summary of information about the last monitoring job to run.
31519
32045
  #
31520
32046
  # @!attribute [rw] monitoring_schedule_name
@@ -31602,7 +32128,7 @@ module Aws::SageMaker
31602
32128
  # data as a hash:
31603
32129
  #
31604
32130
  # {
31605
- # endpoint_input: { # required
32131
+ # endpoint_input: {
31606
32132
  # endpoint_name: "EndpointName", # required
31607
32133
  # local_path: "ProcessingLocalPath", # required
31608
32134
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -31614,16 +32140,43 @@ module Aws::SageMaker
31614
32140
  # start_time_offset: "MonitoringTimeOffsetString",
31615
32141
  # end_time_offset: "MonitoringTimeOffsetString",
31616
32142
  # },
32143
+ # batch_transform_input: {
32144
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
32145
+ # dataset_format: { # required
32146
+ # csv: {
32147
+ # header: false,
32148
+ # },
32149
+ # json: {
32150
+ # line: false,
32151
+ # },
32152
+ # parquet: {
32153
+ # },
32154
+ # },
32155
+ # local_path: "ProcessingLocalPath", # required
32156
+ # s3_input_mode: "Pipe", # accepts Pipe, File
32157
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
32158
+ # features_attribute: "String",
32159
+ # inference_attribute: "String",
32160
+ # probability_attribute: "String",
32161
+ # probability_threshold_attribute: 1.0,
32162
+ # start_time_offset: "MonitoringTimeOffsetString",
32163
+ # end_time_offset: "MonitoringTimeOffsetString",
32164
+ # },
31617
32165
  # }
31618
32166
  #
31619
32167
  # @!attribute [rw] endpoint_input
31620
32168
  # The endpoint for a monitoring job.
31621
32169
  # @return [Types::EndpointInput]
31622
32170
  #
32171
+ # @!attribute [rw] batch_transform_input
32172
+ # Input object for the batch transform job.
32173
+ # @return [Types::BatchTransformInput]
32174
+ #
31623
32175
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringInput AWS API Documentation
31624
32176
  #
31625
32177
  class MonitoringInput < Struct.new(
31626
- :endpoint_input)
32178
+ :endpoint_input,
32179
+ :batch_transform_input)
31627
32180
  SENSITIVE = []
31628
32181
  include Aws::Structure
31629
32182
  end
@@ -31645,7 +32198,7 @@ module Aws::SageMaker
31645
32198
  # },
31646
32199
  # monitoring_inputs: [ # required
31647
32200
  # {
31648
- # endpoint_input: { # required
32201
+ # endpoint_input: {
31649
32202
  # endpoint_name: "EndpointName", # required
31650
32203
  # local_path: "ProcessingLocalPath", # required
31651
32204
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -31657,6 +32210,28 @@ module Aws::SageMaker
31657
32210
  # start_time_offset: "MonitoringTimeOffsetString",
31658
32211
  # end_time_offset: "MonitoringTimeOffsetString",
31659
32212
  # },
32213
+ # batch_transform_input: {
32214
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
32215
+ # dataset_format: { # required
32216
+ # csv: {
32217
+ # header: false,
32218
+ # },
32219
+ # json: {
32220
+ # line: false,
32221
+ # },
32222
+ # parquet: {
32223
+ # },
32224
+ # },
32225
+ # local_path: "ProcessingLocalPath", # required
32226
+ # s3_input_mode: "Pipe", # accepts Pipe, File
32227
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
32228
+ # features_attribute: "String",
32229
+ # inference_attribute: "String",
32230
+ # probability_attribute: "String",
32231
+ # probability_threshold_attribute: 1.0,
32232
+ # start_time_offset: "MonitoringTimeOffsetString",
32233
+ # end_time_offset: "MonitoringTimeOffsetString",
32234
+ # },
31660
32235
  # },
31661
32236
  # ],
31662
32237
  # monitoring_output_config: { # required
@@ -31792,6 +32367,27 @@ module Aws::SageMaker
31792
32367
  include Aws::Structure
31793
32368
  end
31794
32369
 
32370
+ # Represents the JSON dataset format used when running a monitoring job.
32371
+ #
32372
+ # @note When making an API call, you may pass MonitoringJsonDatasetFormat
32373
+ # data as a hash:
32374
+ #
32375
+ # {
32376
+ # line: false,
32377
+ # }
32378
+ #
32379
+ # @!attribute [rw] line
32380
+ # Indicates if the file should be read as a json object per line.
32381
+ # @return [Boolean]
32382
+ #
32383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringJsonDatasetFormat AWS API Documentation
32384
+ #
32385
+ class MonitoringJsonDatasetFormat < Struct.new(
32386
+ :line)
32387
+ SENSITIVE = []
32388
+ include Aws::Structure
32389
+ end
32390
+
31795
32391
  # The networking configuration for the monitoring job.
31796
32392
  #
31797
32393
  # @note When making an API call, you may pass MonitoringNetworkConfig
@@ -31905,6 +32501,15 @@ module Aws::SageMaker
31905
32501
  include Aws::Structure
31906
32502
  end
31907
32503
 
32504
+ # Represents the Parquet dataset format used when running a monitoring
32505
+ # job.
32506
+ #
32507
+ # @api private
32508
+ #
32509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MonitoringParquetDatasetFormat AWS API Documentation
32510
+ #
32511
+ class MonitoringParquetDatasetFormat < Aws::EmptyStructure; end
32512
+
31908
32513
  # Identifies the resources to deploy for a monitoring job.
31909
32514
  #
31910
32515
  # @note When making an API call, you may pass MonitoringResources
@@ -32075,7 +32680,7 @@ module Aws::SageMaker
32075
32680
  # },
32076
32681
  # monitoring_inputs: [ # required
32077
32682
  # {
32078
- # endpoint_input: { # required
32683
+ # endpoint_input: {
32079
32684
  # endpoint_name: "EndpointName", # required
32080
32685
  # local_path: "ProcessingLocalPath", # required
32081
32686
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -32087,6 +32692,28 @@ module Aws::SageMaker
32087
32692
  # start_time_offset: "MonitoringTimeOffsetString",
32088
32693
  # end_time_offset: "MonitoringTimeOffsetString",
32089
32694
  # },
32695
+ # batch_transform_input: {
32696
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
32697
+ # dataset_format: { # required
32698
+ # csv: {
32699
+ # header: false,
32700
+ # },
32701
+ # json: {
32702
+ # line: false,
32703
+ # },
32704
+ # parquet: {
32705
+ # },
32706
+ # },
32707
+ # local_path: "ProcessingLocalPath", # required
32708
+ # s3_input_mode: "Pipe", # accepts Pipe, File
32709
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
32710
+ # features_attribute: "String",
32711
+ # inference_attribute: "String",
32712
+ # probability_attribute: "String",
32713
+ # probability_threshold_attribute: 1.0,
32714
+ # start_time_offset: "MonitoringTimeOffsetString",
32715
+ # end_time_offset: "MonitoringTimeOffsetString",
32716
+ # },
32090
32717
  # },
32091
32718
  # ],
32092
32719
  # monitoring_output_config: { # required
@@ -36337,6 +36964,11 @@ module Aws::SageMaker
36337
36964
  # nearest_model_name: "String",
36338
36965
  # supported_instance_types: ["String"],
36339
36966
  # },
36967
+ # endpoints: [
36968
+ # {
36969
+ # endpoint_name: "EndpointName", # required
36970
+ # },
36971
+ # ],
36340
36972
  # }
36341
36973
  #
36342
36974
  # @!attribute [rw] model_package_version_arn
@@ -36405,6 +37037,11 @@ module Aws::SageMaker
36405
37037
  # fields in the model package.
36406
37038
  # @return [Types::RecommendationJobContainerConfig]
36407
37039
  #
37040
+ # @!attribute [rw] endpoints
37041
+ # Existing customer endpoints on which to run an Inference Recommender
37042
+ # job.
37043
+ # @return [Array<Types::EndpointInfo>]
37044
+ #
36408
37045
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RecommendationJobInputConfig AWS API Documentation
36409
37046
  #
36410
37047
  class RecommendationJobInputConfig < Struct.new(
@@ -36414,7 +37051,8 @@ module Aws::SageMaker
36414
37051
  :resource_limit,
36415
37052
  :endpoint_configurations,
36416
37053
  :volume_kms_key_id,
36417
- :container_config)
37054
+ :container_config,
37055
+ :endpoints)
36418
37056
  SENSITIVE = []
36419
37057
  include Aws::Structure
36420
37058
  end
@@ -40469,9 +41107,9 @@ module Aws::SageMaker
40469
41107
  # @return [String]
40470
41108
  #
40471
41109
  # @!attribute [rw] instance_count
40472
- # The number of ML compute instances to use in the transform job. For
40473
- # distributed transform jobs, specify a value greater than 1. The
40474
- # default value is `1`.
41110
+ # The number of ML compute instances to use in the transform job. The
41111
+ # default value is `1`, and the maximum is `100`. For distributed
41112
+ # transform jobs, specify a value greater than `1`.
40475
41113
  # @return [Integer]
40476
41114
  #
40477
41115
  # @!attribute [rw] volume_kms_key_id
@@ -42291,7 +42929,7 @@ module Aws::SageMaker
42291
42929
  # },
42292
42930
  # monitoring_inputs: [ # required
42293
42931
  # {
42294
- # endpoint_input: { # required
42932
+ # endpoint_input: {
42295
42933
  # endpoint_name: "EndpointName", # required
42296
42934
  # local_path: "ProcessingLocalPath", # required
42297
42935
  # s3_input_mode: "Pipe", # accepts Pipe, File
@@ -42303,6 +42941,28 @@ module Aws::SageMaker
42303
42941
  # start_time_offset: "MonitoringTimeOffsetString",
42304
42942
  # end_time_offset: "MonitoringTimeOffsetString",
42305
42943
  # },
42944
+ # batch_transform_input: {
42945
+ # data_captured_destination_s3_uri: "DestinationS3Uri", # required
42946
+ # dataset_format: { # required
42947
+ # csv: {
42948
+ # header: false,
42949
+ # },
42950
+ # json: {
42951
+ # line: false,
42952
+ # },
42953
+ # parquet: {
42954
+ # },
42955
+ # },
42956
+ # local_path: "ProcessingLocalPath", # required
42957
+ # s3_input_mode: "Pipe", # accepts Pipe, File
42958
+ # s3_data_distribution_type: "FullyReplicated", # accepts FullyReplicated, ShardedByS3Key
42959
+ # features_attribute: "String",
42960
+ # inference_attribute: "String",
42961
+ # probability_attribute: "String",
42962
+ # probability_threshold_attribute: 1.0,
42963
+ # start_time_offset: "MonitoringTimeOffsetString",
42964
+ # end_time_offset: "MonitoringTimeOffsetString",
42965
+ # },
42306
42966
  # },
42307
42967
  # ],
42308
42968
  # monitoring_output_config: { # required