Interface HttpApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpApiProps.Jsii$Proxy
HttpApi.
Example:
import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpAlbIntegration;
ApplicationLoadBalancer lb;
ApplicationListener listener = lb.addListener("listener", BaseApplicationListenerProps.builder().port(80).build());
listener.addTargets("target", AddApplicationTargetsProps.builder()
.port(80)
.build());
HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
.defaultIntegration(HttpAlbIntegration.Builder.create("DefaultIntegration", listener)
.parameterMapping(new ParameterMapping().custom("myKey", "myValue"))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpApiPropsstatic final classAn implementation forHttpApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpApiProps.Builderbuilder()default StringName for the HTTP API resource.default CorsPreflightOptionsSpecifies a CORS configuration for an API.default BooleanWhether a default stage and deployment should be automatically created.Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.default IHttpRouteAuthorizerDefault Authorizer applied to all routes in the gateway.default DomainMappingOptionsConfigure a custom domain with the API mapping resource to the HTTP API.default HttpRouteIntegrationAn integration that will be configured on the catch-all route ($default).default StringThe description of the API.default BooleanSpecifies whether clients can invoke your API using the default endpoint.default IpAddressTypeThe IP address types that can invoke the API.default BooleanWhether to set the default route selection expression for the API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiName
Name for the HTTP API resource.Default: - id of the HttpApi construct.
-
getCorsPreflight
Specifies a CORS configuration for an API.Default: - CORS disabled.
- See Also:
-
getCreateDefaultStage
Whether a default stage and deployment should be automatically created.Default: true
-
getDefaultAuthorizationScopes
Default OIDC scopes attached to all routes in the gateway, unless explicitly configured on the route.The scopes are used with a COGNITO_USER_POOLS authorizer to authorize the method invocation.
Default: - no default authorization scopes
-
getDefaultAuthorizer
Default Authorizer applied to all routes in the gateway.Default: - no default authorizer
-
getDefaultDomainMapping
Configure a custom domain with the API mapping resource to the HTTP API.Default: - no default domain mapping configured. meaningless if `createDefaultStage` is `false`.
-
getDefaultIntegration
An integration that will be configured on the catch-all route ($default).Default: - none
-
getDescription
The description of the API.Default: - none
-
getDisableExecuteApiEndpoint
Specifies whether clients can invoke your API using the default endpoint.By default, clients can invoke your API with the default
https://{api_id}.execute-api.{region}.amazonaws.com.rproxy.govskope.caendpoint. Set this to true if you would like clients to use your custom domain name.Default: false execute-api endpoint enabled.
-
getIpAddressType
The IP address types that can invoke the API.Default: undefined - AWS default is IPV4
- See Also:
-
getRouteSelectionExpression
Whether to set the default route selection expression for the API.When enabled, "${request.method} ${request.path}" is set as the default route selection expression.
Default: false
-
builder
- Returns:
- a
HttpApiProps.BuilderofHttpApiProps
-