Class: AWSCDK::BedrockAgentCore::CfnRuntime::CodeProperty

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

Overview

Object represents source code from zip file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3: nil) ⇒ CodeProperty

Returns a new instance of CodeProperty.

Parameters:



941
942
943
944
# File 'bedrock_agent_core/cfn_runtime.rb', line 941

def initialize(s3: nil)
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::S3LocationProperty.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuUzNMb2NhdGlvblByb3BlcnR5In1dfX0=")), "s3") unless @s3.nil?
end

Instance Attribute Details

#s3AWSCDK::IResolvable, ... (readonly)

S3 Location Configuration.



950
951
952
# File 'bedrock_agent_core/cfn_runtime.rb', line 950

def s3
  @s3
end

Class Method Details

.jsii_propertiesObject



952
953
954
955
956
# File 'bedrock_agent_core/cfn_runtime.rb', line 952

def self.jsii_properties
  {
    :s3 => "s3",
  }
end

Instance Method Details

#to_jsiiObject



958
959
960
961
962
963
964
# File 'bedrock_agent_core/cfn_runtime.rb', line 958

def to_jsii
  result = {}
  result.merge!({
    "s3" => @s3,
  })
  result.compact
end