commonMain.aws.sdk.kotlin.services.codecatalyst.auth.DefaultCodeCatalystAuthSchemeProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codecatalyst-jvm Show documentation
Show all versions of codecatalyst-jvm Show documentation
The AWS SDK for Kotlin client for CodeCatalyst
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecatalyst.auth
import aws.sdk.kotlin.services.codecatalyst.endpoints.CodeCatalystEndpointProvider
import aws.smithy.kotlin.runtime.auth.AuthOption
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
public class DefaultCodeCatalystAuthSchemeProvider(private val endpointProvider: CodeCatalystEndpointProvider? = null) : CodeCatalystAuthSchemeProvider {
private val operationOverrides = mapOf>(
)
private val serviceDefaults = listOf(
AuthOption(AuthSchemeId.HttpBearer),
)
override suspend fun resolveAuthScheme(params: CodeCatalystAuthSchemeParameters): List {
val modeledAuthOptions = operationOverrides.getOrElse(params.operationName) {
serviceDefaults
}
return modeledAuthOptions
}
}