CfnCodeInterpreterCustomPropsMixin

class aws_cdk.mixins_preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomPropsMixin(props, *, strategy=None)

Bases: Mixin

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

CodeInterpreterNetworkConfigurationProperty

class CfnCodeInterpreterCustomPropsMixin.CodeInterpreterNetworkConfigurationProperty(*, network_mode=None, vpc_config=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration.html#cfn-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration-networkmode

vpc_config

Network mode configuration for VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration.html#cfn-bedrockagentcore-codeinterpretercustom-codeinterpreternetworkconfiguration-vpcconfig

VpcConfigProperty

class CfnCodeInterpreterCustomPropsMixin.VpcConfigProperty(*, security_groups=None, subnets=None)

Bases: object

Network mode configuration for VPC.

Parameters:
  • security_groups (Optional[Sequence[str]]) – Security groups for VPC.

  • subnets (Optional[Sequence[str]]) – Subnets for VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-vpcconfig.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-vpcconfig.html#cfn-bedrockagentcore-codeinterpretercustom-vpcconfig-securitygroups

subnets

Subnets for VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-codeinterpretercustom-vpcconfig.html#cfn-bedrockagentcore-codeinterpretercustom-vpcconfig-subnets