Interface CfnApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.587Z")
@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()) .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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnApiProps
static final class
An implementation forCfnApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnApiProps.Builder
builder()
default Object
AWS::Serverless::Api.AccessLogSetting
.default Object
getAuth()
AWS::Serverless::Api.Auth
.AWS::Serverless::Api.BinaryMediaTypes
.default Object
AWS::Serverless::Api.CacheClusterEnabled
.default String
AWS::Serverless::Api.CacheClusterSize
.default Object
AWS::Serverless::Api.CanarySetting
.default Object
getCors()
AWS::Serverless::Api.Cors
.default Object
AWS::Serverless::Api.DefinitionBody
.default Object
AWS::Serverless::Api.DefinitionUri
.default String
AWS::Serverless::Api.Description
.default Object
AWS::Serverless::Api.DisableExecuteApiEndpoint
.default Object
AWS::Serverless::Api.Domain
.default Object
AWS::Serverless::Api.EndpointConfiguration
.default Object
AWS::Serverless::Api.GatewayResponses
.default Object
AWS::Serverless::Api.MethodSettings
.default Number
AWS::Serverless::Api.MinimumCompressionSize
.default Object
AWS::Serverless::Api.Models
.default String
getName()
AWS::Serverless::Api.Name
.default String
AWS::Serverless::Api.OpenApiVersion
.AWS::Serverless::Api.StageName
.getTags()
AWS::Serverless::Api.Tags
.default Object
AWS::Serverless::Api.TracingEnabled
.default Object
AWS::Serverless::Api.Variables
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStageName
AWS::Serverless::Api.StageName
. -
getAccessLogSetting
AWS::Serverless::Api.AccessLogSetting
. -
getAuth
AWS::Serverless::Api.Auth
. -
getBinaryMediaTypes
AWS::Serverless::Api.BinaryMediaTypes
. -
getCacheClusterEnabled
AWS::Serverless::Api.CacheClusterEnabled
. -
getCacheClusterSize
AWS::Serverless::Api.CacheClusterSize
. -
getCanarySetting
AWS::Serverless::Api.CanarySetting
. -
getCors
AWS::Serverless::Api.Cors
. -
getDefinitionBody
AWS::Serverless::Api.DefinitionBody
. -
getDefinitionUri
AWS::Serverless::Api.DefinitionUri
. -
getDescription
AWS::Serverless::Api.Description
. -
getDisableExecuteApiEndpoint
AWS::Serverless::Api.DisableExecuteApiEndpoint
. -
getDomain
AWS::Serverless::Api.Domain
. -
getEndpointConfiguration
AWS::Serverless::Api.EndpointConfiguration
. -
getGatewayResponses
AWS::Serverless::Api.GatewayResponses
. -
getMethodSettings
AWS::Serverless::Api.MethodSettings
. -
getMinimumCompressionSize
AWS::Serverless::Api.MinimumCompressionSize
. -
getModels
AWS::Serverless::Api.Models
. -
getName
AWS::Serverless::Api.Name
. -
getOpenApiVersion
AWS::Serverless::Api.OpenApiVersion
. -
getTags
AWS::Serverless::Api.Tags
. -
getTracingEnabled
AWS::Serverless::Api.TracingEnabled
. -
getVariables
AWS::Serverless::Api.Variables
. -
builder
- Returns:
- a
CfnApiProps.Builder
ofCfnApiProps
-