CfnCodeInterpreterCustomPropsMixin
- class aws_cdk.cfn_property_mixins.aws_bedrockagentcore.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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_code_interpreter_custom_props_mixin = bedrockagentcore.CfnCodeInterpreterCustomPropsMixin(bedrockagentcore.CfnCodeInterpreterCustomMixinProps( description="description", execution_role_arn="executionRoleArn", name="name", network_configuration=bedrockagentcore.CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty( network_mode="networkMode", vpc_config=bedrockagentcore.CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] ) ), tags={ "tags_key": "tags" } ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::BedrockAgentCore::CodeInterpreterCustom.- Parameters:
props (
Union[CfnCodeInterpreterCustomMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- 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)
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.
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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore code_interpreter_network_configuration_property = bedrockagentcore.CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty( network_mode="networkMode", vpc_config=bedrockagentcore.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.cfn_property_mixins import aws_bedrockagentcore as bedrockagentcore vpc_config_property = bedrockagentcore.CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty( security_groups=["securityGroups"], subnets=["subnets"] )
Attributes
- security_groups
Security groups for VPC.