CfnCodeInterpreterCustomPropsMixin
- class aws_cdk.mixins_preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomPropsMixin(props, *, strategy=None)
Bases:
MixinThe AgentCore Code Interpreter tool enables agents to securely execute code in isolated sandbox environments.
It offers advanced configuration support and seamless integration with popular frameworks.
For more information about using the custom code interpreter, see Execute code and analyze data using Amazon Bedrock AgentCore Code Interpreter .
See the Properties section below for descriptions of both the required and optional properties.
- See:
- CloudformationResource:
AWS::BedrockAgentCore::CodeInterpreterCustom
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins cfn_code_interpreter_custom_props_mixin = bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin(bedrockagentcore_mixins.CfnCodeInterpreterCustomMixinProps( description="description", execution_role_arn="executionRoleArn", name="name", network_configuration=bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty( network_mode="networkMode", vpc_config=bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] ) ), tags={ "tags_key": "tags" } ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::BedrockAgentCore::CodeInterpreterCustom.- Parameters:
props (
Union[CfnCodeInterpreterCustomMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'executionRoleArn', 'name', 'networkConfiguration', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CodeInterpreterNetworkConfigurationProperty
- class CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty(*, network_mode=None, vpc_config=None)
Bases:
objectThe network configuration.
- Parameters:
network_mode (
Optional[str]) – The network mode.vpc_config (
Union[IResolvable,VpcConfigProperty,Dict[str,Any],None]) – Network mode configuration for VPC.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins code_interpreter_network_configuration_property = bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty( network_mode="networkMode", vpc_config=bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] ) )
Attributes
- network_mode
The network mode.
VpcConfigProperty
- class CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty(*, security_groups=None, subnets=None)
Bases:
objectNetwork mode configuration for VPC.
- Parameters:
security_groups (
Optional[Sequence[str]]) – Security groups for VPC.subnets (
Optional[Sequence[str]]) – Subnets for VPC.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_bedrockagentcore import mixins as bedrockagentcore_mixins vpc_config_property = bedrockagentcore_mixins.CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] )
Attributes
- security_groups
Security groups for VPC.