Skip to content

Commit 0ce4f58

Browse files
authored
fix: restore IAMUsers resource type name to 'iam' (#996)
The migration to the generic Resource[C] pattern in #992 inadvertently changed the ResourceTypeName from "iam" to "iam-user", breaking backwards compatibility for users specifying --resource-types iam. This restores the original resource type name.
1 parent 27cbcfb commit 0ce4f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/resources/iam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type IAMUsersAPI interface {
4545
// NewIAMUsers creates a new IAMUsers resource using the generic resource pattern.
4646
func NewIAMUsers() AwsResource {
4747
return NewAwsResource(&resource.Resource[IAMUsersAPI]{
48-
ResourceTypeName: "iam-user",
48+
ResourceTypeName: "iam",
4949
BatchSize: DefaultBatchSize,
5050
IsGlobal: true,
5151
InitClient: WrapAwsInitClient(func(r *resource.Resource[IAMUsersAPI], cfg aws.Config) {

0 commit comments

Comments
 (0)