Class: AWSCDK::BedrockAgentCore::NetworkConfiguration
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::BedrockAgentCore::NetworkConfiguration
- Defined in:
- bedrock_agent_core/network_configuration.rb
Overview
Abstract base class for network configuration.
Direct Known Subclasses
BrowserNetworkConfiguration, CodeInterpreterNetworkConfiguration, RuntimeNetworkConfiguration
Class Method Summary collapse
Instance Method Summary collapse
-
#connections ⇒ AWSCDK::EC2::Connections?
The connections object to the network.
-
#initialize(mode, scope = nil, vpc_config = nil) ⇒ NetworkConfiguration
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) ⇒ NetworkConfiguration
Creates a new network configuration.
13 14 15 16 17 18 19 |
# File 'bedrock_agent_core/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/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 |
Instance Method Details
#connections ⇒ AWSCDK::EC2::Connections?
The connections object to the network.
43 44 45 |
# File 'bedrock_agent_core/network_configuration.rb', line 43 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.
36 37 38 |
# File 'bedrock_agent_core/network_configuration.rb', line 36 def network_mode() jsii_get_property("networkMode") end |
#scope ⇒ Constructs::Construct?
The scope to create the resource in.
50 51 52 |
# File 'bedrock_agent_core/network_configuration.rb', line 50 def scope() jsii_get_property("scope") end |
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection?
The VPC subnets to use.
57 58 59 |
# File 'bedrock_agent_core/network_configuration.rb', line 57 def vpc_subnets() jsii_get_property("vpcSubnets") end |