Skip to content
v2.278.0

ModelQualityJobInputProperty Struct ​

The input for the model quality monitoring job.

Currently endpoints are supported for input for model quality monitoring jobs.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const modelQualityJobInputProperty: sagemaker.CfnModelQualityJobDefinition.ModelQualityJobInputProperty = {
  groundTruthS3Input: {
    s3Uri: 's3Uri',
  },

  // the properties below are optional
  batchTransformInput: {
    dataCapturedDestinationS3Uri: 'dataCapturedDestinationS3Uri',
    datasetFormat: {
      csv: {
        header: false,
      },
      json: {
        line: false,
      },
      parquet: false,
    },
    localPath: 'localPath',

    // the properties below are optional
    endTimeOffset: 'endTimeOffset',
    inferenceAttribute: 'inferenceAttribute',
    probabilityAttribute: 'probabilityAttribute',
    probabilityThresholdAttribute: 123,
    s3DataDistributionType: 's3DataDistributionType',
    s3InputMode: 's3InputMode',
    startTimeOffset: 'startTimeOffset',
  },
  endpointInput: {
    endpointName: 'endpointName',
    localPath: 'localPath',

    // the properties below are optional
    endTimeOffset: 'endTimeOffset',
    inferenceAttribute: 'inferenceAttribute',
    probabilityAttribute: 'probabilityAttribute',
    probabilityThresholdAttribute: 123,
    s3DataDistributionType: 's3DataDistributionType',
    s3InputMode: 's3InputMode',
    startTimeOffset: 'startTimeOffset',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

model_quality_job_input_property = sagemaker.CfnModelQualityJobDefinition.ModelQualityJobInputProperty(
    ground_truth_s3_input=sagemaker.CfnModelQualityJobDefinition.MonitoringGroundTruthS3InputProperty(
        s3_uri="s3Uri"
    ),

    # the properties below are optional
    batch_transform_input=sagemaker.CfnModelQualityJobDefinition.BatchTransformInputProperty(
        data_captured_destination_s3_uri="dataCapturedDestinationS3Uri",
        dataset_format=sagemaker.CfnModelQualityJobDefinition.DatasetFormatProperty(
            csv=sagemaker.CfnModelQualityJobDefinition.CsvProperty(
                header=False
            ),
            json=sagemaker.CfnModelQualityJobDefinition.JsonProperty(
                line=False
            ),
            parquet=False
        ),
        local_path="localPath",

        # the properties below are optional
        end_time_offset="endTimeOffset",
        inference_attribute="inferenceAttribute",
        probability_attribute="probabilityAttribute",
        probability_threshold_attribute=123,
        s3_data_distribution_type="s3DataDistributionType",
        s3_input_mode="s3InputMode",
        start_time_offset="startTimeOffset"
    ),
    endpoint_input=sagemaker.CfnModelQualityJobDefinition.EndpointInputProperty(
        endpoint_name="endpointName",
        local_path="localPath",

        # the properties below are optional
        end_time_offset="endTimeOffset",
        inference_attribute="inferenceAttribute",
        probability_attribute="probabilityAttribute",
        probability_threshold_attribute=123,
        s3_data_distribution_type="s3DataDistributionType",
        s3_input_mode="s3InputMode",
        start_time_offset="startTimeOffset"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

ModelQualityJobInputProperty modelQualityJobInputProperty = ModelQualityJobInputProperty.builder()
        .groundTruthS3Input(MonitoringGroundTruthS3InputProperty.builder()
                .s3Uri("s3Uri")
                .build())

        // the properties below are optional
        .batchTransformInput(BatchTransformInputProperty.builder()
                .dataCapturedDestinationS3Uri("dataCapturedDestinationS3Uri")
                .datasetFormat(DatasetFormatProperty.builder()
                        .csv(CsvProperty.builder()
                                .header(false)
                                .build())
                        .json(JsonProperty.builder()
                                .line(false)
                                .build())
                        .parquet(false)
                        .build())
                .localPath("localPath")

                // the properties below are optional
                .endTimeOffset("endTimeOffset")
                .inferenceAttribute("inferenceAttribute")
                .probabilityAttribute("probabilityAttribute")
                .probabilityThresholdAttribute(123)
                .s3DataDistributionType("s3DataDistributionType")
                .s3InputMode("s3InputMode")
                .startTimeOffset("startTimeOffset")
                .build())
        .endpointInput(EndpointInputProperty.builder()
                .endpointName("endpointName")
                .localPath("localPath")

                // the properties below are optional
                .endTimeOffset("endTimeOffset")
                .inferenceAttribute("inferenceAttribute")
                .probabilityAttribute("probabilityAttribute")
                .probabilityThresholdAttribute(123)
                .s3DataDistributionType("s3DataDistributionType")
                .s3InputMode("s3InputMode")
                .startTimeOffset("startTimeOffset")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var modelQualityJobInputProperty = new ModelQualityJobInputProperty {
    GroundTruthS3Input = new MonitoringGroundTruthS3InputProperty {
        S3Uri = "s3Uri"
    },

    // the properties below are optional
    BatchTransformInput = new BatchTransformInputProperty {
        DataCapturedDestinationS3Uri = "dataCapturedDestinationS3Uri",
        DatasetFormat = new DatasetFormatProperty {
            Csv = new CsvProperty {
                Header = false
            },
            Json = new JsonProperty {
                Line = false
            },
            Parquet = false
        },
        LocalPath = "localPath",

        // the properties below are optional
        EndTimeOffset = "endTimeOffset",
        InferenceAttribute = "inferenceAttribute",
        ProbabilityAttribute = "probabilityAttribute",
        ProbabilityThresholdAttribute = 123,
        S3DataDistributionType = "s3DataDistributionType",
        S3InputMode = "s3InputMode",
        StartTimeOffset = "startTimeOffset"
    },
    EndpointInput = new EndpointInputProperty {
        EndpointName = "endpointName",
        LocalPath = "localPath",

        // the properties below are optional
        EndTimeOffset = "endTimeOffset",
        InferenceAttribute = "inferenceAttribute",
        ProbabilityAttribute = "probabilityAttribute",
        ProbabilityThresholdAttribute = 123,
        S3DataDistributionType = "s3DataDistributionType",
        S3InputMode = "s3InputMode",
        StartTimeOffset = "startTimeOffset"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

modelQualityJobInputProperty := &ModelQualityJobInputProperty{
	GroundTruthS3Input: &MonitoringGroundTruthS3InputProperty{
		S3Uri: jsii.String("s3Uri"),
	},

	// the properties below are optional
	BatchTransformInput: &BatchTransformInputProperty{
		DataCapturedDestinationS3Uri: jsii.String("dataCapturedDestinationS3Uri"),
		DatasetFormat: &DatasetFormatProperty{
			Csv: &CsvProperty{
				Header: jsii.Boolean(false),
			},
			Json: &JsonProperty{
				Line: jsii.Boolean(false),
			},
			Parquet: jsii.Boolean(false),
		},
		LocalPath: jsii.String("localPath"),

		// the properties below are optional
		EndTimeOffset: jsii.String("endTimeOffset"),
		InferenceAttribute: jsii.String("inferenceAttribute"),
		ProbabilityAttribute: jsii.String("probabilityAttribute"),
		ProbabilityThresholdAttribute: jsii.Number(123),
		S3DataDistributionType: jsii.String("s3DataDistributionType"),
		S3InputMode: jsii.String("s3InputMode"),
		StartTimeOffset: jsii.String("startTimeOffset"),
	},
	EndpointInput: &EndpointInputProperty{
		EndpointName: jsii.String("endpointName"),
		LocalPath: jsii.String("localPath"),

		// the properties below are optional
		EndTimeOffset: jsii.String("endTimeOffset"),
		InferenceAttribute: jsii.String("inferenceAttribute"),
		ProbabilityAttribute: jsii.String("probabilityAttribute"),
		ProbabilityThresholdAttribute: jsii.Number(123),
		S3DataDistributionType: jsii.String("s3DataDistributionType"),
		S3InputMode: jsii.String("s3InputMode"),
		StartTimeOffset: jsii.String("startTimeOffset"),
	},
}

Properties ​

batchTransformInputoptionalIResolvable | CfnModelQualityJobDefinition.BatchTransformInputPropertybatch_transform_inputoptionaltyping.Union[IResolvable, BatchTransformInputProperty]batchTransformInputoptionalIResolvableBatchTransformInputoptionalIResolvableBatchTransformInputoptionalinterface{} #
Input object for the batch transform job.
endpointInputoptionalIResolvable | CfnModelQualityJobDefinition.EndpointInputPropertyendpoint_inputoptionaltyping.Union[IResolvable, EndpointInputProperty]endpointInputoptionalIResolvableEndpointInputoptionalIResolvableEndpointInputoptionalinterface{} #
Input object for the endpoint.
groundTruthS3InputIResolvable | CfnModelQualityJobDefinition.MonitoringGroundTruthS3InputPropertyground_truth_s3_inputtyping.Union[IResolvable, MonitoringGroundTruthS3InputProperty]groundTruthS3InputIResolvableGroundTruthS3InputIResolvableGroundTruthS3Inputinterface{} required #
The ground truth label provided for the model.