You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ServiceClientConfigGenerator.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ class ServiceClientConfigGenerator(
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/util/RuntimeConfigProperty.kt
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ServiceClientConfigGeneratorTest.kt
+30-97Lines changed: 30 additions & 97 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ public class Config private constructor(builder: Builder) : HttpAuthConfig, Http
53
53
public val endpointProvider: EndpointProvider = requireNotNull(builder.endpointProvider) { "endpointProvider is a required configuration property" }
54
54
override val idempotencyTokenProvider: IdempotencyTokenProvider = builder.idempotencyTokenProvider ?: IdempotencyTokenProvider.Default
55
55
override val interceptors: kotlin.collections.List<aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor> = builder.interceptors
56
+
override val logMode: LogMode = builder.logMode ?: LogMode.Default
56
57
override val retryPolicy: RetryPolicy<Any?> = builder.retryPolicy ?: StandardRetryPolicy.Default
57
58
override val retryStrategy: RetryStrategy = builder.retryStrategy ?: StandardRetryStrategy()
58
-
override val sdkLogMode: SdkLogMode = builder.sdkLogMode
59
59
override val tracer: Tracer = builder.tracer ?: DefaultTracer(LoggingTraceProbe, clientName)
60
60
"""
61
61
contents.shouldContainWithDiff(expectedProps)
@@ -106,17 +106,6 @@ public class Config private constructor(builder: Builder) : HttpAuthConfig, Http
106
106
*/
107
107
override var interceptors: kotlin.collections.MutableList<aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor> = kotlin.collections.mutableListOf()
108
108
109
-
/**
110
-
* The policy to use for evaluating operation results and determining whether/how to retry.
111
-
*/
112
-
override var retryPolicy: RetryPolicy<Any?>? = null
113
-
114
-
/**
115
-
* The [RetryStrategy] implementation to use for service calls. All API calls will be wrapped by the
116
-
* strategy.
117
-
*/
118
-
override var retryStrategy: RetryStrategy? = null
119
-
120
109
/**
121
110
* Configure events that will be logged. By default clients will not output
122
111
* raw requests or responses. Use this setting to opt-in to additional debug logging.
@@ -127,7 +116,18 @@ public class Config private constructor(builder: Builder) : HttpAuthConfig, Http
127
116
* performance considerations when dumping the request/response body. This is primarily a tool for
128
117
* debug purposes.
129
118
*/
130
-
override var sdkLogMode: SdkLogMode = SdkLogMode.Default
119
+
override var logMode: LogMode? = null
120
+
121
+
/**
122
+
* The policy to use for evaluating operation results and determining whether/how to retry.
123
+
*/
124
+
override var retryPolicy: RetryPolicy<Any?>? = null
125
+
126
+
/**
127
+
* The [RetryStrategy] implementation to use for service calls. All API calls will be wrapped by the
128
+
* strategy.
129
+
*/
130
+
override var retryStrategy: RetryStrategy? = null
131
131
132
132
/**
133
133
* The tracer that is responsible for creating trace spans and wiring them up to a tracing backend (e.g.,
@@ -148,7 +148,7 @@ public class Config private constructor(builder: Builder) : HttpAuthConfig, Http
0 commit comments