AddRoutesOptions

class aws_cdk.aws_apigatewayv2.AddRoutesOptions(*, integration, path, authorization_scopes=None, authorizer=None, methods=None)

Bases: aws_cdk.aws_apigatewayv2.BatchHttpRouteOptions

(experimental) Options for the Route with Integration resource.

Parameters
  • integration (IHttpRouteIntegration) – (experimental) The integration to be configured on this route.

  • path (str) – (experimental) The path at which all of these routes are configured.

  • authorization_scopes (Optional[Sequence[str]]) – (experimental) The list of OIDC scopes to include in the authorization. These scopes will override the default authorization scopes on the gateway. Set to [] to remove default scopes Default: - uses defaultAuthorizationScopes if configured on the API, otherwise none.

  • authorizer (Optional[IHttpRouteAuthorizer]) – (experimental) Authorizer to be associated to these routes. Use NoneAuthorizer to remove the default authorizer for the api Default: - uses the default authorizer if one is specified on the HttpApi

  • methods (Optional[Sequence[HttpMethod]]) – (experimental) The HTTP methods to be configured. Default: HttpMethod.ANY

Stability

experimental

Attributes

authorization_scopes

(experimental) The list of OIDC scopes to include in the authorization.

These scopes will override the default authorization scopes on the gateway. Set to [] to remove default scopes

Default
  • uses defaultAuthorizationScopes if configured on the API, otherwise none.

Stability

experimental

Return type

Optional[List[str]]

authorizer

(experimental) Authorizer to be associated to these routes.

Use NoneAuthorizer to remove the default authorizer for the api

Default
  • uses the default authorizer if one is specified on the HttpApi

Stability

experimental

Return type

Optional[IHttpRouteAuthorizer]

integration

(experimental) The integration to be configured on this route.

Stability

experimental

Return type

IHttpRouteIntegration

methods

(experimental) The HTTP methods to be configured.

Default

HttpMethod.ANY

Stability

experimental

Return type

Optional[List[HttpMethod]]

path

(experimental) The path at which all of these routes are configured.

Stability

experimental

Return type

str