Class ApiGatewayConfig
- java.lang.Object
- 
- software.amazon.smithy.aws.apigateway.openapi.ApiGatewayConfig
 
- 
 public final class ApiGatewayConfig extends java.lang.ObjectAPI Gateway OpenAPI configuration.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classApiGatewayConfig.ApiTypeThe type of API Gateway service to generate.
 - 
Constructor SummaryConstructors Constructor Description ApiGatewayConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getAdditionalAllowedCorsHeaders()Deprecated.java.util.Set<java.lang.String>getAdditionalAllowedCorsHeadersSet()ApiGatewayDefaultsgetApiGatewayDefaults()ApiGatewayConfig.ApiTypegetApiGatewayType()booleangetDisableCloudFormationSubstitution()voidsetAdditionalAllowedCorsHeaders(java.util.Collection<java.lang.String> additionalAllowedCorsHeaders)Sets the additional allowed CORS headers.voidsetApiGatewayDefaults(ApiGatewayDefaults apiGatewayDefaults)voidsetApiGatewayType(ApiGatewayConfig.ApiType apiGatewayType)Sets the type of API Gateway API to generate.voidsetDisableCloudFormationSubstitution(boolean disableCloudFormationSubstitution)Disables CloudFormation substitutions of specific paths when they contain ${} placeholders.
 
- 
- 
- 
Method Detail- 
getDisableCloudFormationSubstitutionpublic boolean getDisableCloudFormationSubstitution() - Returns:
- Returns true if CloudFormation substitutions are disabled.
 
 - 
setDisableCloudFormationSubstitutionpublic 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.
 
 - 
getApiGatewayTypepublic ApiGatewayConfig.ApiType getApiGatewayType() - Returns:
- the type of API Gateway API to generate.
 
 - 
setApiGatewayTypepublic void setApiGatewayType(ApiGatewayConfig.ApiType apiGatewayType) 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 public java.util.List<java.lang.String> getAdditionalAllowedCorsHeaders() Deprecated.
 - 
getAdditionalAllowedCorsHeadersSetpublic java.util.Set<java.lang.String> getAdditionalAllowedCorsHeadersSet() - Returns:
- the set of additional allowed CORS headers.
 
 - 
setAdditionalAllowedCorsHeaderspublic void setAdditionalAllowedCorsHeaders(java.util.Collection<java.lang.String> additionalAllowedCorsHeaders) Sets the additional allowed CORS headers.- Parameters:
- additionalAllowedCorsHeaders- additional cors headers to be allowed.
 
 - 
getApiGatewayDefaultspublic ApiGatewayDefaults getApiGatewayDefaults() 
 - 
setApiGatewayDefaultspublic void setApiGatewayDefaults(ApiGatewayDefaults apiGatewayDefaults) 
 
- 
 
-