@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:21.419Z") @Stability(value=Experimental) public interface HttpApiProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpApiProps.Builder
A builder for
HttpApiProps |
static class |
HttpApiProps.Jsii$Proxy
An implementation for
HttpApiProps |
| Modifier and Type | Method and Description |
|---|---|
static HttpApiProps.Builder |
builder() |
default String |
getApiName()
(experimental) Name for the HTTP API resoruce.
|
default CorsPreflightOptions |
getCorsPreflight()
(experimental) Specifies a CORS configuration for an API.
|
default Boolean |
getCreateDefaultStage()
(experimental) Whether a default stage and deployment should be automatically created.
|
default List<String> |
getDefaultAuthorizationScopes()
(experimental) Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.
|
default IHttpRouteAuthorizer |
getDefaultAuthorizer()
(experimental) Default Authorizer to applied to all routes in the gateway.
|
default DomainMappingOptions |
getDefaultDomainMapping()
(experimental) Configure a custom domain with the API mapping resource to the HTTP API.
|
default IHttpRouteIntegration |
getDefaultIntegration()
(experimental) An integration that will be configured on the catch-all route ($default).
|
default String |
getDescription()
(experimental) The description of the API.
|
default Boolean |
getDisableExecuteApiEndpoint()
(experimental) Specifies whether clients can invoke your API using the default endpoint.
|
@Stability(value=Experimental) @Nullable default String getApiName()
Default: - id of the HttpApi construct.
@Stability(value=Experimental) @Nullable default CorsPreflightOptions getCorsPreflight()
Default: - CORS disabled.
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html@Stability(value=Experimental) @Nullable default Boolean getCreateDefaultStage()
Default: true
@Stability(value=Experimental) @Nullable default List<String> getDefaultAuthorizationScopes()
Default: - no default authorization scopes
@Stability(value=Experimental) @Nullable default IHttpRouteAuthorizer getDefaultAuthorizer()
Default: - No authorizer
@Stability(value=Experimental) @Nullable default DomainMappingOptions getDefaultDomainMapping()
Default: - no default domain mapping configured. meaningless if `createDefaultStage` is `false`.
@Stability(value=Experimental) @Nullable default IHttpRouteIntegration getDefaultIntegration()
Default: - none
@Stability(value=Experimental) @Nullable default String getDescription()
Default: - none
@Stability(value=Experimental) @Nullable default Boolean getDisableExecuteApiEndpoint()
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.
@Stability(value=Experimental) static HttpApiProps.Builder builder()
HttpApiProps.Builder of HttpApiPropsCopyright © 2021. All rights reserved.