code

@JvmName(name = "itdulpvkeijmvegv")
suspend fun code(value: Output<FunctionCodeArgs>)
@JvmName(name = "dqmelblttcmbuuax")
suspend fun code(value: FunctionCodeArgs?)

Parameters

value

The code for the function. You can define your function code in multiple ways:

  • For .zip deployment packages, you can specify the S3 location of the .zip file in the `S3Bucket`, `S3Key`, and `S3ObjectVersion` properties.

  • For .zip deployment packages, you can alternatively define the function code inline in the `ZipFile` property. This method works only for Node.js and Python functions.

  • For container images, specify the URI of your container image in the ECR registry in the `ImageUri` property.


@JvmName(name = "yvmyueeobbkepxyl")
suspend fun code(argument: suspend FunctionCodeArgsBuilder.() -> Unit)

Parameters

argument

The code for the function. You can define your function code in multiple ways:

  • For .zip deployment packages, you can specify the S3 location of the .zip file in the `S3Bucket`, `S3Key`, and `S3ObjectVersion` properties.

  • For .zip deployment packages, you can alternatively define the function code inline in the `ZipFile` property. This method works only for Node.js and Python functions.

  • For container images, specify the URI of your container image in the ECR registry in the `ImageUri` property.