Interface CfnApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:25:05.213Z")
@Stability(Stable)
public interface CfnApiProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnApi
.
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; Object gatewayResponses; Object methodSettings; Object models; CfnApiProps cfnApiProps = CfnApiProps.builder() .stageName("stageName") // the properties below are optional .accessLogSetting(AccessLogSettingProperty.builder() .destinationArn("destinationArn") .format("format") .build()) .alwaysDeploy(false) .auth(AuthProperty.builder() .addDefaultAuthorizerToCorsPreflight(false) .authorizers(authorizers) .defaultAuthorizer("defaultAuthorizer") .build()) .binaryMediaTypes(List.of("binaryMediaTypes")) .cacheClusterEnabled(false) .cacheClusterSize("cacheClusterSize") .canarySetting(CanarySettingProperty.builder() .deploymentId("deploymentId") .percentTraffic(123) .stageVariableOverrides(Map.of( "stageVariableOverridesKey", "stageVariableOverrides")) .useStageCache(false) .build()) .cors("cors") .definitionBody(definitionBody) .definitionUri("definitionUri") .description("description") .disableExecuteApiEndpoint(false) .domain(DomainConfigurationProperty.builder() .certificateArn("certificateArn") .domainName("domainName") // the properties below are optional .basePath(List.of("basePath")) .endpointConfiguration("endpointConfiguration") .mutualTlsAuthentication(MutualTlsAuthenticationProperty.builder() .truststoreUri("truststoreUri") .truststoreVersion("truststoreVersion") .build()) .ownershipVerificationCertificateArn("ownershipVerificationCertificateArn") .route53(Route53ConfigurationProperty.builder() .distributedDomainName("distributedDomainName") .evaluateTargetHealth(false) .hostedZoneId("hostedZoneId") .hostedZoneName("hostedZoneName") .ipV6(false) .build()) .securityPolicy("securityPolicy") .build()) .endpointConfiguration("endpointConfiguration") .gatewayResponses(gatewayResponses) .methodSettings(List.of(methodSettings)) .minimumCompressionSize(123) .models(models) .name("name") .openApiVersion("openApiVersion") .tags(Map.of( "tagsKey", "tags")) .tracingEnabled(false) .variables(Map.of( "variablesKey", "variables")) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApiProps
static final class
An implementation forCfnApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnApiProps.Builder
builder()
default Object
default Object
default Object
getAuth()
default Object
default String
default Object
default Object
getCors()
default Object
default Object
default String
default Object
default Object
default Object
default Object
default Object
default Number
default Object
default String
getName()
default String
getTags()
default Object
default Object
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStageName
- See Also:
-
getAccessLogSetting
- See Also:
-
getAlwaysDeploy
- See Also:
-
getAuth
- See Also:
-
getBinaryMediaTypes
- See Also:
-
getCacheClusterEnabled
- See Also:
-
getCacheClusterSize
- See Also:
-
getCanarySetting
- See Also:
-
getCors
- See Also:
-
getDefinitionBody
- See Also:
-
getDefinitionUri
- See Also:
-
getDescription
- See Also:
-
getDisableExecuteApiEndpoint
- See Also:
-
getDomain
- See Also:
-
getEndpointConfiguration
- See Also:
-
getGatewayResponses
- See Also:
-
getMethodSettings
- See Also:
-
getMinimumCompressionSize
- See Also:
-
getModels
- See Also:
-
getName
- See Also:
-
getOpenApiVersion
- See Also:
-
getTags
- See Also:
-
getTracingEnabled
- See Also:
-
getVariables
- See Also:
-
builder
- Returns:
- a
CfnApiProps.Builder
ofCfnApiProps
-