Skip to content

Commit d1fc755

Browse files
authored
feat: increase ImdsClient.Builder.engine visibility to public (#1725)
1 parent ea05df9 commit d1fc755

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "3bc2e0a5-d8d4-4051-a723-a54427a96e7e",
3+
"type": "feature",
4+
"description": "Enable configuring an HTTP engine on `ImdsClient`"
5+
}

aws-runtime/aws-config/api/aws-config.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,12 @@ public final class aws/sdk/kotlin/runtime/config/imds/ImdsClient : aws/sdk/kotli
418418
public final class aws/sdk/kotlin/runtime/config/imds/ImdsClient$Builder {
419419
public fun <init> ()V
420420
public final fun getEndpointConfiguration ()Laws/sdk/kotlin/runtime/config/imds/EndpointConfiguration;
421+
public final fun getEngine ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
421422
public final fun getLogMode ()Laws/smithy/kotlin/runtime/client/LogMode;
422423
public final fun getMaxRetries ()I
423424
public final fun getTokenTtl-UwyO8pc ()J
424425
public final fun setEndpointConfiguration (Laws/sdk/kotlin/runtime/config/imds/EndpointConfiguration;)V
426+
public final fun setEngine (Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;)V
425427
public final fun setLogMode (Laws/smithy/kotlin/runtime/client/LogMode;)V
426428
public final fun setMaxRetries (I)V
427429
public final fun setTokenTtl-LRDsOJo (J)V

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/config/imds/ImdsClient.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ public class ImdsClient private constructor(builder: Builder) : InstanceMetadata
172172
public var logMode: LogMode = LogMode.Default
173173

174174
/**
175-
* The HTTP engine to use to make requests with. This is here to facilitate testing and can otherwise be ignored
175+
* The HTTP engine to use to make requests with
176176
*/
177-
internal var engine: HttpClientEngine? = null
177+
public var engine: HttpClientEngine? = null
178178

179179
/**
180180
* The source of time for token refreshes. This is here to facilitate testing and can otherwise be ignored

0 commit comments

Comments
 (0)