CfnCodeInterpreterCustomProps Struct
Properties for defining a CfnCodeInterpreterCustom.
| 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 cfnCodeInterpreterCustomProps: bedrockagentcore.CfnCodeInterpreterCustomProps = {
name: 'name',
networkConfiguration: {
networkMode: 'networkMode',
// the properties below are optional
vpcConfig: {
securityGroups: ['securityGroups'],
subnets: ['subnets'],
},
},
// the properties below are optional
certificates: [{
certificateLocation: {
secretArn: 'secretArn',
},
}],
description: 'description',
executionRoleArn: 'executionRoleArn',
tags: {
tagsKey: 'tags',
},
};
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
cfn_code_interpreter_custom_props = bedrockagentcore.CfnCodeInterpreterCustomProps(
name="name",
network_configuration=bedrockagentcore.CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty(
network_mode="networkMode",
# the properties below are optional
vpc_config=bedrockagentcore.CfnCodeInterpreterCustom.VpcConfigProperty(
security_groups=["securityGroups"],
subnets=["subnets"]
)
),
# the properties below are optional
certificates=[bedrockagentcore.CfnCodeInterpreterCustom.CertificateProperty(
certificate_location=bedrockagentcore.CfnCodeInterpreterCustom.CertificateLocationProperty(
secret_arn="secretArn"
)
)],
description="description",
execution_role_arn="executionRoleArn",
tags={
"tags_key": "tags"
}
)
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.*;
CfnCodeInterpreterCustomProps cfnCodeInterpreterCustomProps = CfnCodeInterpreterCustomProps.builder()
.name("name")
.networkConfiguration(CodeInterpreterNetworkConfigurationProperty.builder()
.networkMode("networkMode")
// the properties below are optional
.vpcConfig(VpcConfigProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
// the properties below are optional
.certificates(List.of(CertificateProperty.builder()
.certificateLocation(CertificateLocationProperty.builder()
.secretArn("secretArn")
.build())
.build()))
.description("description")
.executionRoleArn("executionRoleArn")
.tags(Map.of(
"tagsKey", "tags"))
.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 cfnCodeInterpreterCustomProps = new CfnCodeInterpreterCustomProps {
Name = "name",
NetworkConfiguration = new CodeInterpreterNetworkConfigurationProperty {
NetworkMode = "networkMode",
// the properties below are optional
VpcConfig = new VpcConfigProperty {
SecurityGroups = new [] { "securityGroups" },
Subnets = new [] { "subnets" }
}
},
// the properties below are optional
Certificates = new [] { new CertificateProperty {
CertificateLocation = new CertificateLocationProperty {
SecretArn = "secretArn"
}
} },
Description = "description",
ExecutionRoleArn = "executionRoleArn",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
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"
cfnCodeInterpreterCustomProps := &CfnCodeInterpreterCustomProps{
Name: jsii.String("name"),
NetworkConfiguration: &CodeInterpreterNetworkConfigurationProperty{
NetworkMode: jsii.String("networkMode"),
// the properties below are optional
VpcConfig: &VpcConfigProperty{
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
},
// the properties below are optional
Certificates: []interface{}{
&CertificateProperty{
CertificateLocation: &CertificateLocationProperty{
SecretArn: jsii.String("secretArn"),
},
},
},
Description: jsii.String("description"),
ExecutionRoleArn: jsii.String("executionRoleArn"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
Properties
certificatesoptionalIResolvable | IResolvable | CfnCodeInterpreterCustom.certificatesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CertificateProperty]]]certificatesoptionalIResolvableCertificatesoptionalIResolvableCertificatesoptionalinterface{} #List of root CA certificates.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The code interpreter description.
executionRoleArnoptionalstringexecution_role_arnoptionalstrexecutionRoleArnoptionalStringExecutionRoleArnoptionalstringExecutionRoleArnoptional*string #The Amazon Resource Name (ARN) of the execution role.
The name of the code interpreter.
networkConfigurationIResolvable | CfnCodeInterpreterCustom.network_configurationtyping.Union[IResolvable, CodeInterpreterNetworkConfigurationProperty]networkConfigurationIResolvableNetworkConfigurationIResolvableNetworkConfigurationinterface{} required #The network configuration for a code interpreter.
This structure defines how the code interpreter connects to the network.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #The tags for the code interpreter.