Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitAuthProperty

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

Overview

Authentication configuration for accessing a private git repository.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credential_arn:, username: nil) ⇒ HarnessSkillGitAuthProperty

Returns a new instance of HarnessSkillGitAuthProperty.

Parameters:

  • credential_arn (String)

    The ARN of the credential in AgentCore Identity containing the password or personal access token.

  • username (String, nil) (defaults to: nil)

    Username for authentication.



2065
2066
2067
2068
2069
2070
# File 'bedrock_agent_core/cfn_harness.rb', line 2065

def initialize(credential_arn:, username: nil)
  @credential_arn = credential_arn
  Jsii::Type.check_type(@credential_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "credentialArn")
  @username = username
  Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil?
end

Instance Attribute Details

#credential_arnString (readonly)

The ARN of the credential in AgentCore Identity containing the password or personal access token.



2076
2077
2078
# File 'bedrock_agent_core/cfn_harness.rb', line 2076

def credential_arn
  @credential_arn
end

#usernameString? (readonly)

Username for authentication.

Defaults to 'oauth2' if not specified.



2083
2084
2085
# File 'bedrock_agent_core/cfn_harness.rb', line 2083

def username
  @username
end

Class Method Details

.jsii_propertiesObject



2085
2086
2087
2088
2089
2090
# File 'bedrock_agent_core/cfn_harness.rb', line 2085

def self.jsii_properties
  {
    :credential_arn => "credentialArn",
    :username => "username",
  }
end

Instance Method Details

#to_jsiiObject



2092
2093
2094
2095
2096
2097
2098
2099
# File 'bedrock_agent_core/cfn_harness.rb', line 2092

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