Open
Description
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
- 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