Class: AWSCDK::APIGateway::AWSIntegration
- Inherits:
-
Integration
- Object
- Integration
- AWSCDK::APIGateway::AWSIntegration
- Defined in:
- api_gateway/aws_integration.rb
Overview
This type of integration lets an API expose AWS service actions.
It is intended for calling all AWS service actions, but is not recommended for calling a Lambda function, because the Lambda custom integration is a legacy technology.
Direct Known Subclasses
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(props) ⇒ AWSIntegration
constructor
A new instance of AWSIntegration.
Constructor Details
#initialize(props) ⇒ AWSIntegration
Returns a new instance of AWSIntegration.
14 15 16 17 18 |
# File 'api_gateway/aws_integration.rb', line 14 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::APIGateway::AWSIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5Bd3NJbnRlZ3JhdGlvblByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 |
# File 'api_gateway/aws_integration.rb', line 20 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.
30 31 32 33 |
# File 'api_gateway/aws_integration.rb', line 30 def bind(method) Jsii::Type.check_type(method, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5NZXRob2QifQ==")), "method") jsii_call_method("bind", [method]) end |