Interface RestApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ResourceOptions,RestApiBaseProps,RestApiOptions
- All Known Subinterfaces:
LambdaRestApiProps,StepFunctionsRestApiProps
- All Known Implementing Classes:
LambdaRestApiProps.Jsii$Proxy,RestApiProps.Jsii$Proxy,StepFunctionsRestApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.085Z")
@Stability(Stable)
public interface RestApiProps
extends software.amazon.jsii.JsiiSerializable, RestApiOptions
Props to create a new instance of RestApi.
Example:
StateMachine stateMachine = StateMachine.Builder.create(this, "MyStateMachine")
.stateMachineType(StateMachineType.EXPRESS)
.definition(Chain.start(new Pass(this, "Pass")))
.build();
RestApi api = RestApi.Builder.create(this, "Api")
.restApiName("MyApi")
.build();
api.root.addMethod("GET", StepFunctionsIntegration.startExecution(stateMachine));
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRestApiPropsstatic final classAn implementation forRestApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RestApiProps.Builderbuilder()default ApiKeySourceTypeThe source of the API key for metering requests according to a usage plan.The list of binary media mime-types that are supported by the RestApi resource, such as "image/png" or "application/octet-stream".default IRestApiThe ID of the API Gateway RestApi resource that you want to clone.default StringA description of the purpose of this API Gateway RestApi resource.default EndpointConfigurationThe EndpointConfiguration property type specifies the endpoint types of a REST API.default NumberA nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (when undefined) on an API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigateway.ResourceOptions
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptionsMethods inherited from interface software.amazon.awscdk.services.apigateway.RestApiBaseProps
getCloudWatchRole, getDeploy, getDeployOptions, getDisableExecuteApiEndpoint, getDomainName, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeployments
-
Method Details
-
getApiKeySourceType
The source of the API key for metering requests according to a usage plan.Default: - Metering is disabled.
-
getBinaryMediaTypes
The list of binary media mime-types that are supported by the RestApi resource, such as "image/png" or "application/octet-stream".Default: - RestApi supports only UTF-8-encoded text payloads.
-
getCloneFrom
The ID of the API Gateway RestApi resource that you want to clone.Default: - None.
-
getDescription
A description of the purpose of this API Gateway RestApi resource.Default: - No description.
-
getEndpointConfiguration
The EndpointConfiguration property type specifies the endpoint types of a REST API.Default: EndpointType.EDGE
-
getMinimumCompressionSize
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (when undefined) on an API.When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
Default: - Compression is disabled.
-
builder
- Returns:
- a
RestApiProps.BuilderofRestApiProps
-