MCPcopy Create free account
hub / github.com/coder/coder / IsConfigured

Method IsConfigured

codersdk/aiproviders_bedrock.go:46–57  ·  view source on GitHub ↗

IsConfigured reports whether any load-bearing Bedrock field is set, indicating that the operator wants the provider to authenticate via AWS Bedrock rather than as a bearer-token Anthropic provider. Model and SmallFastModel are intentionally excluded: they have deployment-level defaults declared in

()

Source from the content-addressed store, hash-verified

44// not required because Bedrock can also authenticate via the AWS
45// environment (instance profile, AWS_PROFILE, IRSA, etc.).
46func (b AIProviderBedrockSettings) IsConfigured() bool {
47 if b.Region != "" {
48 return true
49 }
50 if b.AccessKey != nil && *b.AccessKey != "" {
51 return true
52 }
53 if b.AccessKeySecret != nil && *b.AccessKeySecret != "" {
54 return true
55 }
56 return false
57}
58
59// NewAIProviderBedrockSettings builds an AIProviderBedrockSettings,
60// promoting non-empty credential strings to pointers so callers don't

Callers 3

ValidateMethod · 0.80
IsBedrockConfiguredFunction · 0.80
bedrockConfigFromRowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected