| Modifier and Type | Method and Description |
|---|---|
HttpApi.Builder |
apiName(String apiName)
(experimental) Name for the HTTP API resource.
|
HttpApi |
build() |
HttpApi.Builder |
corsPreflight(CorsPreflightOptions corsPreflight)
(experimental) Specifies a CORS configuration for an API.
|
static HttpApi.Builder |
create(software.constructs.Construct scope,
String id) |
HttpApi.Builder |
createDefaultStage(Boolean createDefaultStage)
(experimental) Whether a default stage and deployment should be automatically created.
|
HttpApi.Builder |
defaultAuthorizationScopes(List<String> defaultAuthorizationScopes)
(experimental) Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.
|
HttpApi.Builder |
defaultAuthorizer(IHttpRouteAuthorizer defaultAuthorizer)
(experimental) Default Authorizer to applied to all routes in the gateway.
|
HttpApi.Builder |
defaultDomainMapping(DomainMappingOptions defaultDomainMapping)
(experimental) Configure a custom domain with the API mapping resource to the HTTP API.
|
HttpApi.Builder |
defaultIntegration(HttpRouteIntegration defaultIntegration)
(experimental) An integration that will be configured on the catch-all route ($default).
|
HttpApi.Builder |
description(String description)
(experimental) The description of the API.
|
HttpApi.Builder |
disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint)
(experimental) Specifies whether clients can invoke your API using the default endpoint.
|
@Stability(value=Experimental) public static HttpApi.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.HttpApi.Builder.@Stability(value=Experimental) public HttpApi.Builder apiName(String apiName)
Default: - id of the HttpApi construct.
apiName - Name for the HTTP API resource. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder corsPreflight(CorsPreflightOptions corsPreflight)
Default: - CORS disabled.
corsPreflight - Specifies a CORS configuration for an API. This parameter is required.thishttps://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html@Stability(value=Experimental) public HttpApi.Builder createDefaultStage(Boolean createDefaultStage)
Default: true
createDefaultStage - Whether a default stage and deployment should be automatically created. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder defaultAuthorizationScopes(List<String> defaultAuthorizationScopes)
Default: - no default authorization scopes
defaultAuthorizationScopes - Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder defaultAuthorizer(IHttpRouteAuthorizer defaultAuthorizer)
Default: - No authorizer
defaultAuthorizer - Default Authorizer to applied to all routes in the gateway. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder defaultDomainMapping(DomainMappingOptions defaultDomainMapping)
Default: - no default domain mapping configured. meaningless if `createDefaultStage` is `false`.
defaultDomainMapping - Configure a custom domain with the API mapping resource to the HTTP API. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder defaultIntegration(HttpRouteIntegration defaultIntegration)
Default: - none
defaultIntegration - An integration that will be configured on the catch-all route ($default). This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder description(String description)
Default: - none
description - The description of the API. This parameter is required.this@Stability(value=Experimental) public HttpApi.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint)
By default, clients can invoke your API with the default
https://{api_id}.execute-api.{region}.amazonaws.com endpoint. Enable
this if you would like clients to use your custom domain name.
Default: false execute-api endpoint enabled.
disableExecuteApiEndpoint - Specifies whether clients can invoke your API using the default endpoint. This parameter is required.thisCopyright © 2022. All rights reserved.