# ModelQualityAppSpecificationProperty

Container image configuration object for the monitoring job.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 modelQualityAppSpecificationProperty: sagemaker.CfnModelQualityJobDefinition.ModelQualityAppSpecificationProperty = {
  imageUri: 'imageUri',
  problemType: 'problemType',

  // the properties below are optional
  containerArguments: ['containerArguments'],
  containerEntrypoint: ['containerEntrypoint'],
  environment: {
    environmentKey: 'environment',
  },
  postAnalyticsProcessorSourceUri: 'postAnalyticsProcessorSourceUri',
  recordPreprocessorSourceUri: 'recordPreprocessorSourceUri',
};
```

Python:

```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_app_specification_property = sagemaker.CfnModelQualityJobDefinition.ModelQualityAppSpecificationProperty(
    image_uri="imageUri",
    problem_type="problemType",

    # the properties below are optional
    container_arguments=["containerArguments"],
    container_entrypoint=["containerEntrypoint"],
    environment={
        "environment_key": "environment"
    },
    post_analytics_processor_source_uri="postAnalyticsProcessorSourceUri",
    record_preprocessor_source_uri="recordPreprocessorSourceUri"
)
```

Java:

```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.*;

ModelQualityAppSpecificationProperty modelQualityAppSpecificationProperty = ModelQualityAppSpecificationProperty.builder()
        .imageUri("imageUri")
        .problemType("problemType")

        // the properties below are optional
        .containerArguments(List.of("containerArguments"))
        .containerEntrypoint(List.of("containerEntrypoint"))
        .environment(Map.of(
                "environmentKey", "environment"))
        .postAnalyticsProcessorSourceUri("postAnalyticsProcessorSourceUri")
        .recordPreprocessorSourceUri("recordPreprocessorSourceUri")
        .build();
```

C# / .NET:

```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 modelQualityAppSpecificationProperty = new ModelQualityAppSpecificationProperty {
    ImageUri = "imageUri",
    ProblemType = "problemType",

    // the properties below are optional
    ContainerArguments = new [] { "containerArguments" },
    ContainerEntrypoint = new [] { "containerEntrypoint" },
    Environment = new Dictionary<string, string> {
        { "environmentKey", "environment" }
    },
    PostAnalyticsProcessorSourceUri = "postAnalyticsProcessorSourceUri",
    RecordPreprocessorSourceUri = "recordPreprocessorSourceUri"
};
```

Golang:

```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"

modelQualityAppSpecificationProperty := &ModelQualityAppSpecificationProperty{
	ImageUri: jsii.String("imageUri"),
	ProblemType: jsii.String("problemType"),

	// the properties below are optional
	ContainerArguments: []*string{
		jsii.String("containerArguments"),
	},
	ContainerEntrypoint: []*string{
		jsii.String("containerEntrypoint"),
	},
	Environment: map[string]*string{
		"environmentKey": jsii.String("environment"),
	},
	PostAnalyticsProcessorSourceUri: jsii.String("postAnalyticsProcessorSourceUri"),
	RecordPreprocessorSourceUri: jsii.String("recordPreprocessorSourceUri"),
}
```

## Properties

- `containerArguments`: string[] — An array of arguments for the container used to run the monitoring job.

- `containerEntrypoint`: string[] — Specifies the entrypoint for a container that the monitoring job runs.

- `environment`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Sets the environment variables in the container that the monitoring job runs.

- `imageUri`: string (required) — The address of the container image that the monitoring job runs.

- `postAnalyticsProcessorSourceUri`: string — An Amazon S3 URI to a script that is called after analysis has been performed.

  Applicable only for the built-in (first party) containers.

- `problemType`: string (required) — The machine learning problem type of the model that the monitoring job monitors.

- `recordPreprocessorSourceUri`: string — An Amazon S3 URI to a script that is called per row prior to running analysis.

  It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers.
