Class: AWSCDK::Sagemaker::CfnEndpointConfig::AsyncInferenceOutputConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnEndpointConfig::AsyncInferenceOutputConfigProperty
- Defined in:
- sagemaker/cfn_endpoint_config.rb
Overview
Specifies the configuration for asynchronous inference invocation outputs.
Instance Attribute Summary collapse
-
#kms_key_id ⇒ String?
readonly
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3.
-
#notification_config ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the configuration for notifications of inference results for asynchronous inference.
-
#s3_failure_path ⇒ String?
readonly
The Amazon S3 location to upload failure inference responses to.
-
#s3_output_path ⇒ String?
readonly
The Amazon S3 location to upload inference responses to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kms_key_id: nil, notification_config: nil, s3_failure_path: nil, s3_output_path: nil) ⇒ AsyncInferenceOutputConfigProperty
constructor
A new instance of AsyncInferenceOutputConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kms_key_id: nil, notification_config: nil, s3_failure_path: nil, s3_output_path: nil) ⇒ AsyncInferenceOutputConfigProperty
Returns a new instance of AsyncInferenceOutputConfigProperty.
793 794 795 796 797 798 799 800 801 802 |
# File 'sagemaker/cfn_endpoint_config.rb', line 793 def initialize(kms_key_id: nil, notification_config: nil, s3_failure_path: nil, s3_output_path: nil) @kms_key_id = kms_key_id Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil? @notification_config = notification_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnEndpointConfig::AsyncInferenceNotificationConfigProperty.new(**notification_config.transform_keys(&:to_sym)) : notification_config Jsii::Type.check_type(@notification_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRW5kcG9pbnRDb25maWcuQXN5bmNJbmZlcmVuY2VOb3RpZmljYXRpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "notificationConfig") unless @notification_config.nil? @s3_failure_path = s3_failure_path Jsii::Type.check_type(@s3_failure_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3FailurePath") unless @s3_failure_path.nil? @s3_output_path = s3_output_path Jsii::Type.check_type(@s3_output_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3OutputPath") unless @s3_output_path.nil? end |
Instance Attribute Details
#kms_key_id ⇒ String? (readonly)
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt the asynchronous inference output in Amazon S3.
808 809 810 |
# File 'sagemaker/cfn_endpoint_config.rb', line 808 def kms_key_id @kms_key_id end |
#notification_config ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the configuration for notifications of inference results for asynchronous inference.
813 814 815 |
# File 'sagemaker/cfn_endpoint_config.rb', line 813 def notification_config @notification_config end |
#s3_failure_path ⇒ String? (readonly)
The Amazon S3 location to upload failure inference responses to.
818 819 820 |
# File 'sagemaker/cfn_endpoint_config.rb', line 818 def s3_failure_path @s3_failure_path end |
#s3_output_path ⇒ String? (readonly)
The Amazon S3 location to upload inference responses to.
823 824 825 |
# File 'sagemaker/cfn_endpoint_config.rb', line 823 def s3_output_path @s3_output_path end |
Class Method Details
.jsii_properties ⇒ Object
825 826 827 828 829 830 831 832 |
# File 'sagemaker/cfn_endpoint_config.rb', line 825 def self.jsii_properties { :kms_key_id => "kmsKeyId", :notification_config => "notificationConfig", :s3_failure_path => "s3FailurePath", :s3_output_path => "s3OutputPath", } end |
Instance Method Details
#to_jsii ⇒ Object
834 835 836 837 838 839 840 841 842 843 |
# File 'sagemaker/cfn_endpoint_config.rb', line 834 def to_jsii result = {} result.merge!({ "kmsKeyId" => @kms_key_id, "notificationConfig" => @notification_config, "s3FailurePath" => @s3_failure_path, "s3OutputPath" => @s3_output_path, }) result.compact end |