# CodeConfigurationProperty

Representation of a code configuration.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const codeConfigurationProperty: bedrockagentcore.CfnRuntime.CodeConfigurationProperty = {
  code: {
    s3: {
      bucket: 'bucket',
      prefix: 'prefix',

      // the properties below are optional
      versionId: 'versionId',
    },
  },
  entryPoint: ['entryPoint'],
  runtime: 'runtime',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

code_configuration_property = bedrockagentcore.CfnRuntime.CodeConfigurationProperty(
    code=bedrockagentcore.CfnRuntime.CodeProperty(
        s3=bedrockagentcore.CfnRuntime.S3LocationProperty(
            bucket="bucket",
            prefix="prefix",

            # the properties below are optional
            version_id="versionId"
        )
    ),
    entry_point=["entryPoint"],
    runtime="runtime"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

CodeConfigurationProperty codeConfigurationProperty = CodeConfigurationProperty.builder()
        .code(CodeProperty.builder()
                .s3(S3LocationProperty.builder()
                        .bucket("bucket")
                        .prefix("prefix")

                        // the properties below are optional
                        .versionId("versionId")
                        .build())
                .build())
        .entryPoint(List.of("entryPoint"))
        .runtime("runtime")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var codeConfigurationProperty = new CodeConfigurationProperty {
    Code = new CodeProperty {
        S3 = new S3LocationProperty {
            Bucket = "bucket",
            Prefix = "prefix",

            // the properties below are optional
            VersionId = "versionId"
        }
    },
    EntryPoint = new [] { "entryPoint" },
    Runtime = "runtime"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

codeConfigurationProperty := &CodeConfigurationProperty{
	Code: &CodeProperty{
		S3: &S3LocationProperty{
			Bucket: jsii.String("bucket"),
			Prefix: jsii.String("prefix"),

			// the properties below are optional
			VersionId: jsii.String("versionId"),
		},
	},
	EntryPoint: []*string{
		jsii.String("entryPoint"),
	},
	Runtime: jsii.String("runtime"),
}
```

## Properties

- `code`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.CodeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.CodeProperty.html) (required) — Object represents source code from zip file.

- `entryPoint`: string[] (required) — List of entry points.

- `runtime`: string (required) — Managed runtime types.
