Skip to content
v2.275.0

CodeConfig Struct ​

Result of binding Code into a Function.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const codeConfig: appsync.CodeConfig = {
  inlineCode: 'inlineCode',
  s3Location: 's3Location',
};

Properties ​

inlineCodeoptionalstringinline_codeoptionalstrinlineCodeoptionalStringInlineCodeoptionalstringInlineCodeoptional*string#
Inline code (mutually exclusive with `s3Location`).

Default: code is not inline code

s3Locationoptionalstrings3_locationoptionalstrs3LocationoptionalStringS3LocationoptionalstringS3Locationoptional*string#
The location of the code in S3 (mutually exclusive with `inlineCode`.

Default: code is not an s3 location