Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[fqdn]: (): api.RestApiProps => ({
binaryMediaTypes: MediaTypes(props),
deploy: true,
deployOptions: {
stageName: (props.sites && props.sites.length > 0) ? props.sites[0].site.split('/')[0] : 'api'
},
domainName: {
certificate,
domainName: site(props),
},
endpointTypes: [api.EndpointType.REGIONAL],
failOnWarnings: true,
})
}
[fqdn]: (): api.RestApiProps => ({
deploy: true,
deployOptions: {
stageName: stage(props),
},
domainName: {
certificate,
domainName: site(props),
},
endpointTypes: [api.EndpointType.REGIONAL],
failOnWarnings: true,
})
}