Class: AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::CodeInterpreterNetworkConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_code_interpreter_custom.rb
Overview
The network configuration.
Instance Attribute Summary collapse
-
#network_mode ⇒ String
readonly
The network mode.
-
#vpc_config ⇒ AWSCDK::IResolvable, ...
readonly
Network mode configuration for VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_mode:, vpc_config: nil) ⇒ CodeInterpreterNetworkConfigurationProperty
constructor
A new instance of CodeInterpreterNetworkConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(network_mode:, vpc_config: nil) ⇒ CodeInterpreterNetworkConfigurationProperty
Returns a new instance of CodeInterpreterNetworkConfigurationProperty.
721 722 723 724 725 726 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 721 def initialize(network_mode:, vpc_config: nil) @network_mode = network_mode Jsii::Type.check_type(@network_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkMode") @vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnCodeInterpreterCustom::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkNvZGVJbnRlcnByZXRlckN1c3RvbS5WcGNDb25maWdQcm9wZXJ0eSJ9XX19")), "vpcConfig") unless @vpc_config.nil? end |
Instance Attribute Details
#network_mode ⇒ String (readonly)
The network mode.
732 733 734 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 732 def network_mode @network_mode end |
#vpc_config ⇒ AWSCDK::IResolvable, ... (readonly)
Network mode configuration for VPC.
737 738 739 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 737 def vpc_config @vpc_config end |
Class Method Details
.jsii_properties ⇒ Object
739 740 741 742 743 744 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 739 def self.jsii_properties { :network_mode => "networkMode", :vpc_config => "vpcConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
746 747 748 749 750 751 752 753 |
# File 'bedrock_agent_core/cfn_code_interpreter_custom.rb', line 746 def to_jsii result = {} result.merge!({ "networkMode" => @network_mode, "vpcConfig" => @vpc_config, }) result.compact end |