Class: AWSCDK::Sagemaker::CfnModelQualityJobDefinition::ModelQualityAppSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model_quality_job_definition.rb

Overview

Container image configuration object for the monitoring job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image_uri:, problem_type:, container_arguments: nil, container_entrypoint: nil, environment: nil, post_analytics_processor_source_uri: nil, record_preprocessor_source_uri: nil) ⇒ ModelQualityAppSpecificationProperty

Returns a new instance of ModelQualityAppSpecificationProperty.

Parameters:

  • image_uri (String)

    The address of the container image that the monitoring job runs.

  • problem_type (String)

    The machine learning problem type of the model that the monitoring job monitors.

  • container_arguments (Array<String>, nil) (defaults to: nil)

    An array of arguments for the container used to run the monitoring job.

  • container_entrypoint (Array<String>, nil) (defaults to: nil)

    Specifies the entrypoint for a container that the monitoring job runs.

  • environment (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    Sets the environment variables in the container that the monitoring job runs.

  • post_analytics_processor_source_uri (String, nil) (defaults to: nil)

    An Amazon S3 URI to a script that is called after analysis has been performed.

  • record_preprocessor_source_uri (String, nil) (defaults to: nil)

    An Amazon S3 URI to a script that is called per row prior to running analysis.



1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1134

def initialize(image_uri:, problem_type:, container_arguments: nil, container_entrypoint: nil, environment: nil, post_analytics_processor_source_uri: nil, record_preprocessor_source_uri: nil)
  @image_uri = image_uri
  Jsii::Type.check_type(@image_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageUri")
  @problem_type = problem_type
  Jsii::Type.check_type(@problem_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "problemType")
  @container_arguments = container_arguments
  Jsii::Type.check_type(@container_arguments, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerArguments") unless @container_arguments.nil?
  @container_entrypoint = container_entrypoint
  Jsii::Type.check_type(@container_entrypoint, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerEntrypoint") unless @container_entrypoint.nil?
  @environment = environment
  Jsii::Type.check_type(@environment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "environment") unless @environment.nil?
  @post_analytics_processor_source_uri = post_analytics_processor_source_uri
  Jsii::Type.check_type(@post_analytics_processor_source_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "postAnalyticsProcessorSourceUri") unless @post_analytics_processor_source_uri.nil?
  @record_preprocessor_source_uri = record_preprocessor_source_uri
  Jsii::Type.check_type(@record_preprocessor_source_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recordPreprocessorSourceUri") unless @record_preprocessor_source_uri.nil?
end

Instance Attribute Details

#container_argumentsArray<String>? (readonly)

An array of arguments for the container used to run the monitoring job.



1165
1166
1167
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1165

def container_arguments
  @container_arguments
end

#container_entrypointArray<String>? (readonly)

Specifies the entrypoint for a container that the monitoring job runs.



1170
1171
1172
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1170

def container_entrypoint
  @container_entrypoint
end

#environmentAWSCDK::IResolvable, ... (readonly)

Sets the environment variables in the container that the monitoring job runs.



1175
1176
1177
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1175

def environment
  @environment
end

#image_uriString (readonly)

The address of the container image that the monitoring job runs.



1155
1156
1157
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1155

def image_uri
  @image_uri
end

#post_analytics_processor_source_uriString? (readonly)

An Amazon S3 URI to a script that is called after analysis has been performed.

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



1182
1183
1184
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1182

def post_analytics_processor_source_uri
  @post_analytics_processor_source_uri
end

#problem_typeString (readonly)

The machine learning problem type of the model that the monitoring job monitors.



1160
1161
1162
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1160

def problem_type
  @problem_type
end

#record_preprocessor_source_uriString? (readonly)

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.



1189
1190
1191
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1189

def record_preprocessor_source_uri
  @record_preprocessor_source_uri
end

Class Method Details

.jsii_propertiesObject



1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1191

def self.jsii_properties
  {
    :image_uri => "imageUri",
    :problem_type => "problemType",
    :container_arguments => "containerArguments",
    :container_entrypoint => "containerEntrypoint",
    :environment => "environment",
    :post_analytics_processor_source_uri => "postAnalyticsProcessorSourceUri",
    :record_preprocessor_source_uri => "recordPreprocessorSourceUri",
  }
end

Instance Method Details

#to_jsiiObject



1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1203

def to_jsii
  result = {}
  result.merge!({
    "imageUri" => @image_uri,
    "problemType" => @problem_type,
    "containerArguments" => @container_arguments,
    "containerEntrypoint" => @container_entrypoint,
    "environment" => @environment,
    "postAnalyticsProcessorSourceUri" => @post_analytics_processor_source_uri,
    "recordPreprocessorSourceUri" => @record_preprocessor_source_uri,
  })
  result.compact
end