aws-doc-sdk-examples
aws-doc-sdk-examples copied to clipboard
[Enhancement]: Update Swift IAM samples returning custom structures to use SDK's own types instead
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
I'll do this one soon. Probably not this coming sprint but likely the one after.
Marked stale by the Shirriff. Notifying @awsdocs/aws-sdk-docs-code-maintainers