INNER CODE UNIT · TypeScript

getFilePath

jetbridge/cdk-nextjs · .projenrc.ts:100

const getFilePath = (fileName: string) => 'src/generated-structs/' + fileName + '.ts';
new ProjenStruct(project, { name: 'OptionalFunctionProps', filePath: getFilePath('OptionalFunctionProps') })
  .mixin(Struct.fromFqn('aws-cdk-lib.aws_lambda.FunctionProps'))
  .allOptional();
new ProjenStruct(project, { name: 'OptionalCustomResourceProps', filePath: getFilePath('OptionalCustomResourceProps') })
  .mixin(Struct.fromFqn('aws-cdk-lib.CustomResourceProps'))
  .allOptional();
new ProjenStruct(project, { name: 'OptionalS3OriginProps', filePath: getFilePath('OptionalS3OriginProps') })
  .mixin(Struct.fromFqn('aws-cdk-lib.aws_cloudfront_origins.S3OriginProps'))
  .allOptional();
new ProjenStruct(project, { name: 'OptionalEdgeFunctionProps', filePath: getFilePath('OptionalEdgeFunctionProps') })
  .mixin(Struct.fromFqn('aws-cdk-lib.aws_cloudfront.experimental.EdgeFunctionProps'))
  .allOptional();
new ProjenStruct(project, {
  name: 'OptionalCloudFrontFunctionProps',
  filePath: getFilePath('OptionalCloudFrontFunctionProps'),
})
  .mixin(Struct.fromFqn('aws-cdk-lib.aws_cloudfront.FunctionProps'))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…