
commonMain.aws.sdk.kotlin.services.lexruntimev2.auth.DefaultLexRuntimeV2AuthSchemeProvider.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexruntimev2.auth
import aws.sdk.kotlin.services.lexruntimev2.endpoints.LexRuntimeV2EndpointProvider
import aws.smithy.kotlin.runtime.auth.AuthOption
import aws.smithy.kotlin.runtime.http.auth.sigV4
public class DefaultLexRuntimeV2AuthSchemeProvider(private val endpointProvider: LexRuntimeV2EndpointProvider? = null) : LexRuntimeV2AuthSchemeProvider {
private val operationOverrides = mapOf>(
"RecognizeUtterance" to listOf(
sigV4(unsignedPayload = true),
),
)
private val serviceDefaults = listOf(
sigV4(),
)
override suspend fun resolveAuthScheme(params: LexRuntimeV2AuthSchemeParameters): List {
val modeledAuthOptions = operationOverrides.getOrElse(params.operationName) {
serviceDefaults
}
return modeledAuthOptions
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy