Skip to content
v2.278.0

HttpRouteAuthorizerBindOptions Struct ​

Input to the bind() operation, that binds an authorizer to a route.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
import * as constructs from 'constructs';

declare const construct: constructs.Construct;
declare const httpRoute: apigatewayv2.HttpRoute;
const httpRouteAuthorizerBindOptions: apigatewayv2.HttpRouteAuthorizerBindOptions = {
  route: httpRoute,
  scope: construct,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2
import constructs as constructs

# construct: constructs.Construct
# http_route: apigatewayv2.HttpRoute

http_route_authorizer_bind_options = apigatewayv2.HttpRouteAuthorizerBindOptions(
    route=http_route,
    scope=construct
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
import software.constructs.*;

Construct construct;
HttpRoute httpRoute;

HttpRouteAuthorizerBindOptions httpRouteAuthorizerBindOptions = HttpRouteAuthorizerBindOptions.builder()
        .route(httpRoute)
        .scope(construct)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;
using Constructs;

Construct construct;
HttpRoute httpRoute;
var httpRouteAuthorizerBindOptions = new HttpRouteAuthorizerBindOptions {
    Route = httpRoute,
    Scope = construct
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import constructs "github.com/aws/constructs-go/constructs"

var construct Construct
var httpRoute HttpRoute

httpRouteAuthorizerBindOptions := &HttpRouteAuthorizerBindOptions{
	Route: httpRoute,
	Scope: construct,
}

Properties ​

routeIHttpRouterouteIHttpRouterouteIHttpRouteRouteIHttpRouteRouteIHttpRoute required #
The route to which the authorizer is being bound.
scopeConstructscopeConstructscopeConstructScopeConstructScopeConstruct required #
The scope for any constructs created as part of the bind.