java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-22T22:42:46.780Z") @Stability(Stable) public class CfnRoute extends CfnResource implements IInspectable
The AWS::ApiGatewayV2::Route resource creates a route for an API.

Example:

 // 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.*;
 Object requestModels;
 Object requestParameters;
 CfnRoute cfnRoute = CfnRoute.Builder.create(this, "MyCfnRoute")
         .apiId("apiId")
         .routeKey("routeKey")
         // the properties below are optional
         .apiKeyRequired(false)
         .authorizationScopes(List.of("authorizationScopes"))
         .authorizationType("authorizationType")
         .authorizerId("authorizerId")
         .modelSelectionExpression("modelSelectionExpression")
         .operationName("operationName")
         .requestModels(requestModels)
         .requestParameters(requestParameters)
         .routeResponseSelectionExpression("routeResponseSelectionExpression")
         .target("target")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnRoute

      protected CfnRoute(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnRoute

      protected CfnRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnRoute

      @Stability(Stable) public CfnRoute(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRouteProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrRouteId

      @Stability(Stable) @NotNull public String getAttrRouteId()
      The route ID.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getApiId

      @Stability(Stable) @NotNull public String getApiId()
      The API identifier.
    • setApiId

      @Stability(Stable) public void setApiId(@NotNull String value)
      The API identifier.
    • getRouteKey

      @Stability(Stable) @NotNull public String getRouteKey()
      The route key for the route.
    • setRouteKey

      @Stability(Stable) public void setRouteKey(@NotNull String value)
      The route key for the route.
    • getApiKeyRequired

      @Stability(Stable) @Nullable public Object getApiKeyRequired()
      Specifies whether an API key is required for the route.
    • setApiKeyRequired

      @Stability(Stable) public void setApiKeyRequired(@Nullable Boolean value)
      Specifies whether an API key is required for the route.
    • setApiKeyRequired

      @Stability(Stable) public void setApiKeyRequired(@Nullable IResolvable value)
      Specifies whether an API key is required for the route.
    • getAuthorizationScopes

      @Stability(Stable) @Nullable public List<String> getAuthorizationScopes()
      The authorization scopes supported by this route.
    • setAuthorizationScopes

      @Stability(Stable) public void setAuthorizationScopes(@Nullable List<String> value)
      The authorization scopes supported by this route.
    • getAuthorizationType

      @Stability(Stable) @Nullable public String getAuthorizationType()
      The authorization type for the route.
    • setAuthorizationType

      @Stability(Stable) public void setAuthorizationType(@Nullable String value)
      The authorization type for the route.
    • getAuthorizerId

      @Stability(Stable) @Nullable public String getAuthorizerId()
      The identifier of the Authorizer resource to be associated with this route.
    • setAuthorizerId

      @Stability(Stable) public void setAuthorizerId(@Nullable String value)
      The identifier of the Authorizer resource to be associated with this route.
    • getModelSelectionExpression

      @Stability(Stable) @Nullable public String getModelSelectionExpression()
      The model selection expression for the route.
    • setModelSelectionExpression

      @Stability(Stable) public void setModelSelectionExpression(@Nullable String value)
      The model selection expression for the route.
    • getOperationName

      @Stability(Stable) @Nullable public String getOperationName()
      The operation name for the route.
    • setOperationName

      @Stability(Stable) public void setOperationName(@Nullable String value)
      The operation name for the route.
    • getRequestModels

      @Stability(Stable) @Nullable public Object getRequestModels()
      The request models for the route.
    • setRequestModels

      @Stability(Stable) public void setRequestModels(@Nullable Object value)
      The request models for the route.
    • getRequestParameters

      @Stability(Stable) @Nullable public Object getRequestParameters()
      The request parameters for the route.
    • setRequestParameters

      @Stability(Stable) public void setRequestParameters(@Nullable Object value)
      The request parameters for the route.
    • getRouteResponseSelectionExpression

      @Stability(Stable) @Nullable public String getRouteResponseSelectionExpression()
      The route response selection expression for the route.
    • setRouteResponseSelectionExpression

      @Stability(Stable) public void setRouteResponseSelectionExpression(@Nullable String value)
      The route response selection expression for the route.
    • getTarget

      @Stability(Stable) @Nullable public String getTarget()
      The target for the route.
    • setTarget

      @Stability(Stable) public void setTarget(@Nullable String value)
      The target for the route.