Class ApiGatewayConfig
java.lang.Object
software.amazon.smithy.aws.apigateway.openapi.ApiGatewayConfig
API Gateway OpenAPI configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of API Gateway service to generate. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.boolean
void
setAdditionalAllowedCorsHeaders
(Collection<String> additionalAllowedCorsHeaders) Sets the additional allowed CORS headers.void
setApiGatewayDefaults
(ApiGatewayDefaults apiGatewayDefaults) void
setApiGatewayType
(ApiGatewayConfig.ApiType apiGatewayType) Sets the type of API Gateway API to generate.void
setDisableCloudFormationSubstitution
(boolean disableCloudFormationSubstitution) Disables CloudFormation substitutions of specific paths when they contain ${} placeholders.
-
Constructor Details
-
ApiGatewayConfig
public ApiGatewayConfig()
-
-
Method Details
-
getDisableCloudFormationSubstitution
public boolean getDisableCloudFormationSubstitution()- Returns:
- Returns true if CloudFormation substitutions are disabled.
-
setDisableCloudFormationSubstitution
public void setDisableCloudFormationSubstitution(boolean disableCloudFormationSubstitution) Disables CloudFormation substitutions of specific paths when they contain ${} placeholders. When found, these are expanded into CloudFormation Fn::Sub intrinsic functions.- Parameters:
disableCloudFormationSubstitution
- Set to true to disable intrinsics.
-
getApiGatewayType
- Returns:
- the type of API Gateway API to generate.
-
setApiGatewayType
Sets the type of API Gateway API to generate.If not set, this value defaults to a "REST" API.
- Parameters:
apiGatewayType
- API type to set.
-
getAdditionalAllowedCorsHeaders
Deprecated. -
getAdditionalAllowedCorsHeadersSet
- Returns:
- the set of additional allowed CORS headers.
-
setAdditionalAllowedCorsHeaders
Sets the additional allowed CORS headers.- Parameters:
additionalAllowedCorsHeaders
- additional cors headers to be allowed.
-
getApiGatewayDefaults
-
setApiGatewayDefaults
-
getAdditionalAllowedCorsHeadersSet()