Class: AWSCDK::Sagemaker::CfnInferenceExperiment::DataStorageConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, content_type: nil, kms_key: nil) ⇒ DataStorageConfigProperty

Returns a new instance of DataStorageConfigProperty.

Parameters:

  • destination (String)

    The Amazon S3 bucket where the inference request and response data is stored.

  • content_type (AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::CaptureContentTypeHeaderProperty, nil) (defaults to: nil)

    Configuration specifying how to treat different headers.

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

    The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.



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_typeAWSCDK::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

#destinationString (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_keyString? (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_propertiesObject



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_jsiiObject



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