Skip to content

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

Open
@shepazon

Description

@shepazon

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?

Do you have any reference code?

No response

Metadata

Metadata

Assignees

Labels

InternalTo help track internal tickets in a single location.SwiftThis issue relates to the AWS SDK for Swift

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions