diff --git a/.changes/41bdd91a-a58d-47bc-b89d-0e5c334ea6f6.json b/.changes/41bdd91a-a58d-47bc-b89d-0e5c334ea6f6.json new file mode 100644 index 00000000000..21045d65307 --- /dev/null +++ b/.changes/41bdd91a-a58d-47bc-b89d-0e5c334ea6f6.json @@ -0,0 +1,8 @@ +{ + "id": "41bdd91a-a58d-47bc-b89d-0e5c334ea6f6", + "type": "feature", + "description": "Add support for `smithy.protocols#rpcv2Cbor` protocol", + "issues": [ + "https://github.com/awslabs/aws-sdk-kotlin/issues/1302" + ] +} \ No newline at end of file diff --git a/build-support/build.gradle.kts b/build-support/build.gradle.kts index a7d77f53acc..89c0056296e 100644 --- a/build-support/build.gradle.kts +++ b/build-support/build.gradle.kts @@ -22,6 +22,7 @@ dependencies { implementation(libs.smithy.model) implementation(libs.smithy.aws.traits) + implementation(libs.smithy.protocol.traits) implementation(libs.kotlinx.serialization.json) testImplementation(libs.junit.jupiter) diff --git a/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt b/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt index 2f7d1e8c0af..ad447eaa0f7 100644 --- a/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt +++ b/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/sdk/Util.kt @@ -11,6 +11,7 @@ import software.amazon.smithy.aws.traits.protocols.Ec2QueryTrait import software.amazon.smithy.aws.traits.protocols.RestJson1Trait import software.amazon.smithy.aws.traits.protocols.RestXmlTrait import software.amazon.smithy.model.shapes.ServiceShape +import software.amazon.smithy.protocol.traits.Rpcv2CborTrait private const val DEPRECATED_SHAPES_CUTOFF_DATE: String = "2023-11-28" @@ -39,4 +40,5 @@ fun ServiceShape.protocolName(): String = AwsJson1_1Trait.ID, AwsQueryTrait.ID, Ec2QueryTrait.ID, + Rpcv2CborTrait.ID, ).first { hasTrait(it) }.name diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d9d29516ff0..ae7fcdc643d 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.12" -smithy-kotlin-codegen-version = "0.32.12" +smithy-kotlin-runtime-version = "1.2.14" +smithy-kotlin-codegen-version = "0.32.14" # codegen smithy-version = "1.50.0" @@ -71,6 +71,7 @@ smithy-kotlin-serde = { module = "aws.smithy.kotlin:serde", version.ref = "smith smithy-kotlin-serde-form-url = { module = "aws.smithy.kotlin:serde-form-url", version.ref = "smithy-kotlin-runtime-version" } smithy-kotlin-serde-json = { module = "aws.smithy.kotlin:serde-json", version.ref = "smithy-kotlin-runtime-version" } smithy-kotlin-serde-xml = { module = "aws.smithy.kotlin:serde-xml", version.ref = "smithy-kotlin-runtime-version" } +smithy-kotlin-serde-cbor = { module = "aws.smithy.kotlin:serde-cbor", version.ref = "smithy-kotlin-runtime-version" } smithy-kotlin-smithy-client = { module = "aws.smithy.kotlin:smithy-client", version.ref = "smithy-kotlin-runtime-version" } smithy-kotlin-smithy-test = { module = "aws.smithy.kotlin:smithy-test", version.ref = "smithy-kotlin-runtime-version" } smithy-kotlin-telemetry-api = { module = "aws.smithy.kotlin:telemetry-api", version.ref = "smithy-kotlin-runtime-version" } @@ -88,6 +89,7 @@ smithy-cli = { module = "software.amazon.smithy:smithy-cli", version.ref = "smit smithy-waiters = { module = "software.amazon.smithy:smithy-waiters", version.ref = "smithy-version" } smithy-aws-endpoints = { module = "software.amazon.smithy:smithy-aws-endpoints", version.ref = "smithy-version" } smithy-aws-traits = { module = "software.amazon.smithy:smithy-aws-traits", version.ref = "smithy-version" } +smithy-protocol-traits = { module = "software.amazon.smithy:smithy-protocol-traits", version.ref = "smithy-version" } smithy-aws-protocol-tests = { module = "software.amazon.smithy:smithy-aws-protocol-tests", version.ref = "smithy-version" } smithy-aws-iam-traits = { module = "software.amazon.smithy:smithy-aws-iam-traits", version.ref = "smithy-version" } smithy-aws-cloudformation-traits = { module = "software.amazon.smithy:smithy-aws-cloudformation-traits", version.ref = "smithy-version" }