INNER CODE UNIT · Go
func
mweagle/Sparta · apigateway.go:491
func (api *API) LogicalResourceName() string {
return CloudFormationResourceName("APIGateway", api.name)
}
// RestAPIURL returns the dynamically assigned
// Rest API URL including the scheme
func (api *API) RestAPIURL() string {
return gof.Join("", []string{
"https://",
gof.Ref(api.LogicalResourceName()),
".execute-api.",
gof.Ref("AWS::Region"),
".amazonaws.com",
})
}
func (api *API) corsEnabled() bool {
return api.CORSEnabled || (api.CORSOptions != nil)