Class: AWSCDK::Sagemaker::CfnInferenceExperiment::CaptureContentTypeHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::CaptureContentTypeHeaderProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
Configuration specifying how to treat different headers.
If no headers are specified Amazon SageMaker AI will by default base64 encode when capturing the data.
Instance Attribute Summary collapse
-
#csv_content_types ⇒ Array<String>?
readonly
The list of all content type headers that Amazon SageMaker AI will treat as CSV and capture accordingly.
-
#json_content_types ⇒ Array<String>?
readonly
The list of all content type headers that SageMaker AI will treat as JSON and capture accordingly.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(csv_content_types: nil, json_content_types: nil) ⇒ CaptureContentTypeHeaderProperty
constructor
A new instance of CaptureContentTypeHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(csv_content_types: nil, json_content_types: nil) ⇒ CaptureContentTypeHeaderProperty
Returns a new instance of CaptureContentTypeHeaderProperty.
772 773 774 775 776 777 |
# File 'sagemaker/cfn_inference_experiment.rb', line 772 def initialize(csv_content_types: nil, json_content_types: nil) @csv_content_types = csv_content_types Jsii::Type.check_type(@csv_content_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "csvContentTypes") unless @csv_content_types.nil? @json_content_types = json_content_types Jsii::Type.check_type(@json_content_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "jsonContentTypes") unless @json_content_types.nil? end |
Instance Attribute Details
#csv_content_types ⇒ Array<String>? (readonly)
The list of all content type headers that Amazon SageMaker AI will treat as CSV and capture accordingly.
783 784 785 |
# File 'sagemaker/cfn_inference_experiment.rb', line 783 def csv_content_types @csv_content_types end |
#json_content_types ⇒ Array<String>? (readonly)
The list of all content type headers that SageMaker AI will treat as JSON and capture accordingly.
788 789 790 |
# File 'sagemaker/cfn_inference_experiment.rb', line 788 def json_content_types @json_content_types end |
Class Method Details
.jsii_properties ⇒ Object
790 791 792 793 794 795 |
# File 'sagemaker/cfn_inference_experiment.rb', line 790 def self.jsii_properties { :csv_content_types => "csvContentTypes", :json_content_types => "jsonContentTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
797 798 799 800 801 802 803 804 |
# File 'sagemaker/cfn_inference_experiment.rb', line 797 def to_jsii result = {} result.merge!({ "csvContentTypes" => @csv_content_types, "jsonContentTypes" => @json_content_types, }) result.compact end |