Class: AWSCDK::BedrockAgentCore::CfnRuntime::CodeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_runtime.rb

Overview

Representation of a code configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, entry_point:, runtime:) ⇒ CodeConfigurationProperty

Returns a new instance of CodeConfigurationProperty.

Parameters:



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

#entry_pointArray<String> (readonly)

List of entry points.



908
909
910
# File 'bedrock_agent_core/cfn_runtime.rb', line 908

def entry_point
  @entry_point
end

#runtimeString (readonly)

Managed runtime types.



913
914
915
# File 'bedrock_agent_core/cfn_runtime.rb', line 913

def runtime
  @runtime
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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