func (policy *AttachedIAMPolicy) AddObject(object IAMObject) {
	switch object.GetObjectType() {
	case IAMObjectTypeGroup:
		policy.Groups = append(policy.Groups, object.GetName())
	case IAMObjectTypeUser:
		policy.Users = append(policy.Users, object.GetName())
	}
}
// AddObject adds an IAMObject (user or group) to the AttachedIAMPolicy
AddObject adds an IAMObject (user or group) to the AttachedIAMPolicy
// AddObject adds an IAMObject ( user or group ) to the AttachedIAMPolicy
func (policy *AttachedIAMPolicy) AddObject(object IAMObject) {
	switch object.GetObjectType() {
	case IAMObjectTypeGroup:
		policy.Groups = append(policy.Groups, object.GetName())
	case IAMObjectTypeUser:
		policy.Users = append(policy.Users, object.GetName())
	}
}
func ( policy * AttachedIAMPolicy ) AddObject ( object IAMObject ) { switch object . GetObjectType ( ) { case IAMObjectTypeGroup : policy . Groups = append ( policy . Groups , object . GetName ( ) ) case IAMObjectTypeUser : policy . Users = append ( policy . Users , object . GetName ( ) ) } }
AddObject adds an IAMObject (user or group) to the AttachedIAMPolicy
AddObject adds an IAMObject ( user or group ) to the AttachedIAMPolicy