Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Instance Attribute Summary collapse
-
#aws_skills ⇒ AWSCDK::IResolvable, ...
readonly
AWS Skills baked into the Harness's underlying Runtime.
-
#git ⇒ AWSCDK::IResolvable, ...
readonly
A git repository containing the skill, cloned over HTTPS.
-
#path ⇒ String?
readonly
The filesystem path to the skill definition.
-
#s3 ⇒ AWSCDK::IResolvable, ...
readonly
An S3 source containing the skill.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aws_skills: nil, git: nil, path: nil, s3: nil) ⇒ HarnessSkillProperty
constructor
A new instance of HarnessSkillProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_skills: nil, git: nil, path: nil, s3: nil) ⇒ HarnessSkillProperty
Returns a new instance of HarnessSkillProperty.
2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2163 def initialize(aws_skills: nil, git: nil, path: nil, s3: nil) @aws_skills = aws_skills.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillAWSSkillsSourceProperty.new(**aws_skills.transform_keys(&:to_sym)) : aws_skills Jsii::Type.check_type(@aws_skills, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1NraWxsQXdzU2tpbGxzU291cmNlUHJvcGVydHkifV19fQ==")), "awsSkills") unless @aws_skills.nil? @git = git.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitSourceProperty.new(**git.transform_keys(&:to_sym)) : git Jsii::Type.check_type(@git, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1NraWxsR2l0U291cmNlUHJvcGVydHkifV19fQ==")), "git") unless @git.nil? @path = path Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil? @s3 = s3.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillS3SourceProperty.new(**s3.transform_keys(&:to_sym)) : s3 Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1NraWxsUzNTb3VyY2VQcm9wZXJ0eSJ9XX19")), "s3") unless @s3.nil? end |
Instance Attribute Details
#aws_skills ⇒ AWSCDK::IResolvable, ... (readonly)
AWS Skills baked into the Harness's underlying Runtime.
2178 2179 2180 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2178 def aws_skills @aws_skills end |
#git ⇒ AWSCDK::IResolvable, ... (readonly)
A git repository containing the skill, cloned over HTTPS.
2183 2184 2185 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2183 def git @git end |
#path ⇒ String? (readonly)
The filesystem path to the skill definition.
2188 2189 2190 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2188 def path @path end |
#s3 ⇒ AWSCDK::IResolvable, ... (readonly)
An S3 source containing the skill.
2193 2194 2195 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2193 def s3 @s3 end |
Class Method Details
.jsii_properties ⇒ Object
2195 2196 2197 2198 2199 2200 2201 2202 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2195 def self.jsii_properties { :aws_skills => "awsSkills", :git => "git", :path => "path", :s3 => "s3", } end |
Instance Method Details
#to_jsii ⇒ Object
2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2204 def to_jsii result = {} result.merge!({ "awsSkills" => @aws_skills, "git" => @git, "path" => @path, "s3" => @s3, }) result.compact end |