Class: AWSCDK::Sagemaker::CfnDataQualityJobDefinition::EndpointInputProperty

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

Overview

Input object for the endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_name:, local_path:, exclude_features_attribute: nil, s3_data_distribution_type: nil, s3_input_mode: nil) ⇒ EndpointInputProperty

Returns a new instance of EndpointInputProperty.

Parameters:

  • endpoint_name (String)

    An endpoint in customer's account which has enabled DataCaptureConfig enabled.

  • local_path (String)

    Path to the filesystem where the endpoint data is available to the container.

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

    The attributes of the input data to exclude from the analysis.

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

    Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key.

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

    Whether the Pipe or File is used as the input mode for transferring data for the monitoring job.



1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1123

def initialize(endpoint_name:, local_path:, exclude_features_attribute: nil, s3_data_distribution_type: nil, s3_input_mode: nil)
  @endpoint_name = endpoint_name
  Jsii::Type.check_type(@endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointName")
  @local_path = local_path
  Jsii::Type.check_type(@local_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localPath")
  @exclude_features_attribute = exclude_features_attribute
  Jsii::Type.check_type(@exclude_features_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "excludeFeaturesAttribute") unless @exclude_features_attribute.nil?
  @s3_data_distribution_type = s3_data_distribution_type
  Jsii::Type.check_type(@s3_data_distribution_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3DataDistributionType") unless @s3_data_distribution_type.nil?
  @s3_input_mode = s3_input_mode
  Jsii::Type.check_type(@s3_input_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3InputMode") unless @s3_input_mode.nil?
end

Instance Attribute Details

#endpoint_nameString (readonly)

An endpoint in customer's account which has enabled DataCaptureConfig enabled.



1140
1141
1142
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1140

def endpoint_name
  @endpoint_name
end

#exclude_features_attributeString? (readonly)

The attributes of the input data to exclude from the analysis.



1150
1151
1152
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1150

def exclude_features_attribute
  @exclude_features_attribute
end

#local_pathString (readonly)

Path to the filesystem where the endpoint data is available to the container.



1145
1146
1147
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1145

def local_path
  @local_path
end

#s3_data_distribution_typeString? (readonly)

Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key.

Defaults to FullyReplicated



1157
1158
1159
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1157

def s3_data_distribution_type
  @s3_data_distribution_type
end

#s3_input_modeString? (readonly)

Whether the Pipe or File is used as the input mode for transferring data for the monitoring job.

Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .



1164
1165
1166
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1164

def s3_input_mode
  @s3_input_mode
end

Class Method Details

.jsii_propertiesObject



1166
1167
1168
1169
1170
1171
1172
1173
1174
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1166

def self.jsii_properties
  {
    :endpoint_name => "endpointName",
    :local_path => "localPath",
    :exclude_features_attribute => "excludeFeaturesAttribute",
    :s3_data_distribution_type => "s3DataDistributionType",
    :s3_input_mode => "s3InputMode",
  }
end

Instance Method Details

#to_jsiiObject



1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1176

def to_jsii
  result = {}
  result.merge!({
    "endpointName" => @endpoint_name,
    "localPath" => @local_path,
    "excludeFeaturesAttribute" => @exclude_features_attribute,
    "s3DataDistributionType" => @s3_data_distribution_type,
    "s3InputMode" => @s3_input_mode,
  })
  result.compact
end