Class CfnApi.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnApi.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi>
- Enclosing class:
CfnApi
@Stability(Stable)
public static final class CfnApi.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi>
A fluent builder for
CfnApi
.-
Method Summary
Modifier and TypeMethodDescriptionaccessLogSetting
(IResolvable accessLogSetting) AWS::Serverless::Api.AccessLogSetting
.accessLogSetting
(CfnApi.AccessLogSettingProperty accessLogSetting) AWS::Serverless::Api.AccessLogSetting
.auth
(IResolvable auth) AWS::Serverless::Api.Auth
.auth
(CfnApi.AuthProperty auth) AWS::Serverless::Api.Auth
.binaryMediaTypes
(List<String> binaryMediaTypes) AWS::Serverless::Api.BinaryMediaTypes
.build()
cacheClusterEnabled
(Boolean cacheClusterEnabled) AWS::Serverless::Api.CacheClusterEnabled
.cacheClusterEnabled
(IResolvable cacheClusterEnabled) AWS::Serverless::Api.CacheClusterEnabled
.cacheClusterSize
(String cacheClusterSize) AWS::Serverless::Api.CacheClusterSize
.canarySetting
(IResolvable canarySetting) AWS::Serverless::Api.CanarySetting
.canarySetting
(CfnApi.CanarySettingProperty canarySetting) AWS::Serverless::Api.CanarySetting
.AWS::Serverless::Api.Cors
.cors
(IResolvable cors) AWS::Serverless::Api.Cors
.AWS::Serverless::Api.Cors
.static CfnApi.Builder
definitionBody
(Object definitionBody) AWS::Serverless::Api.DefinitionBody
.definitionUri
(String definitionUri) AWS::Serverless::Api.DefinitionUri
.definitionUri
(IResolvable definitionUri) AWS::Serverless::Api.DefinitionUri
.definitionUri
(CfnApi.S3LocationProperty definitionUri) AWS::Serverless::Api.DefinitionUri
.description
(String description) AWS::Serverless::Api.Description
.disableExecuteApiEndpoint
(Boolean disableExecuteApiEndpoint) AWS::Serverless::Api.DisableExecuteApiEndpoint
.disableExecuteApiEndpoint
(IResolvable disableExecuteApiEndpoint) AWS::Serverless::Api.DisableExecuteApiEndpoint
.domain
(IResolvable domain) AWS::Serverless::Api.Domain
.AWS::Serverless::Api.Domain
.endpointConfiguration
(String endpointConfiguration) AWS::Serverless::Api.EndpointConfiguration
.endpointConfiguration
(IResolvable endpointConfiguration) AWS::Serverless::Api.EndpointConfiguration
.endpointConfiguration
(CfnApi.EndpointConfigurationProperty endpointConfiguration) AWS::Serverless::Api.EndpointConfiguration
.gatewayResponses
(Object gatewayResponses) AWS::Serverless::Api.GatewayResponses
.methodSettings
(List<? extends Object> methodSettings) AWS::Serverless::Api.MethodSettings
.methodSettings
(IResolvable methodSettings) AWS::Serverless::Api.MethodSettings
.minimumCompressionSize
(Number minimumCompressionSize) AWS::Serverless::Api.MinimumCompressionSize
.AWS::Serverless::Api.Models
.AWS::Serverless::Api.Name
.openApiVersion
(String openApiVersion) AWS::Serverless::Api.OpenApiVersion
.AWS::Serverless::Api.StageName
.AWS::Serverless::Api.Tags
.tracingEnabled
(Boolean tracingEnabled) AWS::Serverless::Api.TracingEnabled
.tracingEnabled
(IResolvable tracingEnabled) AWS::Serverless::Api.TracingEnabled
.AWS::Serverless::Api.Variables
.variables
(IResolvable variables) AWS::Serverless::Api.Variables
.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnApi.Builder
.
-
stageName
AWS::Serverless::Api.StageName
.- Parameters:
stageName
-AWS::Serverless::Api.StageName
. This parameter is required.- Returns:
this
-
accessLogSetting
@Stability(Stable) public CfnApi.Builder accessLogSetting(CfnApi.AccessLogSettingProperty accessLogSetting) AWS::Serverless::Api.AccessLogSetting
.- Parameters:
accessLogSetting
-AWS::Serverless::Api.AccessLogSetting
. This parameter is required.- Returns:
this
-
accessLogSetting
AWS::Serverless::Api.AccessLogSetting
.- Parameters:
accessLogSetting
-AWS::Serverless::Api.AccessLogSetting
. This parameter is required.- Returns:
this
-
auth
AWS::Serverless::Api.Auth
.- Parameters:
auth
-AWS::Serverless::Api.Auth
. This parameter is required.- Returns:
this
-
auth
AWS::Serverless::Api.Auth
.- Parameters:
auth
-AWS::Serverless::Api.Auth
. This parameter is required.- Returns:
this
-
binaryMediaTypes
AWS::Serverless::Api.BinaryMediaTypes
.- Parameters:
binaryMediaTypes
-AWS::Serverless::Api.BinaryMediaTypes
. This parameter is required.- Returns:
this
-
cacheClusterEnabled
AWS::Serverless::Api.CacheClusterEnabled
.- Parameters:
cacheClusterEnabled
-AWS::Serverless::Api.CacheClusterEnabled
. This parameter is required.- Returns:
this
-
cacheClusterEnabled
AWS::Serverless::Api.CacheClusterEnabled
.- Parameters:
cacheClusterEnabled
-AWS::Serverless::Api.CacheClusterEnabled
. This parameter is required.- Returns:
this
-
cacheClusterSize
AWS::Serverless::Api.CacheClusterSize
.- Parameters:
cacheClusterSize
-AWS::Serverless::Api.CacheClusterSize
. This parameter is required.- Returns:
this
-
canarySetting
AWS::Serverless::Api.CanarySetting
.- Parameters:
canarySetting
-AWS::Serverless::Api.CanarySetting
. This parameter is required.- Returns:
this
-
canarySetting
AWS::Serverless::Api.CanarySetting
.- Parameters:
canarySetting
-AWS::Serverless::Api.CanarySetting
. This parameter is required.- Returns:
this
-
cors
AWS::Serverless::Api.Cors
.- Parameters:
cors
-AWS::Serverless::Api.Cors
. This parameter is required.- Returns:
this
-
cors
AWS::Serverless::Api.Cors
.- Parameters:
cors
-AWS::Serverless::Api.Cors
. This parameter is required.- Returns:
this
-
cors
AWS::Serverless::Api.Cors
.- Parameters:
cors
-AWS::Serverless::Api.Cors
. This parameter is required.- Returns:
this
-
definitionBody
AWS::Serverless::Api.DefinitionBody
.- Parameters:
definitionBody
-AWS::Serverless::Api.DefinitionBody
. This parameter is required.- Returns:
this
-
definitionUri
AWS::Serverless::Api.DefinitionUri
.- Parameters:
definitionUri
-AWS::Serverless::Api.DefinitionUri
. This parameter is required.- Returns:
this
-
definitionUri
AWS::Serverless::Api.DefinitionUri
.- Parameters:
definitionUri
-AWS::Serverless::Api.DefinitionUri
. This parameter is required.- Returns:
this
-
definitionUri
AWS::Serverless::Api.DefinitionUri
.- Parameters:
definitionUri
-AWS::Serverless::Api.DefinitionUri
. This parameter is required.- Returns:
this
-
description
AWS::Serverless::Api.Description
.- Parameters:
description
-AWS::Serverless::Api.Description
. This parameter is required.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnApi.Builder disableExecuteApiEndpoint(Boolean disableExecuteApiEndpoint) AWS::Serverless::Api.DisableExecuteApiEndpoint
.- Parameters:
disableExecuteApiEndpoint
-AWS::Serverless::Api.DisableExecuteApiEndpoint
. This parameter is required.- Returns:
this
-
disableExecuteApiEndpoint
@Stability(Stable) public CfnApi.Builder disableExecuteApiEndpoint(IResolvable disableExecuteApiEndpoint) AWS::Serverless::Api.DisableExecuteApiEndpoint
.- Parameters:
disableExecuteApiEndpoint
-AWS::Serverless::Api.DisableExecuteApiEndpoint
. This parameter is required.- Returns:
this
-
domain
AWS::Serverless::Api.Domain
.- Parameters:
domain
-AWS::Serverless::Api.Domain
. This parameter is required.- Returns:
this
-
domain
AWS::Serverless::Api.Domain
.- Parameters:
domain
-AWS::Serverless::Api.Domain
. This parameter is required.- Returns:
this
-
endpointConfiguration
AWS::Serverless::Api.EndpointConfiguration
.- Parameters:
endpointConfiguration
-AWS::Serverless::Api.EndpointConfiguration
. This parameter is required.- Returns:
this
-
endpointConfiguration
AWS::Serverless::Api.EndpointConfiguration
.- Parameters:
endpointConfiguration
-AWS::Serverless::Api.EndpointConfiguration
. This parameter is required.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnApi.Builder endpointConfiguration(CfnApi.EndpointConfigurationProperty endpointConfiguration) AWS::Serverless::Api.EndpointConfiguration
.- Parameters:
endpointConfiguration
-AWS::Serverless::Api.EndpointConfiguration
. This parameter is required.- Returns:
this
-
gatewayResponses
AWS::Serverless::Api.GatewayResponses
.- Parameters:
gatewayResponses
-AWS::Serverless::Api.GatewayResponses
. This parameter is required.- Returns:
this
-
methodSettings
AWS::Serverless::Api.MethodSettings
.- Parameters:
methodSettings
-AWS::Serverless::Api.MethodSettings
. This parameter is required.- Returns:
this
-
methodSettings
AWS::Serverless::Api.MethodSettings
.- Parameters:
methodSettings
-AWS::Serverless::Api.MethodSettings
. This parameter is required.- Returns:
this
-
minimumCompressionSize
AWS::Serverless::Api.MinimumCompressionSize
.- Parameters:
minimumCompressionSize
-AWS::Serverless::Api.MinimumCompressionSize
. This parameter is required.- Returns:
this
-
models
AWS::Serverless::Api.Models
.- Parameters:
models
-AWS::Serverless::Api.Models
. This parameter is required.- Returns:
this
-
name
AWS::Serverless::Api.Name
.- Parameters:
name
-AWS::Serverless::Api.Name
. This parameter is required.- Returns:
this
-
openApiVersion
AWS::Serverless::Api.OpenApiVersion
.- Parameters:
openApiVersion
-AWS::Serverless::Api.OpenApiVersion
. This parameter is required.- Returns:
this
-
tags
AWS::Serverless::Api.Tags
.- Parameters:
tags
-AWS::Serverless::Api.Tags
. This parameter is required.- Returns:
this
-
tracingEnabled
AWS::Serverless::Api.TracingEnabled
.- Parameters:
tracingEnabled
-AWS::Serverless::Api.TracingEnabled
. This parameter is required.- Returns:
this
-
tracingEnabled
AWS::Serverless::Api.TracingEnabled
.- Parameters:
tracingEnabled
-AWS::Serverless::Api.TracingEnabled
. This parameter is required.- Returns:
this
-
variables
AWS::Serverless::Api.Variables
.- Parameters:
variables
-AWS::Serverless::Api.Variables
. This parameter is required.- Returns:
this
-
variables
AWS::Serverless::Api.Variables
.- Parameters:
variables
-AWS::Serverless::Api.Variables
. This parameter is required.- Returns:
this
-
build
-