io.burkard.cdk.services.apigateway.StepFunctionsRestApiProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.apigateway
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object StepFunctionsRestApiProps {
def apply(
stateMachine: software.amazon.awscdk.services.stepfunctions.IStateMachine,
path: Option[Boolean] = None,
role: Option[software.amazon.awscdk.services.iam.IRole] = None,
apiKeySourceType: Option[software.amazon.awscdk.services.apigateway.ApiKeySourceType] = None,
description: Option[String] = None,
authorizer: Option[Boolean] = None,
endpointExportName: Option[String] = None,
binaryMediaTypes: Option[List[String]] = None,
cloudWatchRole: Option[Boolean] = None,
domainName: Option[software.amazon.awscdk.services.apigateway.DomainNameOptions] = None,
failOnWarnings: Option[Boolean] = None,
deployOptions: Option[software.amazon.awscdk.services.apigateway.StageOptions] = None,
cloneFrom: Option[software.amazon.awscdk.services.apigateway.IRestApi] = None,
defaultCorsPreflightOptions: Option[software.amazon.awscdk.services.apigateway.CorsOptions] = None,
retainDeployments: Option[Boolean] = None,
disableExecuteApiEndpoint: Option[Boolean] = None,
endpointConfiguration: Option[software.amazon.awscdk.services.apigateway.EndpointConfiguration] = None,
deploy: Option[Boolean] = None,
defaultMethodOptions: Option[software.amazon.awscdk.services.apigateway.MethodOptions] = None,
requestContext: Option[software.amazon.awscdk.services.apigateway.RequestContext] = None,
restApiName: Option[String] = None,
headers: Option[Boolean] = None,
endpointTypes: Option[List[_ <: software.amazon.awscdk.services.apigateway.EndpointType]] = None,
parameters: Option[Map[String, String]] = None,
policy: Option[software.amazon.awscdk.services.iam.PolicyDocument] = None,
defaultIntegration: Option[software.amazon.awscdk.services.apigateway.Integration] = None,
querystring: Option[Boolean] = None,
minimumCompressionSize: Option[Number] = None
): software.amazon.awscdk.services.apigateway.StepFunctionsRestApiProps =
(new software.amazon.awscdk.services.apigateway.StepFunctionsRestApiProps.Builder)
.stateMachine(stateMachine)
.path(path.map(Boolean.box).orNull)
.role(role.orNull)
.apiKeySourceType(apiKeySourceType.orNull)
.description(description.orNull)
.authorizer(authorizer.map(Boolean.box).orNull)
.endpointExportName(endpointExportName.orNull)
.binaryMediaTypes(binaryMediaTypes.map(_.asJava).orNull)
.cloudWatchRole(cloudWatchRole.map(Boolean.box).orNull)
.domainName(domainName.orNull)
.failOnWarnings(failOnWarnings.map(Boolean.box).orNull)
.deployOptions(deployOptions.orNull)
.cloneFrom(cloneFrom.orNull)
.defaultCorsPreflightOptions(defaultCorsPreflightOptions.orNull)
.retainDeployments(retainDeployments.map(Boolean.box).orNull)
.disableExecuteApiEndpoint(disableExecuteApiEndpoint.map(Boolean.box).orNull)
.endpointConfiguration(endpointConfiguration.orNull)
.deploy(deploy.map(Boolean.box).orNull)
.defaultMethodOptions(defaultMethodOptions.orNull)
.requestContext(requestContext.orNull)
.restApiName(restApiName.orNull)
.headers(headers.map(Boolean.box).orNull)
.endpointTypes(endpointTypes.map(_.asJava).orNull)
.parameters(parameters.map(_.asJava).orNull)
.policy(policy.orNull)
.defaultIntegration(defaultIntegration.orNull)
.querystring(querystring.map(Boolean.box).orNull)
.minimumCompressionSize(minimumCompressionSize.orNull)
.build()
}