Documentation ¶
Overview ¶
This module is deprecated. All constructs are now available under aws-cdk-lib/aws-apigatewayv2-integrations
Index ¶
- func NewHttpAlbIntegration_Override(h HttpAlbIntegration, id *string, ...)
- func NewHttpLambdaIntegration_Override(h HttpLambdaIntegration, id *string, handler awslambda.IFunction, ...)
- func NewHttpNlbIntegration_Override(h HttpNlbIntegration, id *string, ...)
- func NewHttpServiceDiscoveryIntegration_Override(h HttpServiceDiscoveryIntegration, id *string, ...)
- func NewHttpUrlIntegration_Override(h HttpUrlIntegration, id *string, url *string, props *HttpUrlIntegrationProps)
- func NewWebSocketLambdaIntegration_Override(w WebSocketLambdaIntegration, id *string, handler awslambda.IFunction)
- func NewWebSocketMockIntegration_Override(w WebSocketMockIntegration, id *string)
- type HttpAlbIntegration
- type HttpAlbIntegrationProps
- type HttpLambdaIntegration
- type HttpLambdaIntegrationProps
- type HttpNlbIntegration
- type HttpNlbIntegrationProps
- type HttpPrivateIntegrationOptions
- type HttpServiceDiscoveryIntegration
- type HttpServiceDiscoveryIntegrationProps
- type HttpUrlIntegration
- type HttpUrlIntegrationProps
- type WebSocketLambdaIntegration
- type WebSocketMockIntegration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpAlbIntegration_Override ¶
func NewHttpAlbIntegration_Override(h HttpAlbIntegration, id *string, listener awselasticloadbalancingv2.IApplicationListener, props *HttpAlbIntegrationProps)
Deprecated.
func NewHttpLambdaIntegration_Override ¶
func NewHttpLambdaIntegration_Override(h HttpLambdaIntegration, id *string, handler awslambda.IFunction, props *HttpLambdaIntegrationProps)
Deprecated.
func NewHttpNlbIntegration_Override ¶
func NewHttpNlbIntegration_Override(h HttpNlbIntegration, id *string, listener awselasticloadbalancingv2.INetworkListener, props *HttpNlbIntegrationProps)
Deprecated.
func NewHttpServiceDiscoveryIntegration_Override ¶
func NewHttpServiceDiscoveryIntegration_Override(h HttpServiceDiscoveryIntegration, id *string, service awsservicediscovery.IService, props *HttpServiceDiscoveryIntegrationProps)
Deprecated.
func NewHttpUrlIntegration_Override ¶
func NewHttpUrlIntegration_Override(h HttpUrlIntegration, id *string, url *string, props *HttpUrlIntegrationProps)
Deprecated.
func NewWebSocketLambdaIntegration_Override ¶
func NewWebSocketLambdaIntegration_Override(w WebSocketLambdaIntegration, id *string, handler awslambda.IFunction)
Deprecated.
func NewWebSocketMockIntegration_Override ¶
func NewWebSocketMockIntegration_Override(w WebSocketMockIntegration, id *string)
Deprecated.
Types ¶
type HttpAlbIntegration ¶
type HttpAlbIntegration interface { awscdkapigatewayv2alpha.HttpRouteIntegration // Deprecated. ConnectionType() awscdkapigatewayv2alpha.HttpConnectionType // Deprecated. SetConnectionType(val awscdkapigatewayv2alpha.HttpConnectionType) // Deprecated. HttpMethod() awscdkapigatewayv2alpha.HttpMethod // Deprecated. SetHttpMethod(val awscdkapigatewayv2alpha.HttpMethod) // Deprecated. IntegrationType() awscdkapigatewayv2alpha.HttpIntegrationType // Deprecated. SetIntegrationType(val awscdkapigatewayv2alpha.HttpIntegrationType) // Deprecated. PayloadFormatVersion() awscdkapigatewayv2alpha.PayloadFormatVersion // Deprecated. SetPayloadFormatVersion(val awscdkapigatewayv2alpha.PayloadFormatVersion) // Bind this integration to the route. // Deprecated. Bind(options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.HttpRouteIntegrationConfig // Complete the binding of the integration to the route. // // In some cases, there is // some additional work to do, such as adding permissions for the API to access // the target. This work is necessary whether the integration has just been // created for this route or it is an existing one, previously created for other // routes. In most cases, however, concrete implementations do not need to // override this method. // Deprecated. CompleteBind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) }
The Application Load Balancer integration resource for HTTP API.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" vpc := ec2.NewVpc(this, jsii.String("VPC")) lb := elbv2.NewApplicationLoadBalancer(this, jsii.String("lb"), &ApplicationLoadBalancerProps{ Vpc: Vpc, }) listener := lb.AddListener(jsii.String("listener"), &BaseApplicationListenerProps{ Port: jsii.Number(80), }) listener.AddTargets(jsii.String("target"), &AddApplicationTargetsProps{ Port: jsii.Number(80), }) httpEndpoint := apigwv2.NewHttpApi(this, jsii.String("HttpProxyPrivateApi"), &HttpApiProps{ DefaultIntegration: awscdkapigatewayv2integrationsalpha.NewHttpAlbIntegration(jsii.String("DefaultIntegration"), listener), })
Deprecated.
func NewHttpAlbIntegration ¶
func NewHttpAlbIntegration(id *string, listener awselasticloadbalancingv2.IApplicationListener, props *HttpAlbIntegrationProps) HttpAlbIntegration
Deprecated.
type HttpAlbIntegrationProps ¶
type HttpAlbIntegrationProps struct { // The HTTP method that must be used to invoke the underlying HTTP proxy. // Default: HttpMethod.ANY // // Deprecated. Method awscdkapigatewayv2alpha.HttpMethod `field:"optional" json:"method" yaml:"method"` // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` // Specifies the server name to verified by HTTPS when calling the backend integration. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html // // Default: undefined private integration traffic will use HTTP protocol. // // Deprecated. SecureServerName *string `field:"optional" json:"secureServerName" yaml:"secureServerName"` // The vpc link to be used for the private integration. // Default: - a new VpcLink is created. // // Deprecated. VpcLink awscdkapigatewayv2alpha.IVpcLink `field:"optional" json:"vpcLink" yaml:"vpcLink"` }
Properties to initialize `HttpAlbIntegration`.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var lb applicationLoadBalancer listener := lb.AddListener(jsii.String("listener"), &BaseApplicationListenerProps{ Port: jsii.Number(80), }) listener.AddTargets(jsii.String("target"), &AddApplicationTargetsProps{ Port: jsii.Number(80), }) httpEndpoint := apigwv2.NewHttpApi(this, jsii.String("HttpProxyPrivateApi"), &HttpApiProps{ DefaultIntegration: awscdkapigatewayv2integrationsalpha.NewHttpAlbIntegration(jsii.String("DefaultIntegration"), listener, &HttpAlbIntegrationProps{ ParameterMapping: apigwv2.NewParameterMapping().Custom(jsii.String("myKey"), jsii.String("myValue")), }), })
Deprecated.
type HttpLambdaIntegration ¶
type HttpLambdaIntegration interface { awscdkapigatewayv2alpha.HttpRouteIntegration // Bind this integration to the route. // Deprecated. Bind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.HttpRouteIntegrationConfig // Complete the binding of the integration to the route. // // In some cases, there is // some additional work to do, such as adding permissions for the API to access // the target. This work is necessary whether the integration has just been // created for this route or it is an existing one, previously created for other // routes. In most cases, however, concrete implementations do not need to // override this method. // Deprecated. CompleteBind(options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) }
The Lambda Proxy integration resource for HTTP API.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var booksDefaultFn function booksIntegration := awscdkapigatewayv2integrationsalpha.NewHttpLambdaIntegration(jsii.String("BooksIntegration"), booksDefaultFn) httpApi := apigwv2.NewHttpApi(this, jsii.String("HttpApi")) httpApi.AddRoutes(&AddRoutesOptions{ Path: jsii.String("/books"), Methods: []httpMethod{ apigwv2.*httpMethod_GET, }, Integration: booksIntegration, })
Deprecated.
func NewHttpLambdaIntegration ¶
func NewHttpLambdaIntegration(id *string, handler awslambda.IFunction, props *HttpLambdaIntegrationProps) HttpLambdaIntegration
Deprecated.
type HttpLambdaIntegrationProps ¶
type HttpLambdaIntegrationProps struct { // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` // Version of the payload sent to the lambda handler. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html // // Default: PayloadFormatVersion.VERSION_2_0 // // Deprecated. PayloadFormatVersion awscdkapigatewayv2alpha.PayloadFormatVersion `field:"optional" json:"payloadFormatVersion" yaml:"payloadFormatVersion"` }
Lambda Proxy integration properties.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import apigatewayv2_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha" import apigatewayv2_integrations_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var parameterMapping parameterMapping var payloadFormatVersion payloadFormatVersion httpLambdaIntegrationProps := &HttpLambdaIntegrationProps{ ParameterMapping: parameterMapping, PayloadFormatVersion: payloadFormatVersion, }
Deprecated.
type HttpNlbIntegration ¶
type HttpNlbIntegration interface { awscdkapigatewayv2alpha.HttpRouteIntegration // Deprecated. ConnectionType() awscdkapigatewayv2alpha.HttpConnectionType // Deprecated. SetConnectionType(val awscdkapigatewayv2alpha.HttpConnectionType) // Deprecated. HttpMethod() awscdkapigatewayv2alpha.HttpMethod // Deprecated. SetHttpMethod(val awscdkapigatewayv2alpha.HttpMethod) // Deprecated. IntegrationType() awscdkapigatewayv2alpha.HttpIntegrationType // Deprecated. SetIntegrationType(val awscdkapigatewayv2alpha.HttpIntegrationType) // Deprecated. PayloadFormatVersion() awscdkapigatewayv2alpha.PayloadFormatVersion // Deprecated. SetPayloadFormatVersion(val awscdkapigatewayv2alpha.PayloadFormatVersion) // Bind this integration to the route. // Deprecated. Bind(options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.HttpRouteIntegrationConfig // Complete the binding of the integration to the route. // // In some cases, there is // some additional work to do, such as adding permissions for the API to access // the target. This work is necessary whether the integration has just been // created for this route or it is an existing one, previously created for other // routes. In most cases, however, concrete implementations do not need to // override this method. // Deprecated. CompleteBind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) }
The Network Load Balancer integration resource for HTTP API.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" vpc := ec2.NewVpc(this, jsii.String("VPC")) lb := elbv2.NewNetworkLoadBalancer(this, jsii.String("lb"), &NetworkLoadBalancerProps{ Vpc: Vpc, }) listener := lb.AddListener(jsii.String("listener"), &BaseNetworkListenerProps{ Port: jsii.Number(80), }) listener.AddTargets(jsii.String("target"), &AddNetworkTargetsProps{ Port: jsii.Number(80), }) httpEndpoint := apigwv2.NewHttpApi(this, jsii.String("HttpProxyPrivateApi"), &HttpApiProps{ DefaultIntegration: awscdkapigatewayv2integrationsalpha.NewHttpNlbIntegration(jsii.String("DefaultIntegration"), listener), })
Deprecated.
func NewHttpNlbIntegration ¶
func NewHttpNlbIntegration(id *string, listener awselasticloadbalancingv2.INetworkListener, props *HttpNlbIntegrationProps) HttpNlbIntegration
Deprecated.
type HttpNlbIntegrationProps ¶
type HttpNlbIntegrationProps struct { // The HTTP method that must be used to invoke the underlying HTTP proxy. // Default: HttpMethod.ANY // // Deprecated. Method awscdkapigatewayv2alpha.HttpMethod `field:"optional" json:"method" yaml:"method"` // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` // Specifies the server name to verified by HTTPS when calling the backend integration. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html // // Default: undefined private integration traffic will use HTTP protocol. // // Deprecated. SecureServerName *string `field:"optional" json:"secureServerName" yaml:"secureServerName"` // The vpc link to be used for the private integration. // Default: - a new VpcLink is created. // // Deprecated. VpcLink awscdkapigatewayv2alpha.IVpcLink `field:"optional" json:"vpcLink" yaml:"vpcLink"` }
Properties to initialize `HttpNlbIntegration`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import apigatewayv2_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha" import apigatewayv2_integrations_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var parameterMapping parameterMapping var vpcLink vpcLink httpNlbIntegrationProps := &HttpNlbIntegrationProps{ Method: apigatewayv2_alpha.HttpMethod_ANY, ParameterMapping: parameterMapping, SecureServerName: jsii.String("secureServerName"), VpcLink: vpcLink, }
Deprecated.
type HttpPrivateIntegrationOptions ¶
type HttpPrivateIntegrationOptions struct { // The HTTP method that must be used to invoke the underlying HTTP proxy. // Default: HttpMethod.ANY // // Deprecated. Method awscdkapigatewayv2alpha.HttpMethod `field:"optional" json:"method" yaml:"method"` // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` // Specifies the server name to verified by HTTPS when calling the backend integration. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html // // Default: undefined private integration traffic will use HTTP protocol. // // Deprecated. SecureServerName *string `field:"optional" json:"secureServerName" yaml:"secureServerName"` // The vpc link to be used for the private integration. // Default: - a new VpcLink is created. // // Deprecated. VpcLink awscdkapigatewayv2alpha.IVpcLink `field:"optional" json:"vpcLink" yaml:"vpcLink"` }
Base options for private integration.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import apigatewayv2_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha" import apigatewayv2_integrations_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var parameterMapping parameterMapping var vpcLink vpcLink httpPrivateIntegrationOptions := &HttpPrivateIntegrationOptions{ Method: apigatewayv2_alpha.HttpMethod_ANY, ParameterMapping: parameterMapping, SecureServerName: jsii.String("secureServerName"), VpcLink: vpcLink, }
Deprecated.
type HttpServiceDiscoveryIntegration ¶
type HttpServiceDiscoveryIntegration interface { awscdkapigatewayv2alpha.HttpRouteIntegration // Deprecated. ConnectionType() awscdkapigatewayv2alpha.HttpConnectionType // Deprecated. SetConnectionType(val awscdkapigatewayv2alpha.HttpConnectionType) // Deprecated. HttpMethod() awscdkapigatewayv2alpha.HttpMethod // Deprecated. SetHttpMethod(val awscdkapigatewayv2alpha.HttpMethod) // Deprecated. IntegrationType() awscdkapigatewayv2alpha.HttpIntegrationType // Deprecated. SetIntegrationType(val awscdkapigatewayv2alpha.HttpIntegrationType) // Deprecated. PayloadFormatVersion() awscdkapigatewayv2alpha.PayloadFormatVersion // Deprecated. SetPayloadFormatVersion(val awscdkapigatewayv2alpha.PayloadFormatVersion) // Bind this integration to the route. // Deprecated. Bind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.HttpRouteIntegrationConfig // Complete the binding of the integration to the route. // // In some cases, there is // some additional work to do, such as adding permissions for the API to access // the target. This work is necessary whether the integration has just been // created for this route or it is an existing one, previously created for other // routes. In most cases, however, concrete implementations do not need to // override this method. // Deprecated. CompleteBind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) }
The Service Discovery integration resource for HTTP API.
Example:
import servicediscovery "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" vpc := ec2.NewVpc(this, jsii.String("VPC")) vpcLink := apigwv2.NewVpcLink(this, jsii.String("VpcLink"), &VpcLinkProps{ Vpc: Vpc, }) namespace := servicediscovery.NewPrivateDnsNamespace(this, jsii.String("Namespace"), &PrivateDnsNamespaceProps{ Name: jsii.String("boobar.com"), Vpc: Vpc, }) service := namespace.CreateService(jsii.String("Service")) httpEndpoint := apigwv2.NewHttpApi(this, jsii.String("HttpProxyPrivateApi"), &HttpApiProps{ DefaultIntegration: awscdkapigatewayv2integrationsalpha.NewHttpServiceDiscoveryIntegration(jsii.String("DefaultIntegration"), service, &HttpServiceDiscoveryIntegrationProps{ VpcLink: *VpcLink, }), })
Deprecated.
func NewHttpServiceDiscoveryIntegration ¶
func NewHttpServiceDiscoveryIntegration(id *string, service awsservicediscovery.IService, props *HttpServiceDiscoveryIntegrationProps) HttpServiceDiscoveryIntegration
Deprecated.
type HttpServiceDiscoveryIntegrationProps ¶
type HttpServiceDiscoveryIntegrationProps struct { // The HTTP method that must be used to invoke the underlying HTTP proxy. // Default: HttpMethod.ANY // // Deprecated. Method awscdkapigatewayv2alpha.HttpMethod `field:"optional" json:"method" yaml:"method"` // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` // Specifies the server name to verified by HTTPS when calling the backend integration. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-integration-tlsconfig.html // // Default: undefined private integration traffic will use HTTP protocol. // // Deprecated. SecureServerName *string `field:"optional" json:"secureServerName" yaml:"secureServerName"` // The vpc link to be used for the private integration. // Default: - a new VpcLink is created. // // Deprecated. VpcLink awscdkapigatewayv2alpha.IVpcLink `field:"optional" json:"vpcLink" yaml:"vpcLink"` }
Properties to initialize `HttpServiceDiscoveryIntegration`.
Example:
import servicediscovery "github.com/aws/aws-cdk-go/awscdk" import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" vpc := ec2.NewVpc(this, jsii.String("VPC")) vpcLink := apigwv2.NewVpcLink(this, jsii.String("VpcLink"), &VpcLinkProps{ Vpc: Vpc, }) namespace := servicediscovery.NewPrivateDnsNamespace(this, jsii.String("Namespace"), &PrivateDnsNamespaceProps{ Name: jsii.String("boobar.com"), Vpc: Vpc, }) service := namespace.CreateService(jsii.String("Service")) httpEndpoint := apigwv2.NewHttpApi(this, jsii.String("HttpProxyPrivateApi"), &HttpApiProps{ DefaultIntegration: awscdkapigatewayv2integrationsalpha.NewHttpServiceDiscoveryIntegration(jsii.String("DefaultIntegration"), service, &HttpServiceDiscoveryIntegrationProps{ VpcLink: *VpcLink, }), })
Deprecated.
type HttpUrlIntegration ¶
type HttpUrlIntegration interface { awscdkapigatewayv2alpha.HttpRouteIntegration // Bind this integration to the route. // Deprecated. Bind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.HttpRouteIntegrationConfig // Complete the binding of the integration to the route. // // In some cases, there is // some additional work to do, such as adding permissions for the API to access // the target. This work is necessary whether the integration has just been // created for this route or it is an existing one, previously created for other // routes. In most cases, however, concrete implementations do not need to // override this method. // Deprecated. CompleteBind(_options *awscdkapigatewayv2alpha.HttpRouteIntegrationBindOptions) }
The HTTP Proxy integration resource for HTTP API.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2authorizersalpha" import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" // This function handles your auth logic var authHandler function authorizer := awscdkapigatewayv2authorizersalpha.NewHttpLambdaAuthorizer(jsii.String("BooksAuthorizer"), authHandler, &HttpLambdaAuthorizerProps{ ResponseTypes: []httpLambdaResponseType{ awscdkapigatewayv2authorizersalpha.HttpLambdaResponseType_SIMPLE, }, }) api := apigwv2.NewHttpApi(this, jsii.String("HttpApi")) api.AddRoutes(&AddRoutesOptions{ Integration: awscdkapigatewayv2integrationsalpha.NewHttpUrlIntegration(jsii.String("BooksIntegration"), jsii.String("https://get-books-proxy.example.com")), Path: jsii.String("/books"), Authorizer: Authorizer, })
Deprecated.
func NewHttpUrlIntegration ¶
func NewHttpUrlIntegration(id *string, url *string, props *HttpUrlIntegrationProps) HttpUrlIntegration
Deprecated.
type HttpUrlIntegrationProps ¶
type HttpUrlIntegrationProps struct { // The HTTP method that must be used to invoke the underlying HTTP proxy. // Default: HttpMethod.ANY // // Deprecated. Method awscdkapigatewayv2alpha.HttpMethod `field:"optional" json:"method" yaml:"method"` // Specifies how to transform HTTP requests before sending them to the backend. // See: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-parameter-mapping.html // // Default: undefined requests are sent to the backend unmodified. // // Deprecated. ParameterMapping awscdkapigatewayv2alpha.ParameterMapping `field:"optional" json:"parameterMapping" yaml:"parameterMapping"` }
Properties to initialize a new `HttpProxyIntegration`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import apigatewayv2_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha" import apigatewayv2_integrations_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var parameterMapping parameterMapping httpUrlIntegrationProps := &HttpUrlIntegrationProps{ Method: apigatewayv2_alpha.HttpMethod_ANY, ParameterMapping: parameterMapping, }
Deprecated.
type WebSocketLambdaIntegration ¶
type WebSocketLambdaIntegration interface { awscdkapigatewayv2alpha.WebSocketRouteIntegration // Bind this integration to the route. // Deprecated. Bind(options *awscdkapigatewayv2alpha.WebSocketRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.WebSocketRouteIntegrationConfig }
Lambda WebSocket Integration.
Example:
import "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" var messageHandler function webSocketApi := apigwv2.NewWebSocketApi(this, jsii.String("mywsapi")) apigwv2.NewWebSocketStage(this, jsii.String("mystage"), &WebSocketStageProps{ WebSocketApi: WebSocketApi, StageName: jsii.String("dev"), AutoDeploy: jsii.Boolean(true), }) webSocketApi.AddRoute(jsii.String("sendMessage"), &WebSocketRouteOptions{ Integration: awscdkapigatewayv2integrationsalpha.NewWebSocketLambdaIntegration(jsii.String("SendMessageIntegration"), messageHandler), })
Deprecated.
func NewWebSocketLambdaIntegration ¶
func NewWebSocketLambdaIntegration(id *string, handler awslambda.IFunction) WebSocketLambdaIntegration
Deprecated.
type WebSocketMockIntegration ¶
type WebSocketMockIntegration interface { awscdkapigatewayv2alpha.WebSocketRouteIntegration // Bind this integration to the route. // Deprecated. Bind(options *awscdkapigatewayv2alpha.WebSocketRouteIntegrationBindOptions) *awscdkapigatewayv2alpha.WebSocketRouteIntegrationConfig }
Mock WebSocket Integration.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import apigatewayv2_integrations_alpha "github.com/aws/aws-cdk-go/awscdkapigatewayv2integrationsalpha" webSocketMockIntegration := apigatewayv2_integrations_alpha.NewWebSocketMockIntegration(jsii.String("id"))
Deprecated.
func NewWebSocketMockIntegration ¶
func NewWebSocketMockIntegration(id *string) WebSocketMockIntegration
Deprecated.
Source Files ¶
- HttpAlbIntegration.go
- HttpAlbIntegrationProps.go
- HttpAlbIntegration__checks.go
- HttpLambdaIntegration.go
- HttpLambdaIntegrationProps.go
- HttpLambdaIntegration__checks.go
- HttpNlbIntegration.go
- HttpNlbIntegrationProps.go
- HttpNlbIntegration__checks.go
- HttpPrivateIntegrationOptions.go
- HttpServiceDiscoveryIntegration.go
- HttpServiceDiscoveryIntegrationProps.go
- HttpServiceDiscoveryIntegration__checks.go
- HttpUrlIntegration.go
- HttpUrlIntegrationProps.go
- HttpUrlIntegration__checks.go
- WebSocketLambdaIntegration.go
- WebSocketLambdaIntegration__checks.go
- WebSocketMockIntegration.go
- WebSocketMockIntegration__checks.go
- main.go