Class: AWSCDK::BedrockAgentCore::CfnRuntime::CodeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnRuntime::CodeConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_runtime.rb
Overview
Representation of a code configuration.
Instance Attribute Summary collapse
-
#code ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::CodeProperty
readonly
Object represents source code from zip file.
-
#entry_point ⇒ Array<String>
readonly
List of entry points.
-
#runtime ⇒ String
readonly
Managed runtime types.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, entry_point:, runtime:) ⇒ CodeConfigurationProperty
constructor
A new instance of CodeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code:, entry_point:, runtime:) ⇒ CodeConfigurationProperty
Returns a new instance of CodeConfigurationProperty.
890 891 892 893 894 895 896 897 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 890 def initialize(code:, entry_point:, runtime:) @code = code.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::CodeProperty.new(**code.transform_keys(&:to_sym)) : code Jsii::Type.check_type(@code, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuQ29kZVByb3BlcnR5In1dfX0=")), "code") @entry_point = entry_point Jsii::Type.check_type(@entry_point, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "entryPoint") @runtime = runtime Jsii::Type.check_type(@runtime, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runtime") end |
Instance Attribute Details
#code ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::CodeProperty (readonly)
Object represents source code from zip file.
903 904 905 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 903 def code @code end |
#entry_point ⇒ Array<String> (readonly)
List of entry points.
908 909 910 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 908 def entry_point @entry_point end |
#runtime ⇒ String (readonly)
Managed runtime types.
913 914 915 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 913 def runtime @runtime end |
Class Method Details
.jsii_properties ⇒ Object
915 916 917 918 919 920 921 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 915 def self.jsii_properties { :code => "code", :entry_point => "entryPoint", :runtime => "runtime", } end |
Instance Method Details
#to_jsii ⇒ Object
923 924 925 926 927 928 929 930 931 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 923 def to_jsii result = {} result.merge!({ "code" => @code, "entryPoint" => @entry_point, "runtime" => @runtime, }) result.compact end |