From 1095ebf94000c146a55ce330c28819f155b34308 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Wed, 3 Jul 2024 16:37:14 -0400 Subject: [PATCH 1/3] fix: outdated business metric ids --- .../aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt b/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt index 73575ddf075..12efa343f1a 100644 --- a/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt +++ b/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt @@ -30,13 +30,13 @@ class BusinessMetricsIntegration : KotlinIntegration { private val endpointBusinessMetricsSectionWriter = SectionWriter { writer, _ -> writer.write("") writer.write( - "if (endpoint.attributes.contains(#T)) request.context.#T(#T.SERVICE_ENDPOINT_OVERRIDE)", + "if (endpoint.attributes.contains(#T)) request.context.#T(#T.ENDPOINT_OVERRIDE)", RuntimeTypes.Core.BusinessMetrics.ServiceEndpointOverride, RuntimeTypes.Core.BusinessMetrics.emitBusinessMetric, RuntimeTypes.Core.BusinessMetrics.SmithyBusinessMetric, ) writer.write( - "if (endpoint.attributes.contains(#T)) request.context.#T(#T.ACCOUNT_ID_BASED_ENDPOINT)", + "if (endpoint.attributes.contains(#T)) request.context.#T(#T.ACCOUNT_ID_ENDPOINT)", RuntimeTypes.Core.BusinessMetrics.AccountIdBasedEndpointAccountId, RuntimeTypes.Core.BusinessMetrics.emitBusinessMetric, RuntimeTypes.Core.BusinessMetrics.SmithyBusinessMetric, From 1c6b18adda4e8f336e917a8f20a19b198c0d6be4 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Wed, 17 Jul 2024 10:35:36 -0400 Subject: [PATCH 2/3] fix: update variable names --- .../kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt b/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt index 12efa343f1a..012736a141d 100644 --- a/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt +++ b/codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/BusinessMetricsIntegration.kt @@ -31,7 +31,7 @@ class BusinessMetricsIntegration : KotlinIntegration { writer.write("") writer.write( "if (endpoint.attributes.contains(#T)) request.context.#T(#T.ENDPOINT_OVERRIDE)", - RuntimeTypes.Core.BusinessMetrics.ServiceEndpointOverride, + RuntimeTypes.Core.BusinessMetrics.EndpointOverride, RuntimeTypes.Core.BusinessMetrics.emitBusinessMetric, RuntimeTypes.Core.BusinessMetrics.SmithyBusinessMetric, ) From a7b43565ac1d4fc1dfd517ac28049321b462ab29 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Wed, 17 Jul 2024 10:47:07 -0400 Subject: [PATCH 3/3] fix: appease protocol tests --- gradle/libs.versions.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c884575d6af..f5479b3c6d1 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,8 +9,8 @@ coroutines-version = "1.7.3" atomicfu-version = "0.23.1" # smithy-kotlin codegen and runtime are versioned separately -smithy-kotlin-runtime-version = "1.2.16" -smithy-kotlin-codegen-version = "0.32.16" +smithy-kotlin-runtime-version = "1.2.17-SNAPSHOT" +smithy-kotlin-codegen-version = "0.32.17-SNAPSHOT" # codegen smithy-version = "1.50.0"