Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitAuthProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessSkillGitAuthProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Authentication configuration for accessing a private git repository.
Instance Attribute Summary collapse
-
#credential_arn ⇒ String
readonly
The ARN of the credential in AgentCore Identity containing the password or personal access token.
-
#username ⇒ String?
readonly
Username for authentication.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credential_arn:, username: nil) ⇒ HarnessSkillGitAuthProperty
constructor
A new instance of HarnessSkillGitAuthProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credential_arn:, username: nil) ⇒ HarnessSkillGitAuthProperty
Returns a new instance of HarnessSkillGitAuthProperty.
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_arn ⇒ String (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 |
#username ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |