From 2180b5b9f2cf47055f094c7c8cbacf1334b0d6f1 Mon Sep 17 00:00:00 2001 From: Matas Date: Thu, 7 Dec 2023 15:55:42 -0500 Subject: [PATCH] fix: make configurationSource public (#1141) --- aws-runtime/aws-config/api/aws-config.api | 1 + .../runtime/auth/credentials/ProfileCredentialsProvider.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-runtime/aws-config/api/aws-config.api b/aws-runtime/aws-config/api/aws-config.api index 6356f133451..34f3b61d5a6 100644 --- a/aws-runtime/aws-config/api/aws-config.api +++ b/aws-runtime/aws-config/api/aws-config.api @@ -102,6 +102,7 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsPro public fun (Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/sdk/kotlin/runtime/config/profile/AwsConfigurationSource;)V public synthetic fun (Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/sdk/kotlin/runtime/config/profile/AwsConfigurationSource;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public fun close ()V + public final fun getConfigurationSource ()Laws/sdk/kotlin/runtime/config/profile/AwsConfigurationSource; public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine; public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider; public final fun getProfileName ()Ljava/lang/String; diff --git a/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt b/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt index 206f76a019a..a1e8649ef5e 100644 --- a/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt +++ b/aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt @@ -82,7 +82,7 @@ public class ProfileCredentialsProvider( public val region: String? = null, public val platformProvider: PlatformProvider = PlatformProvider.System, public val httpClient: HttpClientEngine? = null, - private val configurationSource: AwsConfigurationSource? = null, + public val configurationSource: AwsConfigurationSource? = null, ) : CloseableCredentialsProvider { private val namedProviders = mapOf( "Environment" to EnvironmentCredentialsProvider(platformProvider::getenv),