Skip to content

Commit

Permalink
Add com.amazonaws.acm#KeyAlgorithm patches
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jul 22, 2024
1 parent 5c16683 commit 4236626
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
.plugin(name: "SotoCodeGeneratorPlugin", targets: ["SotoCodeGeneratorPlugin"]),
],
dependencies: [
.package(url: "https://github.com/soto-project/soto-smithy.git", from: "0.3.7"),
.package(url: "https://github.com/soto-project/soto-smithy.git", from: "0.4.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0-beta"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
Expand Down
9 changes: 9 additions & 0 deletions Sources/SotoCodeGeneratorLib/Model+Patch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ import SotoSmithyAWS

extension Model {
static let patches: [String: [ShapeId: ShapePatch]] = [
"ACM": [
"com.amazonaws.acm#KeyAlgorithm$RSA_1024": EditTraitPatch { _ in EnumValueTrait(value: .string("RSA-1024")) },
"com.amazonaws.acm#KeyAlgorithm$RSA_2048": EditTraitPatch { _ in EnumValueTrait(value: .string("RSA-2048")) },
"com.amazonaws.acm#KeyAlgorithm$RSA_3072": EditTraitPatch { _ in EnumValueTrait(value: .string("RSA-3072")) },
"com.amazonaws.acm#KeyAlgorithm$RSA_4096": EditTraitPatch { _ in EnumValueTrait(value: .string("RSA-4096")) },
"com.amazonaws.acm#KeyAlgorithm$EC_prime256v1": EditTraitPatch { _ in EnumValueTrait(value: .string("EC-prime256v1")) },
"com.amazonaws.acm#KeyAlgorithm$EC_secp384r1": EditTraitPatch { _ in EnumValueTrait(value: .string("EC-secp384r1")) },
"com.amazonaws.acm#KeyAlgorithm$EC_secp521r1": EditTraitPatch { _ in EnumValueTrait(value: .string("EC-secp521r1")) },
],
"Amplify": [
// https://github.com/soto-project/soto/issues/474
"com.amazonaws.amplify#App$description": RemoveTraitPatch(trait: RequiredTrait.self),
Expand Down

0 comments on commit 4236626

Please sign in to comment.