Class: AWSCDK::Sagemaker::CfnDataQualityJobDefinition::DataQualityAppSpecificationProperty

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

Overview

Information about the container that a data quality monitoring job runs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DataQualityAppSpecificationProperty.

Parameters:

  • image_uri (String)

    The container image that the data quality monitoring job runs.

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

    The arguments to send to the container that the monitoring job runs.

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

    The entrypoint for a container used to run a monitoring job.

  • 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.



882
883
884
885
886
887
888
889
890
891
892
893
894
895
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 882

def initialize(image_uri:, 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")
  @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)

The arguments to send to the container that the monitoring job runs.



906
907
908
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 906

def container_arguments
  @container_arguments
end

#container_entrypointArray<String>? (readonly)

The entrypoint for a container used to run a monitoring job.



911
912
913
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 911

def container_entrypoint
  @container_entrypoint
end

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

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



916
917
918
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 916

def environment
  @environment
end

#image_uriString (readonly)

The container image that the data quality monitoring job runs.



901
902
903
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 901

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.



923
924
925
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 923

def post_analytics_processor_source_uri
  @post_analytics_processor_source_uri
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.



930
931
932
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 930

def record_preprocessor_source_uri
  @record_preprocessor_source_uri
end

Class Method Details

.jsii_propertiesObject



932
933
934
935
936
937
938
939
940
941
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 932

def self.jsii_properties
  {
    :image_uri => "imageUri",
    :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



943
944
945
946
947
948
949
950
951
952
953
954
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 943

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