Interface CfnHttpApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHttpApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:46.828Z")
@Stability(Stable)
public interface CfnHttpApiProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnHttpApi.
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.sam.*;
Object authorizers;
Object definitionBody;
CfnHttpApiProps cfnHttpApiProps = CfnHttpApiProps.builder()
.accessLogSetting(AccessLogSettingProperty.builder()
.destinationArn("destinationArn")
.format("format")
.build())
.auth(HttpApiAuthProperty.builder()
.authorizers(authorizers)
.defaultAuthorizer("defaultAuthorizer")
.build())
.corsConfiguration(false)
.defaultRouteSettings(RouteSettingsProperty.builder()
.dataTraceEnabled(false)
.detailedMetricsEnabled(false)
.loggingLevel("loggingLevel")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build())
.definitionBody(definitionBody)
.definitionUri("definitionUri")
.description("description")
.disableExecuteApiEndpoint(false)
.domain(HttpApiDomainConfigurationProperty.builder()
.certificateArn("certificateArn")
.domainName("domainName")
// the properties below are optional
.basePath("basePath")
.endpointConfiguration("endpointConfiguration")
.mutualTlsAuthentication(MutualTlsAuthenticationProperty.builder()
.truststoreUri("truststoreUri")
.truststoreVersion(false)
.build())
.route53(Route53ConfigurationProperty.builder()
.distributedDomainName("distributedDomainName")
.evaluateTargetHealth(false)
.hostedZoneId("hostedZoneId")
.hostedZoneName("hostedZoneName")
.ipV6(false)
.build())
.securityPolicy("securityPolicy")
.build())
.failOnWarnings(false)
.routeSettings(RouteSettingsProperty.builder()
.dataTraceEnabled(false)
.detailedMetricsEnabled(false)
.loggingLevel("loggingLevel")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build())
.stageName("stageName")
.stageVariables(Map.of(
"stageVariablesKey", "stageVariables"))
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHttpApiPropsstatic final classAn implementation forCfnHttpApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnHttpApiProps.Builderbuilder()default ObjectReturns union: eitherIResolvableorCfnHttpApi.AccessLogSettingPropertydefault ObjectgetAuth()Returns union: eitherIResolvableorCfnHttpApi.HttpApiAuthPropertydefault Objectdefault ObjectReturns union: eitherIResolvableorCfnHttpApi.RouteSettingsPropertydefault Objectdefault Objectdefault Stringdefault ObjectReturns union: eitherBooleanorIResolvabledefault ObjectReturns union: eitherIResolvableorCfnHttpApi.HttpApiDomainConfigurationPropertydefault ObjectReturns union: eitherBooleanorIResolvabledefault ObjectReturns union: eitherIResolvableorCfnHttpApi.RouteSettingsPropertydefault Stringdefault ObjectgetTags()Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessLogSetting
Returns union: eitherIResolvableorCfnHttpApi.AccessLogSettingProperty- See Also:
-
getAuth
Returns union: eitherIResolvableorCfnHttpApi.HttpApiAuthProperty- See Also:
-
getCorsConfiguration
- See Also:
-
getDefaultRouteSettings
Returns union: eitherIResolvableorCfnHttpApi.RouteSettingsProperty- See Also:
-
getDefinitionBody
- See Also:
-
getDefinitionUri
- See Also:
-
getDescription
- See Also:
-
getDisableExecuteApiEndpoint
Returns union: eitherBooleanorIResolvable- See Also:
-
getDomain
Returns union: eitherIResolvableorCfnHttpApi.HttpApiDomainConfigurationProperty- See Also:
-
getFailOnWarnings
Returns union: eitherBooleanorIResolvable- See Also:
-
getRouteSettings
Returns union: eitherIResolvableorCfnHttpApi.RouteSettingsProperty- See Also:
-
getStageName
- See Also:
-
getStageVariables
- See Also:
-
getTags
- See Also:
-
builder
- Returns:
- a
CfnHttpApiProps.BuilderofCfnHttpApiProps
-