in consumers/online/infrastructure/lib/infrastructureStack.ts [29:47]
constructor(scope: cdk.App, id: string, props: InfrastructureStackProps) {
super(scope, id, props);
const sageMakeEndpointARN = cdk.Fn.importValue(`${props.modelEndpointExportNamePrefix}-${props.projectName}`);
const sageMakerEndpointName = cdk.Fn.importValue(
`${props.modelEndpointExportNamePrefix}-Name-${props.projectName}`
);
const apiConstruct = new WebsiteApiConstruct(this, 'WebsiteAPIConstruct', {
ipCIDRBlocks: props.ipPermitList,
sageMakeEndpointARN,
sageMakerEndpointName,
});
new WebsiteConstruct(this, 'WebsiteConstruct', {
websiteDistPath: props.websiteDistPath,
api: apiConstruct.api,
});
}