interface CodeConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppSync.CodeConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#CodeConfig |
Java | software.amazon.awscdk.services.appsync.CodeConfig |
Python | aws_cdk.aws_appsync.CodeConfig |
TypeScript (source) | aws-cdk-lib » aws_appsync » CodeConfig |
Obtainable from
Asset.bind(), Code.bind(), Inline.bind()
Result of binding Code into a Function.
Example
// 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
| Name | Type | Description |
|---|---|---|
| inline | string | Inline code (mutually exclusive with s3Location). |
| s3 | string | The location of the code in S3 (mutually exclusive with inlineCode. |
inlineCode?
Type:
string
(optional, default: code is not inline code)
Inline code (mutually exclusive with s3Location).
s3Location?
Type:
string
(optional, default: code is not an s3 location)
The location of the code in S3 (mutually exclusive with inlineCode.

.NET
Go
Java
Python
TypeScript (