Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitSourceProperty

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

Overview

A git repository containing the skill, cloned over HTTPS.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, auth: nil, path: nil) ⇒ HarnessSkillGitSourceProperty

Returns a new instance of HarnessSkillGitSourceProperty.

Parameters:



2111
2112
2113
2114
2115
2116
2117
2118
# File 'bedrock_agent_core/cfn_harness.rb', line 2111

def initialize(url:, auth: nil, path: nil)
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url")
  @auth = auth.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitAuthProperty.new(**auth.transform_keys(&:to_sym)) : auth
  Jsii::Type.check_type(@auth, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc1NraWxsR2l0QXV0aFByb3BlcnR5In1dfX0=")), "auth") unless @auth.nil?
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil?
end

Instance Attribute Details

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

Authentication configuration for accessing a private git repository.



2129
2130
2131
# File 'bedrock_agent_core/cfn_harness.rb', line 2129

def auth
  @auth
end

#pathString? (readonly)

Subdirectory within the repository containing the skill.



2134
2135
2136
# File 'bedrock_agent_core/cfn_harness.rb', line 2134

def path
  @path
end

#urlString (readonly)

The HTTPS URL of the git repository.



2124
2125
2126
# File 'bedrock_agent_core/cfn_harness.rb', line 2124

def url
  @url
end

Class Method Details

.jsii_propertiesObject



2136
2137
2138
2139
2140
2141
2142
# File 'bedrock_agent_core/cfn_harness.rb', line 2136

def self.jsii_properties
  {
    :url => "url",
    :auth => "auth",
    :path => "path",
  }
end

Instance Method Details

#to_jsiiObject



2144
2145
2146
2147
2148
2149
2150
2151
2152
# File 'bedrock_agent_core/cfn_harness.rb', line 2144

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