CodeConfigurationProperty Struct
Representation of a code configuration.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
codeIResolvable | CfnRuntime.CodePropertycodetyping.Union[IResolvable, CodeProperty]codeIResolvableCodeIResolvableCodeinterface{} required #Object represents source code from zip file.
entryPointstring[]entry_pointtyping.List[str]entryPointList<String>EntryPointstring[]EntryPoint*[]*string required #List of entry points.
Managed runtime types.