Skip to content

Commit 838a9f2

Browse files
committed
use clientName function
1 parent 1119282 commit 838a9f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/EnvironmentBearerTokenCustomization.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ class EnvironmentBearerTokenCustomization : KotlinIntegration {
136136
)
137137

138138
private val finalizeEnvironmentBearerTokenConfigWriter = AppendingSectionWriter { writer ->
139-
val serviceName = writer.getContextValue(ServiceClientGenerator.Sections.CompanionObject.ServiceSymbol)
140-
.name
141-
.removeSuffix("Client")
139+
val serviceName = clientName(writer.getContextValue(ServiceClientGenerator.Sections.CompanionObject.SdkId))
142140

143141
val environmentBearerTokenConfig = buildSymbol {
144142
name = "finalize${serviceName}EnvironmentBearerTokenConfig"

0 commit comments

Comments
 (0)