Skip to content

Commit

Permalink
add: deprecation notice to deprecated fluent builder methods (smithy-…
Browse files Browse the repository at this point in the history
…lang#2386)

* add: deprecation notice to deprecated fluent builder methods

* add: CHANGELOG.next.toml notes
  • Loading branch information
Velfi committed Feb 16, 2023
1 parent 42671dd commit d54c005
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.next.toml
Expand Up @@ -210,3 +210,15 @@ message = "Fix issue where clients using native-tls connector were prevented fro
references = ["aws-sdk-rust#736"]
meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "client" }
author = "Velfi"

[[aws-sdk-rust]]
message = "Fluent builder methods on the client are now marked as deprecated when the related operation is deprecated."
references = ["aws-sdk-rust#740"]
meta = { "breaking" = false, "tada" = true, "bug" = true }
author = "Velfi"

[[smithy-rs]]
message = "Fluent builder methods on the client are now marked as deprecated when the related operation is deprecated."
references = ["aws-sdk-rust#740"]
meta = { "breaking" = false, "tada" = true, "bug" = true, "target" = "client"}
author = "Velfi"
Expand Up @@ -202,6 +202,9 @@ class FluentClientGenerator(
""",
)

// Write a deprecation notice if this operation is deprecated.
writer.deprecatedShape(operation)

writer.rust(
"""
pub fn ${
Expand Down

0 comments on commit d54c005

Please sign in to comment.