Class BedrockProviderConfig
java.lang.Object
hudson.model.AbstractDescribableImpl<AiProviderConfig>
io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
io.jenkins.plugins.changeinvestigator.ai.provider.BedrockProviderConfig
- All Implemented Interfaces:
Describable<AiProviderConfig>,Serializable
AWS Bedrock, via the Runtime
Converse API - see BedrockProvider for the wire
contract. The AWS credential is optional and deliberately not a plain-text access
key/secret pasted into this plugin's own config: when set, it references a Jenkins
AmazonWebServicesCredentials credential (the standard type from the
aws-credentials plugin, backed by Jenkins Credentials storage the same way every
other secret in this plugin already is); when left unset, calls fall back to the AWS SDK's
default credential provider chain, which is how most enterprise Bedrock setups actually work
- an IAM role attached to the Jenkins controller or agent, with no static key material
anywhere. An optional Role ARN layers AWS STS AssumeRole on top of either credential
source - see BedrockProvider for how that's wired without ever hand-signing anything.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
AiProviderConfig.AiProviderConfigDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int timeoutSeconds) Builds a provider bound to this configuration's resolved settings, ready to make one (or more)AiProvider.chatCompletion(io.jenkins.plugins.changeinvestigator.ai.AiAnalysisRequest)calls.getModel()The model identifier this configuration will request, for display purposes.voidsetCredentialsId(String credentialsId) voidsetEndpointUrl(String endpointUrl) voidsetRoleArn(String roleArn) Methods inherited from class io.jenkins.plugins.changeinvestigator.ai.provider.AiProviderConfig
testConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
BedrockProviderConfig
-
-
Method Details
-
getRegion
-
getModel
Description copied from class:AiProviderConfigThe model identifier this configuration will request, for display purposes.- Specified by:
getModelin classAiProviderConfig
-
getCredentialsId
-
setCredentialsId
-
getEndpointUrl
-
setEndpointUrl
-
getRoleArn
-
setRoleArn
-
createProvider
public AiProvider createProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper, int timeoutSeconds) Description copied from class:AiProviderConfigBuilds a provider bound to this configuration's resolved settings, ready to make one (or more)AiProvider.chatCompletion(io.jenkins.plugins.changeinvestigator.ai.AiAnalysisRequest)calls. Resolving the credential happens inside this method, not before it, so the plaintext secret's lifetime is limited to the call that actually needs it.- Specified by:
createProviderin classAiProviderConfig- Parameters:
objectMapper- shared Jackson mapper for building/parsing request and response JSONtimeoutSeconds- administrator-configured connect/request timeout (a global, not per-provider, setting - seeChangeInvestigatorGlobalConfiguration)
-