File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,9 @@ class BusinessMetricsIntegration : KotlinIntegration {
7171 override val name: String = " credentialsOverrideBusinessMetricsMiddleware"
7272 override fun render (ctx : ProtocolGenerator .GenerationContext , op : OperationShape , writer : KotlinWriter ) {
7373 writer.withBlock(
74- " if (config.credentialsProvider.#T != #S ) {" ,
74+ " if (config.credentialsProvider is #T ) {" ,
7575 " }" ,
76- RuntimeTypes .Auth .Credentials .AwsCredentials .simpleClassName,
77- /* *
78- * If a [CredentialsProvider] is not wrapped by [aws.sdk.kotlin.runtime.auth.credentials.internal.ManagedCredentialsProvider]
79- * it means that it was not created by the SDK, suggesting that the user has supplied their own [CredentialsProvider].
80- *
81- * See:[AwsServiceConfigIntegration.CredentialsProviderProp]
82- */
83- " ManagedCredentialsProvider" ,
76+ AwsRuntimeTypes .Config .Credentials .StaticCredentialsProvider ,
8477 ) {
8578 write(
8679 " op.context.#T(#T.Credentials.CREDENTIALS_CODE)" ,
You can’t perform that action at this time.
0 commit comments