aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

[Enhancement]: Update Swift IAM samples returning custom structures to use SDK's own types instead

Open shepazon opened this issue 3 years ago • 2 comments

Background story

Currently, a couple of the IAM examples are creating and returning objects of a custom type from partial data taken from the SDK's returned data. While this works fine in practice, it obfuscates the example a bit. Update these examples to instead simply return the SDK's fetched data structure.

What does this example accomplish?

This will make the snippets more complete, instead of being obfuscated by returning a structure whose definition is not fully clear.

Which AWS service(s)?

IAM

Which AWS SDKs or tools?

  • [ ] All languages
  • [ ] .NET
  • [ ] Go (v2)
  • [ ] Java
  • [ ] Java (v2)
  • [ ] JavaScript
  • [ ] JavaScript (v3)
  • [ ] Kotlin
  • [ ] PHP
  • [ ] Python
  • [ ] Ruby
  • [ ] Rust
  • [X] Swift
  • [ ] Not applicable

Are there existing code examples to leverage?

  • https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/swift/example_code/iam/ListPolicies
  • https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/swift/example_code/iam/ListUsers

Do you have any reference code?

No response

shepazon avatar Nov 03 '22 16:11 shepazon

I'll do this one soon. Probably not this coming sprint but likely the one after.

shepazon avatar Nov 03 '22 18:11 shepazon

Marked stale by the Shirriff. Notifying @awsdocs/aws-sdk-docs-code-maintainers

github-actions[bot] avatar Nov 25 '22 01:11 github-actions[bot]