Class: AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
- Inherits:
-
NetworkConfiguration
- Object
- NetworkConfiguration
- AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
- Defined in:
- bedrock_agent_core/code_interpreter_network_configuration.rb
Overview
Network configuration for the Code Interpreter tool.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.using_public_network ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a public network configuration.
-
.using_sandbox_network ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a sandbox network configuration.
-
.using_vpc(scope, vpc_config) ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a network configuration from a VPC configuration.
Instance Method Summary collapse
-
#connections ⇒ AWSCDK::EC2::Connections?
The connections object to the network.
-
#initialize(mode, scope = nil, vpc_config = nil) ⇒ CodeInterpreterNetworkConfiguration
constructor
Creates a new network configuration.
-
#network_mode ⇒ String
The network mode to use.
-
#scope ⇒ Constructs::Construct?
The scope to create the resource in.
-
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection?
The VPC subnets to use.
Constructor Details
#initialize(mode, scope = nil, vpc_config = nil) ⇒ CodeInterpreterNetworkConfiguration
Creates a new network configuration.
13 14 15 16 17 18 19 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 13 def initialize(mode, scope = nil, vpc_config = nil) vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::VPCConfigProps.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config Jsii::Type.check_type(mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") unless scope.nil? Jsii::Type.check_type(vpc_config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5WcGNDb25maWdQcm9wcyJ9")), "vpcConfig") unless vpc_config.nil? Jsii::Object.instance_method(:initialize).bind(self).call(mode, scope, vpc_config) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 21 def self.jsii_overridable_methods { :network_mode => { kind: :property, name: "networkMode", is_optional: false }, :connections => { kind: :property, name: "connections", is_optional: true }, :scope => { kind: :property, name: "scope", is_optional: true }, :vpc_subnets => { kind: :property, name: "vpcSubnets", is_optional: true }, } end |
.using_public_network ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a public network configuration.
33 34 35 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 33 def self.using_public_network() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.CodeInterpreterNetworkConfiguration", "usingPublicNetwork", []) end |
.using_sandbox_network ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a sandbox network configuration.
40 41 42 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 40 def self.using_sandbox_network() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.CodeInterpreterNetworkConfiguration", "usingSandboxNetwork", []) end |
.using_vpc(scope, vpc_config) ⇒ AWSCDK::BedrockAgentCore::CodeInterpreterNetworkConfiguration
Creates a network configuration from a VPC configuration.
49 50 51 52 53 54 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 49 def self.using_vpc(scope, vpc_config) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::VPCConfigProps.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config Jsii::Type.check_type(vpc_config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5WcGNDb25maWdQcm9wcyJ9")), "vpcConfig") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.CodeInterpreterNetworkConfiguration", "usingVpc", [scope, vpc_config]) end |
Instance Method Details
#connections ⇒ AWSCDK::EC2::Connections?
The connections object to the network.
69 70 71 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 69 def connections() jsii_get_property("connections") end |
#network_mode ⇒ String
The network mode to use.
Configure the security level for agent execution to control access, isolate resources, and protect sensitive data.
62 63 64 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 62 def network_mode() jsii_get_property("networkMode") end |
#scope ⇒ Constructs::Construct?
The scope to create the resource in.
76 77 78 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 76 def scope() jsii_get_property("scope") end |
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection?
The VPC subnets to use.
83 84 85 |
# File 'bedrock_agent_core/code_interpreter_network_configuration.rb', line 83 def vpc_subnets() jsii_get_property("vpcSubnets") end |