Class: AWSCDK::Sagemaker::CfnInferenceExperiment::DataStorageConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::DataStorageConfigProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
The Amazon S3 location and configuration for storing inference request and response data.
This is an optional parameter that you can use for data capture. For more information, see Capture data .
Instance Attribute Summary collapse
-
#content_type ⇒ AWSCDK::IResolvable, ...
readonly
Configuration specifying how to treat different headers.
-
#destination ⇒ String
readonly
The Amazon S3 bucket where the inference request and response data is stored.
-
#kms_key ⇒ String?
readonly
The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, content_type: nil, kms_key: nil) ⇒ DataStorageConfigProperty
constructor
A new instance of DataStorageConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, content_type: nil, kms_key: nil) ⇒ DataStorageConfigProperty
Returns a new instance of DataStorageConfigProperty.
818 819 820 821 822 823 824 825 |
# File 'sagemaker/cfn_inference_experiment.rb', line 818 def initialize(destination:, content_type: nil, kms_key: nil) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destination") @content_type = content_type.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnInferenceExperiment::CaptureContentTypeHeaderProperty.new(**content_type.transform_keys(&:to_sym)) : content_type Jsii::Type.check_type(@content_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuSW5mZXJlbmNlRXhwZXJpbWVudC5DYXB0dXJlQ29udGVudFR5cGVIZWFkZXJQcm9wZXJ0eSJ9XX19")), "contentType") unless @content_type.nil? @kms_key = kms_key Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKey") unless @kms_key.nil? end |
Instance Attribute Details
#content_type ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration specifying how to treat different headers.
If no headers are specified SageMaker will by default base64 encode when capturing the data.
838 839 840 |
# File 'sagemaker/cfn_inference_experiment.rb', line 838 def content_type @content_type end |
#destination ⇒ String (readonly)
The Amazon S3 bucket where the inference request and response data is stored.
831 832 833 |
# File 'sagemaker/cfn_inference_experiment.rb', line 831 def destination @destination end |
#kms_key ⇒ String? (readonly)
The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
843 844 845 |
# File 'sagemaker/cfn_inference_experiment.rb', line 843 def kms_key @kms_key end |
Class Method Details
.jsii_properties ⇒ Object
845 846 847 848 849 850 851 |
# File 'sagemaker/cfn_inference_experiment.rb', line 845 def self.jsii_properties { :destination => "destination", :content_type => "contentType", :kms_key => "kmsKey", } end |
Instance Method Details
#to_jsii ⇒ Object
853 854 855 856 857 858 859 860 861 |
# File 'sagemaker/cfn_inference_experiment.rb', line 853 def to_jsii result = {} result.merge!({ "destination" => @destination, "contentType" => @content_type, "kmsKey" => @kms_key, }) result.compact end |