Class ApiGatewayConfig
- java.lang.Object
-
- software.amazon.smithy.aws.apigateway.openapi.ApiGatewayConfig
-
public final class ApiGatewayConfig extends java.lang.Object
API Gateway OpenAPI configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApiGatewayConfig.ApiType
The type of API Gateway service to generate.
-
Constructor Summary
Constructors Constructor Description ApiGatewayConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAdditionalAllowedCorsHeaders()
ApiGatewayConfig.ApiType
getApiGatewayType()
boolean
getDisableCloudFormationSubstitution()
void
setAdditionalAllowedCorsHeaders(java.util.List<java.lang.String> additionalAllowedCorsHeaders)
Sets the list of additional allowed CORS headers.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.
-
-
-
Method Detail
-
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
public ApiGatewayConfig.ApiType getApiGatewayType()
- Returns:
- the type of API Gateway API to generate.
-
setApiGatewayType
public 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
public java.util.List<java.lang.String> getAdditionalAllowedCorsHeaders()
- Returns:
- the list of additional allowed CORS headers.
-
setAdditionalAllowedCorsHeaders
public void setAdditionalAllowedCorsHeaders(java.util.List<java.lang.String> additionalAllowedCorsHeaders)
Sets the list of additional allowed CORS headers.If not set, this value defaults to setting "amz-sdk-invocation-id" and "amz-sdk-request" as the additional allowed CORS headers.
- Parameters:
additionalAllowedCorsHeaders
- additional cors headers to be allowed.
-
-