AwsApiGatewayLambdaFunctionReference

interface AwsApiGatewayLambdaFunctionReference { arn: Input<string>; invokeArn: Input<string>; invokePermissionIdentity: string; grantInvoke(args: { identity: string; service: 'api-gateway-authorizer' | 'api-gateway-http' | 'api-gateway-rest'; sourceArn: Input<string> }, options?: CustomResourceOptions): Resource; }

Lambda function capability reference accepted by managed API Gateway integrations.

Example

CODE
const integration: AwsApiGatewayManagedLambdaRouteIntegrationArgs = {
  type: 'lambda',
  function: lambdaFunction,
};

Properties

arn: Input<string>

readonly

Lambda function ARN.

invokeArn: Input<string>

readonly

API Gateway invoke ARN.

invokePermissionIdentity: string

readonly

Stable Lambda permission identity.

Methods

grantInvoke( args: { identity: string; service: 'api-gateway-authorizer' | 'api-gateway-http' | 'api-gateway-rest'; sourceArn: Input<string> }, options?: CustomResourceOptions, ): Resource

Creates a Lambda-domain invocation permission.

Parameters

  • args ({ identity: string; service: "api-gateway-authorizer" | "api-gateway-http" | "api-gateway-rest"; sourceArn: Input<string> })
  • options (CustomResourceOptions, optional)

Properties

  • identity (string)
  • service ("api-gateway-authorizer" | "api-gateway-http" | "api-gateway-rest")
  • sourceArn (Input<string>)

Returns

  • Resource