Class: AWSCDK::APIGateway::SagemakerIntegration
- Inherits:
-
AWSIntegration
- Object
- AWSIntegration
- AWSCDK::APIGateway::SagemakerIntegration
- Defined in:
- api_gateway/sagemaker_integration.rb
Overview
Integrates an AWS Sagemaker Endpoint to an API Gateway method.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(method) ⇒ AWSCDK::APIGateway::IntegrationConfig
Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.
-
#initialize(endpoint, options = nil) ⇒ SagemakerIntegration
constructor
A new instance of SagemakerIntegration.
Constructor Details
#initialize(endpoint, options = nil) ⇒ SagemakerIntegration
Returns a new instance of SagemakerIntegration.
16 17 18 19 20 21 |
# File 'api_gateway/sagemaker_integration.rb', line 16 def initialize(endpoint, = nil) = .is_a?(Hash) ? ::AWSCDK::APIGateway::SagemakerIntegrationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(endpoint, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLklFbmRwb2ludCJ9")), "endpoint") Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5TYWdlbWFrZXJJbnRlZ3JhdGlvbk9wdGlvbnMifQ==")), "options") unless .nil? Jsii::Object.instance_method(:initialize).bind(self).call(endpoint, ) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
23 24 25 26 27 |
# File 'api_gateway/sagemaker_integration.rb', line 23 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(method) ⇒ AWSCDK::APIGateway::IntegrationConfig
Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.
33 34 35 36 |
# File 'api_gateway/sagemaker_integration.rb', line 33 def bind(method) Jsii::Type.check_type(method, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5NZXRob2QifQ==")), "method") jsii_call_method("bind", [method]) end |