Class: AWSCDK::Sagemaker::CfnEndpointConfig::CaptureContentTypeHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnEndpointConfig::CaptureContentTypeHeaderProperty
- Defined in:
- sagemaker/cfn_endpoint_config.rb
Overview
Specifies the JSON and CSV content types of the data that the endpoint captures.
Instance Attribute Summary collapse
-
#csv_content_types ⇒ Array<String>?
readonly
A list of the CSV content types of the data that the endpoint captures.
-
#json_content_types ⇒ Array<String>?
readonly
A list of the JSON content types of the data that the endpoint captures.
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.
891 892 893 894 895 896 |
# File 'sagemaker/cfn_endpoint_config.rb', line 891 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)
A list of the CSV content types of the data that the endpoint captures.
For the endpoint to capture the data, you must also specify the content type when you invoke the endpoint.
904 905 906 |
# File 'sagemaker/cfn_endpoint_config.rb', line 904 def csv_content_types @csv_content_types end |
#json_content_types ⇒ Array<String>? (readonly)
A list of the JSON content types of the data that the endpoint captures.
For the endpoint to capture the data, you must also specify the content type when you invoke the endpoint.
911 912 913 |
# File 'sagemaker/cfn_endpoint_config.rb', line 911 def json_content_types @json_content_types end |
Class Method Details
.jsii_properties ⇒ Object
913 914 915 916 917 918 |
# File 'sagemaker/cfn_endpoint_config.rb', line 913 def self.jsii_properties { :csv_content_types => "csvContentTypes", :json_content_types => "jsonContentTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
920 921 922 923 924 925 926 927 |
# File 'sagemaker/cfn_endpoint_config.rb', line 920 def to_jsii result = {} result.merge!({ "csvContentTypes" => @csv_content_types, "jsonContentTypes" => @json_content_types, }) result.compact end |